Re: [xml] Parsing xml files



On 5/27/06, Sukomal Pal <sukomal_r isical ac in> wrote:
Hi,
  I want to access the leaf elements in a xml document file and store them as a
plain text file removing the tags.I am new to xml and libxml.From the documents
and help material of http://xmlsoft.org/ ,I am not getting which
module to take from libxml.

Hello.

First of all I recommend you install the latest release of libxml2,
since 2.6.11 is pretty old. Maybe the Reader API would suit your
needs: http://xmlsoft.org/xmlreader.html.

The code-example section says about parse1.c to parse4.c, but they are not
available in libxml2-2.6.11, moreover libxml/tree.h and libxml/parser.h I am
not able to find.

  Could anyone experienced in libxml please guide me how I can get my job my
done ?

If you don't need to do any sophisticated manipulations of the data, I
would suggest you take a look at XSLT: http://www.w3.org/TR/xslt.

Regards,
Aron



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]