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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top