Quantcast
Channel: XML, System.Xml, MSXML and XmlLite forum
Viewing all articles
Browse latest Browse all 935

How to query this xml elements?

$
0
0

Hi,

i have the following xml:

<?xml version="1.0" encoding="utf-8" ?><Templates><Template id="100" title="Contenttemplate-1" file="Content1.aspx"><Nodes><Node id="101"><title>itmanagement</title><file>itmanagement.aspx</file><Nodes><Node id="102"><title>Orga</title><file>orga.aspx</file></Node><node id="106"><title>person</title><file>person.aspx</file></node></Nodes></Node><Node id="103"><title>foo</title><file>foo.aspx</file></Node><Node id="104"><title>bar</title><file>bar.aspx</file></Node></Nodes></Template><Template id="200" name="Contenttemplate-2" File="Content2.aspx"><Nodes><Node id="201"><title>foo</title><file>foo.aspx</file></Node></Nodes></Template></Templates>

1.) I need to query all nodes under  the TEMPLATE Element with the attribute ID = 200 but exclude the child NODES element(s)

2.) I need to query for example the NODE Element (ID=102) and get the parent Element of it

How could i achieve this?


Best regards,
Yavuz B.

My Sharepoint and Enterprise 2.0 Blog http://www.bogazci.com |Microsoft Sharepoint Resources & Blog List


Viewing all articles
Browse latest Browse all 935

Trending Articles



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