Determine location in XML

  • Thread starter Thread starter Jeff
  • Start date Start date
J

Jeff

I am hoping to determine the current node based on a character position. Is
this possible.
What I am trying to do is to show a text editor with my XML text. When the
user clicks anywhere in the text editor, I want to figure out what node they
are on.
Is this possible using the System.XML namespace, so I don't have to parse it
myself?

Thanks

Jeff
 
Jeff,

There is nothing like this in the System.Xml namespace. I believe that
there is a function in XPath to do this, but I don't know how you would
apply this outside of a transformation.

Hope this helps.
 

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

Back
Top