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>
<!-- *** 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>
<!-- *** 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.