Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > XML Reader/Writer

Reply
Thread Tools

XML Reader/Writer

 
 
Curious Joe
Guest
Posts: n/a
 
      11-16-2006
I am considering using XML to track some items in an application I
wrote. Since I am new to using XML in anything besides the WWW, I am
not sure of the utilities that exist.

I need something that will allow me to read a value, write full files,
insert tags, delete tags, etc.

I have considered just banging out a quick program in C++ but figure
there has to be programs/api's already out there that will accomplish
what I need.

Can anyone point me in the right direction for this?

Thanks,

CJ

 
Reply With Quote
 
 
 
 
Joe Kesselman
Guest
Posts: n/a
 
      11-17-2006
Curious Joe wrote:
> I need something that will allow me to read a value, write full files,
> insert tags, delete tags, etc.


XML parsers and serializers are available off-the-shelf, generally
implementing either the SAX (event-stream) or DOM (tree) APIs. You may
or may not want to leverage an XPath implementation as well, also
available as off-the-shelf code.

I'll cite the Apache Xerces and Xalan projects as one C++
implementation; others also exist.

--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
 
Reply With Quote
 
 
 
 
shaun roe
Guest
Posts: n/a
 
      11-17-2006
In article < .com>,
"Curious Joe" <> wrote:

> I am considering using XML to track some items in an application I
> wrote. Since I am new to using XML in anything besides the WWW, I am
> not sure of the utilities that exist.
>
> I need something that will allow me to read a value, write full files,
> insert tags, delete tags, etc.
>
> I have considered just banging out a quick program in C++ but figure
> there has to be programs/api's already out there that will accomplish
> what I need.
>
> Can anyone point me in the right direction for this?
>
> Thanks,
>
> CJ


libxml is very good; xerces is extensive but I find it a bit heavy and
the character handling can be a pain (maybe try the recipe in the C++
Cookbook [D.R. Stephens et al., pub. O'Reilly] to help you). You might
try TinyXML if your needs are not too demanding. For manipulation of an
existing xml into another xml, look at xslt and libxslt.

cheers
shaun
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Different results parsing a XML file with XML::Simple (XML::Sax vs. XML::Parser) Erik Wasser Perl Misc 5 03-05-2006 10:09 PM
Print XML parsing to JspWriter (out) Class org.xml.sax.helpers.NewInstance can not access a member of class javax.xml.parsers.SAXParser with modifiers "protected" Per Magnus L?vold Java 0 11-15-2004 02:27 PM
embedding xml in xml as non-xml :) Mark Van Orman XML 5 09-15-2004 05:57 AM
What XML technologies to learn first for "XML Processing" and "XML Mapping"? Bomb Diggy Java 0 07-28-2004 07:26 AM
Help on including one XML document within another XML document using XML Schemas Tony Prichard XML 0 12-12-2003 03:18 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57