我需要從節點中的文本中獲取一個字符串數組,該節點本身由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,