Xerces implements standards. If you can get the W3C XML
committee to incorporate this into the standard, I'm sure Xerces will support
it. However, the fact that it's not already there suggests that it might not, in
fact, be "welcome by all."
From: Gill, Prabhprit (Prabh) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 14, 2004 10:06 AM
To: [EMAIL PROTECTED]
Subject: Comments in XML.Hi,Discussions with my colleagues has raised a wish-list item. It would be nice to have a "nested comment" feature allowing the commenting of large portions of XML, which itself may contain comments. Currently, any attempt to do so results in failure at the point the first internal comment terminates. An example follows:Consider the following xml, containing comments:<requesttable name="CT_credentials" required="Y">
<!-- *** ID key column is assumed. *** -->
<!-- *** Add other key columns as required. *** -->
<column name="company" type="C" length="50" >
<column name="username" type="C" length="50" >
<column name="password" type="C" length="16" >
</requesttable>An attempt to comment out this xml is as follows:<!--<requesttable name="CT_credentials" required="Y">
<!-- *** ID key column is assumed. *** -->
<!-- *** Add other key columns as required. *** -->
<column name="company" type="C" length="50" >
<column name="username" type="C" length="50" >
<column name="password" type="C" length="16" >
</requesttable>-->which would of course fail when the first comment closes. However, if the comment parsing was context sensitive this would not occur.This is a change to the XML grammar, but we figure that if you implemented this then all would follow suit. We're certain that such a change would be welcome by all.Please let us know what you decide.Best regards,Prab.