RE: C++ XML parser

From: Linev, Sergei <S.Linev_at_gsi.de>
Date: Wed, 23 Apr 2008 13:47:21 +0200


Hi, Rajeshkumar

There are two alternatives:
1. Using ROOT classes around libxml2 parser. It supports complete XML syntax, including DTD, style sheets and so on.

   These are mostly TDOMParser and TSAXParser classes. To use them, you need libxml2 be installed on your system. 2. Use ROOT build-in parser for XML files - TXMLEngine. This is not a complete XML parser -

   means some XML features not supported, but for simple XML files it works faster and uses less memory.    And it does not requries any external libraries.   

Examples for both cases you can find in $ROOTSYS/tutorials/xml directory.

Regards,
Sergey

> -----Original Message-----
> From: owner-roottalk_at_root.cern.ch
> [mailto:owner-roottalk_at_root.cern.ch] On Behalf Of Rajeshkumar
> Swain (HCL Financial Services)
> Sent: Mittwoch, 23. April 2008 12:10
> To: ROOT Talk
> Subject: [ROOT] C++ XML parser
>
>
>
>
> Hi rooters,
> Can we read a XML file using root in C++.
> If that is possible then where can I get some Sample code for that
>
> Thanks
>
> DISCLAIMER:
> --------------------------------------------------------------
> ---------------------------------------------------------
> The contents of this e-mail and any attachment(s) are
> confidential and intended for the named recipient(s) only.
> It shall not attach any liability on the originator or HCL or
> its affiliates. Any views or opinions presented in
> this email are solely those of the author and may not
> necessarily reflect the opinions of HCL or its affiliates.
> Any form of reproduction, dissemination, copying, disclosure,
> modification, distribution and / or publication of
> this message without the prior written consent of the author
> of this e-mail is strictly prohibited. If you have
> received this email in error please delete it and notify the
> sender immediately. Before opening any mail and
> attachments please check them for viruses and defect.
> --------------------------------------------------------------
> ---------------------------------------------------------
>
>
Received on Wed Apr 23 2008 - 13:47:27 CEST

This archive was generated by hypermail 2.2.0 : Wed Apr 23 2008 - 17:50:02 CEST