XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] XML2.0: Comments (Was: Towards XML 2.0)

Original Message From: "Dimitre Novatchev"
> Who writes XML by hand today? Leave your IDE comment and uncomment
> markup for you.


Sadly the IDEs I tested are not up to it.  I put the following into Visual 
Studio 2005, 2008 and 2010:

<TopElement>
    <MyElement>
        <!-- The price is changed by the controller -->
        <price>100.00</price>
    </BrokenMyElement> <!-- Is this the problem? -->
</TopElement>

I selected MyElement to /BrokenMyElement and told it to comment it out. 
This yielded:

<!--<TopElement>
    <MyElement>
        --><!-- The price is changed by the controller --><!--
        <price>100.00</price>
    </BrokenMyElement> --><!-- Is this the problem? --><!--
</TopElement>-->

So far, so good.  I then told it to uncomment it, and it resulted in:

<TopElement>
    <MyElement>
         The price is changed by the controller
        <price>100.00</price>
    </BrokenMyElement>  Is this the problem?
</TopElement>

Clearly that's failed.

I also put the above into Eclipse.  When told to comment it out it did:

<TopElement>
    <!-- <MyElement>
         The price is changed by the controller
        <price>100.00</price>
    </BrokenMyElement>  Is this the problem? -->
</TopElement>

That doesn't work either.

Other IDEs may work better, although to be honest I don't think there is 
enough information in the commented out versions to make it reversible.

So leaving it up to ther IDE doesn't seem like an option.

Pete Cordell
Codalogic Ltd
Interface XML to C++ the easy way using C++ XML
data binding to convert XSD schemas to C++ classes.
Visit http://codalogic.com/lmx/ or http://www.xml2cpp.com
for more info





[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS