[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)

  • From: Dimitre Novatchev <dnovatchev@gmail.com>
  • To: George Cristian Bina <george@oxygenxml.com>
  • Date: Mon, 6 Dec 2010 05:49:55 -0800

Re:  XML2.0: Comments (Was: Towards XML 2.0)
> And then, un-commenting gets you back to the original.
>
> Best Regards,
> George
> --
> George Cristian Bina
> <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
> http://www.oxygenxml.com

That's Great.

A good example of little things that we can do immediately, that have
immediate value.

There are people who love talking and talking and not doing anything useful.

There are other people, who, just do small litttle things to make our
work easier.

Thank you, George.

-- 
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 Mon, Dec 6, 2010 at 2:09 AM, George Cristian Bina
<george@oxygenxml.com> wrote:
> Hi Pete,
>
> FWIW oXygen handles nested comments. For your sample:
>
>    <TopElement>
>        <MyElement>
>            <!-- The price is changed by the controller -->
>            <price>100.00</price>
>            </BrokenMyElement> <!-- Is this the problem? -->
>    </TopElement>
>
> after commenting it gives (note the escape of -- as -\-):
>
>    <!--<TopElement>
>        <MyElement>
>            <!-\- The price is changed by the controller -\->
>            <price>100.00</price>
>            </BrokenMyElement> <!-\- Is this the problem? -\->
>    </TopElement>-->
>
> And then, un-commenting gets you back to the original.
>
> Best Regards,
> George
> --
> George Cristian Bina
> <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
> http://www.oxygenxml.com
>
> On 12/5/10 9:25 PM, Pete Cordell 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
>>
>>
>>
>>
>> _______________________________________________________________________
>>
>> XML-DEV is a publicly archived, unmoderated list hosted by OASIS
>> to support XML implementation and development. To minimize
>> spam in the archives, you must subscribe before posting.
>>
>> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
>> Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
>> subscribe: xml-dev-subscribe@lists.xml.org
>> List archive: http://lists.xml.org/archives/xml-dev/
>> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
>>
>


[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!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.