[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Why not canonical parsers? [Was: Pull-based XML parsers? ]
I am really scared to have XML PDA only, XML Web TV, Refrigiator XML, .... But I can imagine that there can be very severe implementation problems with small devices. What about this: If there are some problems just state: our device requires canonical XML: http://www.w3.org/TR/2000/CR-xml-c14n-20001026 This Candidate Recommendation says: The canonical form of an XML document is physical representation of the document produced by the method described in this specification. The changes are summarized in the following list: The document is encoded in UTF-8 Line breaks normalized to #xA on input, before parsing Attribute values are normalized, as if by a validating processor Character and parsed entity references are replaced CDATA sections are replaced with their character content The XML declaration and document type declaration (DTD) are removed Empty elements are converted to start-end tag pairs Whitespace outside of the document element and within start and end tags are normalized All whitespace in character content is retained (excluding characters removed during linefeed normalization) Attribute value delimiters are set to double quotes Special characters in attribute values and character content are replaced by by character references Superfluous namespace declarations are removed from each element Default attributes are added to each element Lexicographic order is imposed on the namespace declarations and attributes of each element So I can use all XML features (as an author) and just before publishing push it through a "canonicator" if I want to be sure not to have some problems John Cowan wrote: > > Rick JELLIFFE wrote: > > > But I urge developers to boycott any XML parsers that do not attempt to > > provide full support for XML 1.0, in any general-purpose development. > > If you use them, *you* are creating interoperability problems, not the > > people who use XML 1.0 in their documents. Perhaps the kxml people > > might put in a paragraph in their documentation warning against using > > their system in general-purpose applications too. > > I think you are overlooking the following sentence from the documentation: > > [kXML] is intended for restricted environments > like the PDAs or embedded systems. > > -- > There is / one art || John Cowan <jcowan@r...> > no more / no less || http://www.reutershealth.com > to do / all things || http://www.ccil.org/~cowan > with art- / lessness \\ -- Piet Hein -- ****************************************** <firstName> Miloslav </firstName> <surname> Nic </surname> <mail> nicmila@i... </mail> <support> http://www.zvon.org </support> <zvonMailingList> http://www.zvon.org/index.php?nav_id=4 </zvonMailingList>
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|