SAX Api and comments.

David Megginson david at
Wed Aug 5 23:13:45 BST 1998

Joe Duhamel writes:

 > Is ther a facility inside sax for picking up the comments?  We are
 > using an XML Document to model a UML System and would like to
 > 'preserve' comments from any hand editing that may have been done.

No, there is not -- XML comments are purely lexical.  If you want to
include comments that are significant to the document, then you might
want to consider representing them as elements:

    <comment>Last modified 1998-07-13</comment>

All the best,


David Megginson                 david at

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at
Archived as:
To (un)subscribe, mailto:majordomo at the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at

More information about the Xml-dev mailing list