libxml2

Large RAM usage when parsing XML using Libxml2

拥有回忆 提交于 2019-12-12 03:47:19
问题 I'm downloading a XML file from an API with URLSessionDataTask. The XML looks like this: <?xml version="1.0" encoding="UTF-8" ?> <ResultList id="12345678-0" platforms="A;B;C;D;E"> <Book id="1111111111" author="Author A" title="Title A" price="9.95" ... /> <Book id="1111111112" author="Author B" title="Title B" price="2.00" ... /> <Book id="1111111113" author="Author C" title="Title C" price="5.00" ... /> <ResultInfo bookcount="3" /> </ResultList> Sometimes the XML may have thousands of books.

libxml2 is missing error

无人久伴 提交于 2019-12-12 03:37:18
问题 I am using OSX Yosemite (10.10.3), and when I try to install cupertino via gem using "gem install cupertino" I get the following error. What can I do to correct this. I have tried many solutions I have tried online to no avail. libxml2 is missing. Please locate mkmf.log to investigate how it is failing. ----- *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers 回答1: On Ubuntu a apt-get install libxml2-dev will install the

How do I install libxml-ruby gem 2.3.2 on OSX El Capitan?

末鹿安然 提交于 2019-12-12 03:05:37
问题 I am trying to install an old project that runs on Ruby 1.8.7-p370 and has a dependency on an old version of the libxml-ruby 2.3.2 gem on a Mac running OS X El Capitan. The problem is that when trying to install the gem it won't build the native extension. Here is the complete error upon running gem install libxml-ruby -v '2.3.2' : Building native extensions. This could take a while... ERROR: Error installing libxml-ruby: ERROR: Failed to build gem native extension. /Users/myusername/.rbenv

how to get these XML elements with libxml2?

早过忘川 提交于 2019-12-12 01:59:21
问题 i have a XML structure: <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <root> <item> <foo1>1</foo1> <foo2>2</foo2> </item> <item> <foo1>3</foo1> <foo2>4</foo2> </item> </root> now i go throw all children with a for loop: for (pCurrentElement...) { } now i want to access throw pCurrentElement the foo1 and foo2 but i dont know how. i use LIBXML2 i can get foo1 with: pChildElement = pCurrentElement->children->next; pChildElement->children->content // foo1 but i dont know how to get

libxml2-dev not installing on raspbian/debian

最后都变了- 提交于 2019-12-12 01:42:38
问题 When I sudo apt-get install libxml2-dev I receive the error libxml2-dev : Depends: libxml2 (= 2.9.4+dfsg1-1+b1) but 2.9.4+dfsg1-1 is to be installed E: Unable to correct problems, you have held broken packages. I tried to follow this guide: https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=105859 but when I get to cd ~/libxml2-2.9.1 the directory does not exist. Here is my actual output: pi@rpi:~ $ sudo apt-get install python-dev Reading package lists... Done Building dependency tree

can create a shared libxml2

故事扮演 提交于 2019-12-12 01:07:32
问题 i am creating an application in android using ndk and jni.In my app i have requirement to parse xml data.for which i have used libxml2. when i am making a static library of libxml2 and use,it works fine. But when i am trying to make a shared library and use it in my application i am getting errors while doing ndk-build: undefined reference to `xmlReaderForMemory' /home/subrat/EclipseIDE/workspace/jni/source/interface.c:677: undefined reference to `xmlTextReaderRead' /home/subrat/EclipseIDE

Connection disconnects with error “internal error” code=1 ErrorDomain=libxmlErrorDomain after XMPPframework sends auth to the server

依然范特西╮ 提交于 2019-12-12 00:50:52
问题 I am using XMPPFramework to connect to my xmpp server on local network ,it connects but as soon as it sends the auth packet and recieves challenge it disconnects with error : "internal error" code=1 ErrorDomain=libxmlErrorDomain. Basically it is not able to parse the challenge : 2013-03-08 15:56:41.890 iPhoneXMPP[23710:13703] Data to be parsed <challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl"

Cannot find libxml2 in android ndk project

一曲冷凌霜 提交于 2019-12-11 21:28:14
问题 Good day Everyone. I have wasted almost a week now figuring what's wrong when i try adding libxml2 to my android ndk project. LOCAL_PATH := $(call my-dir) #BUILDING LIBXML2 include $(CLEAR_VARS) LOCAL_MODULE := xml2 LOCAL_SRC_FILES := $(LOCAL_PATH)/libxml2/libxml2.a LOCAL_C_INCLUDES := $(LOCAL_PATH)/libxml2/include LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/libxml2/include LOCAL_DISABLE_FORMAT_STRING_CHECKS := true include $(BUILD_SHARED_LIBRARY) #BUILDING SOME SPICE CODES include $(CLEAR_VARS)

how to pass xml data to perl script without import xml parser module?

三世轮回 提交于 2019-12-11 20:15:30
问题 Background: A perl script need to be run on various servers (all AIX unix). The perl script need the data from a xml script. Just read the data, no write or other modify action. The contents of xml script changes sometimes. Problem: I can not use xml parser module (like XML::LibXML) in the perl script, since the aix server does not install the module, and I don't want to install them one by one. There are many aix servers. There is one linux server(red hat linux) that installed the xml module

LibXML internal and output encodings

人走茶凉 提交于 2019-12-11 18:25:28
问题 I'm trying to write XML files with libxml2 in ISO-8859-1. But from the documentation it seems that for each text node that I create I'll have to convert to UTF-8 which is libxml's internal encoding. Then when calling xmlSaveFormatFileEnc() libxml converts to the target encoding and adds the encoding attribute to the document. Is this assumption correct? For now my code goes roughly like this: xmlNode *root_element = NULL, *node4 = NULL; xmlDoc *doc = NULL; doc = xmlNewDoc(BAD_CAST XML_DEFAULT