Umm, try this one on for size...
Given and XML document (MSXML say), if when iterating thru the Document, how can one find the character (starting character) position of any given Node with in the Document (source xml), white space and all?
For example, if the document looks something like this:
and while iterating thru the DOM you come across node2, who's xml isCode:<node1>
---tab--- <node2>
---tab--- ---tab--- <node3/>
---tab--- </node2>
</node1>
how do you find the character position of the "<" in "<node2>" within the entire document ?Code:<node2>
---tab--- <node3/>
</node2>
A simple Find won't work because if you search for the node2 xml (with one tab) in the doc xml, you won't find it because node2 in the doc contains two tabs.
Anyone got any ideas?
td.
