[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: RE: Take 2 - How do you replace comments from XML?

  • To: Bill de hÓra <bill@d...>
  • Subject: RE: RE: Take 2 - How do you replace comments from XML?
  • From: "Dare Obasanjo" <dareo@m...>
  • Date: Thu, 6 Mar 2003 04:57:36 -0800
  • Cc: "Danny Ayers" <danny666@v...>,<xml-dev@l...>
  • Thread-index: AcLj3oSAzg+H86tIQueKSHSTj/aamgAAPQxq
  • Thread-topic: RE: Take 2 - How do you replace comments from XML?

remove and replace re re
Well assuming he knows what block he wants to remove he can place the machine.config file in a DOM, XPath to the node that he wants to remove & replace it. If he also wants to delete the preceding node if it is a comment he can simply check if its preceding sibling is a comment (and examine its text if necessary) then remove it as well. 
Of course, it would help if the user explicitly stated what he wanted to do instead of talking in hypotheticals. 


From: Bill de hÓra [mailto:bill@d...]
Sent: Thu 3/6/2003 4:47 AM
To: Dare Obasanjo
Cc: Danny Ayers; xml-dev@l...
Subject: Re:  RE: Take 2 - How do you replace comments from XML?

> This entire thread is very silly.


Seeing as you've decided that every post in this thread is ignorant
about machine.config, perhaps you could advise the OP on an
appropriate course of action. We could all learn something from that.

Bill de hÓra


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.
First Name
Last Name
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.