List Info

Thread: Parsing xml files




Parsing xml files
user name
2006-05-27 13:38:52
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.

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 ?

Thanks in anticipation.

============================================================
=======
Regards,

Sukomal Pal

Research Scholar,
Information Retrieval Lab,CVPRU.
Indian Statistical Institute,
203,B.T. Road. Kolkata-700108.
Ph. +91(0)33 2575 2858(Lab)
Alternate id: sukomal_palyahoo.com
Home : http://www.isical.
ac.in/~sukomal_r
============================================================
=======



_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xmlgnome.org
http://mai
l.gnome.org/mailman/listinfo/xml
Parsing xml files
user name
2006-05-29 08:52:33
On 5/27/06, Sukomal Pal <sukomal_risical.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
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xmlgnome.org
http://mai
l.gnome.org/mailman/listinfo/xml
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )