我需要从节点中的文本中获取一个字符串数组,该节点本身由xml文件中的其他元素剪切。我使用libxml2库在C中工作。 例: <option>some text <middletag />other text</option> 我试着用xmlNodeGetContent(xmlnode);但我只得到一个字符串像"some text other text"。 问题是:是否有可能得到一个字符串数组,这个
我下载的libxml2 2.9.4在here,当我./configure; make,我得到以下错误: nanohttp.c: In function ‘xmlNanoHTTPConnectHost’:
nanohttp.c:1073:18: error: storage size of ‘hints’ isn’t known
struct addrinfo hints, *res,