[XML-SIG] SAX prettyprinter V2 and SGMLOP

Fredrik Lundh fredrik@pythonware.com
Sun, 24 Jan 1999 14:50:02 +0100


>> Our internal xml libraries allows the user to indicate
>> whether a resource is "xml text" or "xml data".  the
>> latter doesn't allow elements to contain both text
>> and other elements, which means that it's easy to
>> figure out what to ignore.
>
>That sounds good, this is exactly what we need to distinguish,
>too. How do you indicate this without a DTD?

the caller must tell the library what to do based on
his/her knowledge of the DTD in question.

(in my experience, most data-oriented DTD's are
"xml data" in the sense that values are only stored
in leaf elements.  That's definitely true for every-
thing we design).

Cheers /F
fredrik@pythonware.com
http://www.pythonware.com