Questions tagged [libxml2]

Software library for parsing XML documents.

libxml2 is written in the programming language, and provides bindings to , , , , / and other Pascals, , , and .

The library was originally developed as part of the GNOME project and features

Useful Links

1518 questions
10
votes
2 answers

how to use libxml2 to parse dirty html in C programing

The html maybe dirty such as premature end of data in tag How can i do it? Thanks
bloody numen
  • 487
  • 6
  • 13
10
votes
1 answer

Parse XML Libxmljs (Node.js)

I'm attempting to parse an XML string with libxmljs (https://github.com/polotek/libxmljs). I'm having some issues though. I need to apply logic to what I'm parsing and return based upon what's defined and what isn't. Because of this I don't see a…
A Wizard Did It
  • 3,614
  • 4
  • 28
  • 32
10
votes
1 answer

how to use libxml2 to modify an existing xml file?

I need to take an existing xml file, and modify just a few attributes and write the file back out. I was thinking of using libxml2 to get this done. Application is C/C++ running on Linux. Thing is, libxml2 seems to include several variations of the…
Stéphane
  • 19,459
  • 24
  • 95
  • 136
10
votes
1 answer

libxml2.2.dylib reference in python program

A python library that I'm using uses libxml2.2.dylib. I'm getting this error message: Reason: Incompatible library version: etree.so requires version 12.0.0 or later, but libxml2.2.dylib provides version 10.0.0 My system's version of…
Dash
  • 101
  • 1
  • 5
9
votes
2 answers

Automatic XSD validation

According to the lxml documentation "The DTD is retrieved automatically based on the DOCTYPE of the parsed document. All you have to do is use a parser that has DTD validation…
Jono
  • 1,690
  • 2
  • 18
  • 29
9
votes
4 answers

Which of lxml and libxml2 is better for parsing malformed html in Python?

Which one is better and more useful for malformed html? I cannot find how to use libxml2. Thanks.
bloody numen
  • 487
  • 6
  • 13
9
votes
5 answers

XPath query result order

For another question I have created some XML related code that works on my development machine but not on viper codepad where I tested it before adding it to my answer. I could reduce my problem to the point that the order of nodes returned by…
hakre
  • 193,403
  • 52
  • 435
  • 836
9
votes
3 answers

Cannot compile when using libxml

I have a source file that I can run via the terminal using gcc source.c -I/usr/include/libxml2 -lxml2 -o output but when I #include the source file which includes the libxml source files, the compiler complains that the libxml/xmlmemory.h: ,…
some_id
  • 29,466
  • 62
  • 182
  • 304
9
votes
3 answers

Cannot install XML package in r

I'm trying to install "XML" package in r, but an error occurs. Please tell me what's wrong. OS: OS X 10.11.6 R version: 3.3.2 The error message when executing "install.packages("XML") is the following. * installing *source* package ‘XML’ ... **…
Ken
  • 123
  • 1
  • 10
9
votes
1 answer

Can't install python lxml (and libxml2) on windows

I'm trying to install lxml on windows (pip install lxml) but i keep getting following error: ***** Could not find function xmlCheckVersion in library libxml2. Is libxml2…
eciu
  • 163
  • 2
  • 2
  • 6
9
votes
2 answers

Simple libxml2 HTML parsing example, using Objective-c, Xcode, and HTMLparser.h

Please can somebody show me a simple example of parsing some HTML using libxml. #import NSString *html = @"
9
votes
3 answers

ImportError: No module named libxml2

I am using Ubuntu 12.04.2 LTS. I have used libxml2 in my python script and when I try to run it, gives error Traceback (most recent call last): File "deploy.py", line 3, in import libxml2 ImportError: No module named libxml2 I tried almost…
Malintha
  • 4,512
  • 9
  • 48
  • 82
9
votes
2 answers

XML Validation against XSD in PHP libxml

I have created an xml like below Logon 23424 123456Gg and my xsd file is like below code
Kanagu
  • 606
  • 3
  • 9
  • 17
9
votes
3 answers

Good strategies for REST -> XML -> Core Data -> UITableView?

What are good practices for asynchronously pulling large amounts of XML from a RESTful service into a Core Data store, and from this store, populating a UITableView on the fly? I'm thinking of using libxml2's xmlParseChunk() function to parse…
Alex Reynolds
  • 95,983
  • 54
  • 240
  • 345
9
votes
1 answer

'libxml/HTMLparser.h' file not found in ASIHTTPRequest

Possible Duplicate: ASIHTTPRequest; installation issues I've followed the setup tutorial step by step but I get this error: 'libxml/HTMLparser.h' file not found. I've also cloned the libxml library, but it doesn't work. Any idea? Thanks!
iosdevrocks
  • 1,025
  • 3
  • 10
  • 17