RE: C++ XML parser

From: Fine, Valeri <fine_at_bnl.gov>
Date: Wed, 23 Apr 2008 10:58:16 -0400


Dear Rajeshkumar,

Even though the ROOT does provide a bunch of the convenient C++ classes to manage XML files and structures, the ROOT user is not limited with these classes.

Your ROOT C++ code is just a C++ code. That means you are free to use the other third party XML (or any other) C libraries / C++ class libraries directly too.

Best Regards

                         Valeri Fine


Brookhaven National Laboratory
Upton, NY 11973, USA
Phone: +1 631 344 7806
Fax: +1 631 344 4206
E-mail: fine_at_bnl.gov

> -----Original Message-----
> From: owner-roottalk_at_root.cern.ch [mailto:owner-roottalk_at_root.cern.ch]
On
> Behalf Of Linev, Sergei
> Sent: Wednesday, April 23, 2008 7:47 AM
> To: Rajeshkumar Swain (HCL Financial Services); ROOT Talk
> Subject: RE: [ROOT] C++ XML parser
>
> 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 - 16:58:30 CEST

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