W3C home > Mailing lists > Public > www-lib@w3.org > April to June 2006

Query regarding XML Parser

From: <neelu_dhiman@persistent.co.in>
Date: Fri, 26 May 2006 15:56:55 +0530 (IST)
To: www-lib@w3.org
Message-Id: <20060526155655.ALM89252@mail6.persistent.co.in>
Hi friends,
I am working in C on Linux Fedora Core. My problem
is very simple. But I really need you help. I want
to convert an XML file into plaintext format. e.g; I
have following contents in XML file :

<?xml version="1.0" encoding="utf-8"
<persons count="13">
    <cn>Satish Agrawal</cn>
    <category unfiled="yes">3</category>
    <telephonenumber primary="yes"/>
    <displayname>Satish Agrawal</displayname>
    <cn>Rahul Patil</cn>
    <category unfiled="yes">3</category>
    <telephonenumber primary="yes"/>
    <displayname>Rahul Patil</displayname>
    <cn>Milind Limaye</cn>
    <category unfiled="yes">3</category>
    <telephonenumber primary="yes"/>
    <displayname>Milind Limaye</displayname>
    <telephonenumber primary="yes"/>
And I want the outputs in following format (For each
record ) :

Person 1:
Name : Satish Agrawal
Surname : Agrawal
UUID : 6024732a-1c38-102a-922a-0007e9315819
E mail : satishgrwal@persistent.co.in

and so on ...

Please suggest me what should I use. I have tried
libwww and libxml libraries, but could not find
much. Please guide.

This e-mail may contain privileged and confidential information which is the property of Persistent Systems Pvt. Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Pvt. Ltd. does not accept any liability for virus infected mails.
Received on Friday, 26 May 2006 10:32:54 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:56 UTC