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

use libxml2 in android with JNI

I have created an app in android using JNI(as major part of my code is in C).Now i am having a requirement to parse xml in my application.since i have chosen libxml2 for my application, can any one please tell me how to use libxml2 in my android…
Subrat nayak.
  • 405
  • 1
  • 7
  • 25
0
votes
1 answer

storing data types other than string in XML Nodes using libxml2

Seemingly, libxml2 has only 4 datatypes namely xmlChar, xmlDoc, xmlNodePtr and xml- Node. I want to keep integer and double in the nodes of XML, Do I have to cast them to string each time or Is there any other way to do it without any casting?
bfaskiplar
  • 865
  • 1
  • 7
  • 23
0
votes
1 answer

can't read content of XML nods using libxml2

I simply want to read the string in the content of XML Nodes which I wrote out a file before. Here is the code: int main() { xmlNodePtr n, n2, n3; xmlDocPtr doc; xmlChar *xmlbuff; int buffersize; xmlChar* key; doc = xmlNewDoc(BAD_CAST "1.0"); n =…
bfaskiplar
  • 865
  • 1
  • 7
  • 23
0
votes
1 answer

Unable to get root node of Soap response in xml

Today I started learning libxml for the first time. And kept struggling to find the root node of the soap response. Damn struggled. This is the xml buffer
Nikhil
  • 576
  • 1
  • 11
  • 31
0
votes
0 answers

Changing link order of libmysqlclient and libxml2 causes error from libxml2

I am building an application in C on linux platform. In my program, I read XML document using libxml2 using the API xmlReadFile(). I link the program as below (line from makefile): $(CC) -m32 -g -o app.out -Wl,-Bstatic $(other_libs) -lmysqlclient…
geekowl
  • 331
  • 1
  • 6
  • 17
0
votes
2 answers

Segmentation fault when trying to parse xml file

I'm new to C programming. I want to create C program which can read XML file using libxml2. I tested this code: #include #include #include #include #include // Declare…
user1285928
  • 1,328
  • 29
  • 98
  • 147
0
votes
2 answers

how to use xpath in vala on a node object

How do I use XPath in Vala on a Xml.Node object? The only examples I can find is were a Context is created from a Doc object, but I don't have a Xml.Doc object to begin with. Is there a way I can convert Xml.Node into Xml.Doc? Or is there some other…
Wayne
  • 914
  • 2
  • 13
  • 25
0
votes
0 answers

How to parse HTML by using libxml2? I need to real code examples

I'm looking for an code example how to parse HTML by using libxml2. The official web page just contains prototype declarations and some description. I need to real code examples. XPath and DOM of HTMLParser module. I did a lot of googling; but I…
Jack
  • 16,276
  • 55
  • 159
  • 284
0
votes
2 answers

Build failed: libxml2.a file is not created after ./configure and make

I'm following this tutorial for build libxml2 on windows. With a lot of effort I run ./configure and make files. But after make, the libxml2.a file is not created in ./libs folder. I have no idea how to fix this.
Jack
  • 16,276
  • 55
  • 159
  • 284
0
votes
2 answers

How to read XML generated from JAXB with C

I created Java object and I used JAXB to convert that object into XML. Now the problem is how I can read this XML file in C? Is there any standard way or I have to use external libraries like libxml?
user1285928
  • 1,328
  • 29
  • 98
  • 147
0
votes
2 answers

Issue with libxml2 when using ruby 1.9.3 from rvm on Mac OS X 10.7.4

I'm trying to install kitabu with gem on Mac OS X 10.7.4. With pre-installed ruby of version 1.8.X, I got an error saying that I should use 1.9 or later version of ruby. I installed rvm and tried to use gem from rvm sudo gem install kitabu to get…
prosseek
  • 182,215
  • 215
  • 566
  • 871
0
votes
1 answer

Can't find nodes in Atom with Ruby LibXML

I have the following XML Document:
LeakyBucket
  • 160
  • 1
  • 11
0
votes
1 answer

Issue installing Savon gem on Red Hat Enterprise server

I am using webservices to communicate to an ERP from ruby on rails application using Savon. I was able to install Savon gem on my local fedora machine. But I am not able to install it on Production server. It gives following error :- ERROR: Error…
Anubhaw
  • 5,978
  • 1
  • 29
  • 38
0
votes
1 answer

libxml2 xml parsing issue

I have an xml file which i create myself.
taffarel
  • 4,015
  • 4
  • 33
  • 61
0
votes
1 answer

libxml: How to add sibling nodes to root node

I'm implementing a function doing xml signature with libxml. How could I add sibling nodes to root node? original xml: ... what I want: ...
iOS Padawan
  • 418
  • 1
  • 5
  • 16