SAX Api and comments.

David Megginson (david@megginson.com)
Wed, 5 Aug 1998 17:12:51 -0400


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:

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

All the best,

David

-- 
David Megginson                 david@megginson.com
           http://www.megginson.com/