[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XML2.0: Comments (Was: Towards XML 2.0)
I meant that if the <xml:comment> notation is accepted, it is likely that the IDE's will start to handle commenting/uncommenting in a satisfactory way (and described one such possible behaviour). I didn't mean that the IDE's at present are doing good commenting/uncommenting job whenever the commenting results in nested comments -- probably because there isn't enough information to do the uncommenting correctly. However, it seems to me that the <xml:comment> mechanism could provide sufficient information to reverse the commenting. -- Cheers, Dimitre Novatchev --------------------------------------- Truly great madness cannot be achieved without significant intelligence. --------------------------------------- To invent, you need a good imagination and a pile of junk ------------------------------------- Never fight an inanimate object ------------------------------------- You've achieved success in your field when you don't know whether what you're doing is work or play On Sun, Dec 5, 2010 at 11:25 AM, Pete Cordell <petexmldev@codalogic.com> wrote: > 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] |
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|