[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Need good C++ XML Library


c xml processor
Hmm.

On Thu, 8 Dec 2005 15:57:43 -0600
"Fred Crable" <fcrable@v...> wrote:
>Just depends on what it doesn't "Conform" to within the standard.  I'm

Well, your example, for one.

>not doing any validation or major nesting.  I just need to add and
>extract nodes from simple documents not much more than a few levels deep
>with some tag values.  Example might be:
>
><top x=1>

Well-formedness error.  Conformant XML processors *must* halt and catch
fire.

XML requires that attribute values be quoted.

>  <nest y=2 z=3>val</nest>
>  <nest y=4 z=6>other val</nest>
>  <nest><deepnest>deep val</deepnest></nest>
></top>
>
>I'm really using it more for input data parsing and perhaps some simple
>document construction. Like adding another <nest/> to this above.

That might work (at least, assuming that you put the attribute values in
quotes).  I'd be surprised if even the mostly wildly non-conforming XML
parser failed to catch that.

For what you seem to want, though, tag soup might be a more appropriate
API (well, it might be tied to HTML, but something of that nature).
Dunno that anyone's bothered to write such a thing; it's harder to write
something that can handle ill-formed documents than to write a
more-or-less conformant processor.

Amy!
-- 
Amelia A. Lewis                    amyzing {at} talsever.com
Love doesn't just sit there, like a stone, it has to made, like bread,
remade all the time, made new.
                -- Ursula K. Le Guin

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.