[
Lists Home |
Date Index |
Thread Index
]
- To: "Amelia A Lewis" <amyzing@talsever.com>
- Subject: RE: [xml-dev] Need good C++ XML Library
- From: "Fred Crable" <fcrable@voyence.com>
- Date: Thu, 8 Dec 2005 17:26:42 -0600
- Cc: <xml-dev@lists.xml.org>
- Thread-index: AcX8TmWt0Z2UbzjrRoqDyG9dAhU3pQAADh+g
- Thread-topic: [xml-dev] Need good C++ XML Library
Sorry for my quick XML in typing. It was more of an example and not
really for parsing sake :) It was and only meant to show the simplicity
of what I seek. Where can find such a TagSoup?
-----Original Message-----
From: Amelia A Lewis [mailto:amyzing@talsever.com]
Sent: Thursday, December 08, 2005 5:23 PM
To: Fred Crable
Cc: xml-dev@lists.xml.org
Subject: Re: [xml-dev] Need good C++ XML Library
Hmm.
On Thu, 8 Dec 2005 15:57:43 -0600
"Fred Crable" <fcrable@voyence.com> 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
|