HELP! current node from the xml

T

troubleD

for example i have an xml document that looks like this:

<record>
<name>joe</name>
<country>new zealand</country>
<phone>12334556</phone>
</record>
<record>
<name>sam</name>
<country>australia</country>
<phone>454345436</phone>
</record>
<record>
<name>lee</name>
<country>japan</country>
<phone>1111436</phone>
</record>

my problem is how can i trace my current selection of a particular node? like if i selected "sam" how can i select from the xml its position? does it have a count reference or id for that matter?

i will just trace the duplicates entered by the user by selecting the current node and compare it with the other nodes.

thanks!
 
S

Steve van Dongen [MSFT]

troubleD said:
for example i have an xml document that looks like this:

<record>
<name>joe</name>
<country>new zealand</country>
<phone>12334556</phone>
</record>
<record>
<name>sam</name>
<country>australia</country>
<phone>454345436</phone>
</record>
<record>
<name>lee</name>
<country>japan</country>
<phone>1111436</phone>
</record>

my problem is how can i trace my current selection of a particular node? like if i selected "sam" how can i select from the xml its position? does it have a count reference or id for that matter?

i will just trace the duplicates entered by the user by selecting the current node and compare it with the other nodes.

The Structural Editing sample in the SDK shows how to map a selection
in the form to the underlying XML selection. I think that's what
you're asking for.

Regards,
Steve
 
Top