Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27254

Select xml node and comment

$
0
0
Hey,

So I'm have real diffuculties selecting a node to then make it into a comment.

I have tried using linq, xcomment and xpath xmlcomment

The structure of my xml is:

Code:

<Main>
  <Services>
    <Service name="01">
    <Uses>
      <Use type="front">
      <Member name="01"/>
      </Use>
    </Uses>
    </Service>
  </Services>
  <Adaptors>
    <Adaptor name="cash" start="true"/>
    <Adaptor name="card" start="true"/>
    <Adaptor name="coupon" start="true"/>
  </Adaptors>
 </Main>

What i would like to do is just find a specific node say the adaptor - card, and comment it out using the <!-- -->

Is there a way to do this?

Viewing all articles
Browse latest Browse all 27254

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>