Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

remove comment tags in c#

Status
Not open for further replies.

ralphtrent

Programmer
Jun 2, 2003
958
US
Hello
I have a xnl document that has tags commented out. I would like to create a UI that will allow the user to remove the <!-- -->. Is there a way I can do this?

Thanks,
Ralph
 
The simple answer is yes, but unless you make more specific questions, will be difficult to help you.

I'd also suggest do ask in a C# forum (even if tsuji shouts at me for suggesting that)

Cheers,
Dian
 
OK, here is my example. I have the following XML tag
Code:
<blah>
[tab]<blah1>
[tab][tab][gray]<!-- <blah2>help</blah2> -->
[tab][tab]<!-- <blah3>help</blah3> -->[/gray]
[tab]</blah1>
</blah>
I want to now generate
Code:
<blah>
[tab]<blah1>
[tab][tab]<blah2>help</blah2>
[tab][tab][gray]<!-- <blah3>help</blah3> -->[/gray]
[tab]</blah1>
</blah>

The user will select which commented node to uncomment and I wil do it for them. I do not want to have to rewrite the entire xml doc. I'M think there should be a more simple way to do it.

Hope that helps.

Thanks,
RalphTrent
 
>even if tsuji shouts at me for suggesting that
I gave up many times. Make sure you use your good judgement. I find it of no pleasure for me every time I've send people around, but it is sometimes inevitable. If you find no pressing pressure for that, why don't you let yourself have a good cooling period, just like you buy some insurance policy?
 
By "pressure", I also meant "pleasure" too.
 
tsuji,
I'll assume what you are saying is nothing related directly to my post but rather a comment only to Diancecht post to you?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top