OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] RE: Take 2 - How do you replace comments from XML?

[ Lists Home | Date Index | Thread Index ]
  • To: Bill de hÓra <bill@dehora.net>
  • Subject: RE: [xml-dev] RE: Take 2 - How do you replace comments from XML?
  • From: "Dare Obasanjo" <dareo@microsoft.com>
  • Date: Thu, 6 Mar 2003 04:57:36 -0800
  • Cc: "Danny Ayers" <danny666@virgilio.it>,<xml-dev@lists.xml.org>
  • Thread-index: AcLj3oSAzg+H86tIQueKSHSTj/aamgAAPQxq
  • Thread-topic: [xml-dev] RE: Take 2 - How do you replace comments from XML?

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@dehora.net]
Sent: Thu 3/6/2003 4:47 AM
To: Dare Obasanjo
Cc: Danny Ayers; xml-dev@lists.xml.org
Subject: Re: [xml-dev] RE: Take 2 - How do you replace comments from XML?



> This entire thread is very silly.

ROTFL.

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








 

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

Copyright 2001 XML.org. This site is hosted by OASIS