SAX Api and comments.

David Megginson david at megginson.com
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:

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


All the best,


David

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

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




More information about the Xml-dev mailing list