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
14
votes
2 answers

iPhone libxml2 not found during build

I currently got some errors with libxml2 in my iPhone project. This was working before, after making some changes in my build properties building failed. (libxml2.dylib is added in the build phases) #import #import…
Enadeag
  • 168
  • 1
  • 2
  • 7
14
votes
3 answers

libxml2 error with namespaces and xpath

I am pasting some code here that compiles with no warning using gcc file.c -lxml2, assuming that libxml2 is installed in your system. #include #include #include #include #include…
cateof
  • 789
  • 3
  • 11
  • 24
14
votes
1 answer

Ubuntu Eclipse libxml2 error : fatal error: libxml/xmlversion.h: No such file or directory

I want to use libxml2 in my eclipse project. I can use this library on command line by " g++ main.cpp -I/usr/include/libxml2 -lxml2 -o output " But I can't use on eclipse.I add C++ Build->Setting->GCC C Compiler->Includes…
andressophia
  • 527
  • 2
  • 6
  • 9
14
votes
4 answers

libxml2 missing for nokogiri gem on Windows 8 x64 with Ruby 1.9.3

What I found searching for similar issues was that Nokogiri does not yet have x64 support with Ruby 2.0. However although I'm on a Windows x64 machine my Ruby version is ruby 1.9.3p392 (2013-02-22) [i386-mingw32] from railsinstaller.org (with Rails…
jzig
  • 152
  • 1
  • 10
13
votes
4 answers

Does libxml2 support XPath 2.0 or not?

I've tried to use the XPath 2.0 exp //span/string(.) in libxml2, but it doesn't work. So, my question is: does libxml2 support XPath 2.0 or not?
13
votes
1 answer

Does libxml2 supports XSD 1.1

Does libxml2 latest release supports XSD 1.1 for XML validation? I am using libxml2 v2.6.30 for XML validation with XSD (schema) 1.0. But, I it does not support XSD v1.1. I am not sure if the latest version of libxml2 supports XSD 1.1 or not. Any…
Zeeshan
  • 539
  • 4
  • 19
13
votes
1 answer

Perl XML::LibXML: findnode vs. findvalue vs. find - what's the difference?

I am using XML::LibXML, and I simply need to get a count of the nodes specified by an XPath expression. Using either of the first two code lines below yields what I'm looking for. I can use the count XPath function with either findvalue or find but…
CraigP
  • 453
  • 1
  • 3
  • 17
13
votes
6 answers

Fail to install lxml in MacOS 10.8.4

I am having trouble installing lxml to my Mac OS. I am having the following error when building it. This is the error I have when using pip install lxml…
Khue Vu
  • 3,112
  • 4
  • 37
  • 40
12
votes
1 answer

What does LIBXML_NOENT do (and why isn't it called LIBXML_ENT)?

In PHP, one can pass optional arguments to various XML parsers, one of them being LIBXML_NOENT. The documentation has this to say about it: LIBXML_NOENT (integer) Substitute entities Substitute entities isn't very informative (what entities?…
tim
  • 1,999
  • 17
  • 32
12
votes
2 answers

How do I return '' for an empty node's text() in XPath?

foo I would like to return ['', 'foo'] but libxml's xpath //td/text() returns just ['foo']. How do I find the empty tag as '' instead of (not matched)?
joeforker
  • 40,459
  • 37
  • 151
  • 246
11
votes
11 answers

LibXML2.dylib and Xcode4

I just downloaded Xcode 4 and I cant seem to run my application as the MGTwitter... classes are complaining of a non inclusion error of LibXML2. I have imported it into the frameworks folder, and I have put the following in the header bit in the…
max_
  • 24,076
  • 39
  • 122
  • 211
11
votes
1 answer

installing libxml2 on python 2.7 windows

I've searched but theres no libxml2 binaries for py2.7. I have also tried running setup.py for version py2.6.9 but it gave me the error failed to find headers for libxml2: update includes_dir Does anyone have a solution?
goh
  • 27,631
  • 28
  • 89
  • 151
11
votes
1 answer

How to parse a XML string instead of XML doc in c using libxml2 library

All the examples in libxml2 documentation libxml tutorial are mentioned using external XML files. What if I need to parse a string with XML content in it? Is it really possible in libxml2 C library, or the only solution would be taking the string…
forum.test17
  • 2,119
  • 6
  • 30
  • 62
11
votes
4 answers

Homebrew install libxml2 with python modules

Good morning, I'm trying to install libxml2 with python modules. I have tried the following: brew install --with-python libxml2 ==> Downloading…
Brandon
  • 3,091
  • 2
  • 34
  • 64
11
votes
1 answer

libxml2 can´t get content from node

I am using libxml in C and this is how I create xml: xmlDocPtr createXmlSegment(char *headerContent, char *dataContent) { xmlDocPtr doc; doc = xmlNewDoc(BAD_CAST "1.0"); xmlNodePtr rdt, header, data; rdt = xmlNewNode(NULL, BAD_CAST…
Libor Zapletal
  • 13,752
  • 20
  • 95
  • 182