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
0
votes
1 answer

xmlstarlet not working correct in mac

I created a batch file for windows that executes some xmlstarlet commands. I want to write it as .sh file so that i can run it on mac. The problem is.. Some commands are working fine in windows but not in mac. It didn't show any error too. Eg. **xml…
LincyTonita
  • 327
  • 4
  • 14
0
votes
2 answers

libxml2: Not report characters like ' or " individually

I'm new to libxml and so far everything is good, but I noticed one thing that annoys me: When libxml reports characters, i.e. the handler's characters function is being called, "special" characters like ' or " or reported individually. example:…
YllierDev
  • 571
  • 4
  • 16
0
votes
1 answer

Failing while running `brew install

I am trying to re-install Nokogiri dependencies with homebrew following the steps described here. I had nokogiri working fine before, but had to remove macports to make some space on my mac. Running into errors at the first step: $ brew install…
Prakash Murthy
  • 12,923
  • 3
  • 46
  • 74
0
votes
1 answer

Libxml2 xmlSetGenericErrorFunc usage across processes

I am using Libxml2 to read/write XML files. For catching libxml errors while loading XML, i am using xmlSetGenericErrorFunc. void Myclass::load(const std::string &filename) { xmlGenericErrorFunc handler = (xmlGenericErrorFunc) catchErrors; …
bjskishore123
  • 6,144
  • 9
  • 44
  • 66
0
votes
1 answer

How to implement XMLDSIG's XPath transform using LibXML2?

I'm attempting to implement the XPath transform from the XMLDSIG spec, and due to a few issues I won't go into, I can't use any additional libraries (e.g. xmlsec). The spec states that given an XPath expression: The XPath expression...is evaluated…
Mak Kolybabi
  • 344
  • 1
  • 8
0
votes
1 answer

Ruby LibXML - If a node exists, filter based on value

I am working on the following XML: URI
aakash
  • 751
  • 5
  • 18
0
votes
1 answer

C code using libxml2 giving compile time errors on cygwin on Win 7

I am trying to write a xml parser in C using the libxml2 on cygwin on my Win 7 machine. When i am trying to compile the code it is giving me compile time errors. Can someone help me out on this. ad@ad-PC /cygdrive/c/Users/ad/Desktop $ gcc…
abhi
  • 3,476
  • 5
  • 41
  • 58
0
votes
0 answers

Perl XML::libXML does'nt work anymore : Can't load '/usr/lib/perl5/vendor_perl/5.8/msys/auto/XML/LibXML/Common/Common.dll

Possible Duplicate: Can't load '/usr/lib/perl5/vendor_perl/5.8/msys/auto/XML/LibXML/Common/Common.dll' for module XML::LibXML::Common: dlopen: Win32 error 126 I have this dummy script who worked previously : #!/usr/bin/perl use utf8; use…
Stéphane V
  • 1,094
  • 2
  • 11
  • 25
0
votes
1 answer

Problem with libxml character enconding on win32

While parsing some html files with libxml the function xmlParseFile() returns that the code includes non UTF-8 characters How can i modify the default charset of the library to ISO-8859-1 ? Is there any other way to solve this ? PS: The entire…
mardu
0
votes
1 answer

libxml2 2.7.8 / libxml++ 2.35 and changes in DTD validation

Lately my Fedora 16 auto-upgraded libxml2 from a previous version to the latest rpm libxml2-2.7.8-8.fc16.i686, and suddenly the dtd validation starts to complain about missing declarations in the DTD file. Before this upgrade everything worked fine.…
ikku
  • 405
  • 3
  • 14
0
votes
1 answer

libxml2 - get node(xmlNodePtr) content?

I parsed and have pointer xmlNodePtr upto category tag, But I want to get the value of the node(name) like TrailersFreeMovies , Trailers in an…
Shanmu G
  • 120
  • 1
  • 11
0
votes
2 answers

XPath expression fails. (libxml2 in C)

I'm using libxml2 in a C program to do some stuff within XML documents. Now... if I look to the following XPath I have an empty…
Mr.Gate
  • 419
  • 4
  • 12
0
votes
1 answer

Lib Xml Ruby :Error `parse': undefined method `read' for "file.xml":String (NoMethodError)

require 'xml/libxml' require 'libxml/document' $release_date doc=LibXML::XML::Parser.io(file.xml).parse doc.root.each_element('//ABCD/xyz/') do |elem| elem.each_element do |node| node.each_element do |child| if…
Aayush
  • 1,244
  • 5
  • 19
  • 48
0
votes
1 answer

how to categorize xml files basing on attributes using libxml2 in c

My assignment is to differentiate xml content in to groups , for example i have two xml files john peter pass
forum.test17
  • 2,119
  • 6
  • 30
  • 62
0
votes
1 answer

XML schema validation - pass schema file content as string and not as file

I am trying to validate XML file using a schema file using C programming language. Is there a way to pass/store Schema file content in char* variable. Something like below: char *schemaContent = "complete schema file content....."; Is there a way…
Priyanka Bhatia
  • 97
  • 2
  • 10