This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Microsoft XML > June 2004 > XML debugging : Getting the Line number of an XML node in an XML f





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author XML debugging : Getting the Line number of an XML node in an XML f
shawnk

2004-06-21, 12:15 pm

Hello everyone,

I need to debug some XML files. I would like to find a particular target node and then print out the line number of the line in the XML document that contains the node. Is there any way to do this?
Han

2004-06-22, 7:14 am

You may want xpath like count(ancestor::* | preceding::*). However that
depends on the formatting of the interested xml, which is unpredictable.

"shawnk" <shawnk@discussions.microsoft.com> wrote in message
news:57CE98E7-ADA4-4611-8D9F-1E44EF9F5EAD@microsoft.com...
> Hello everyone,
>
> I need to debug some XML files. I would like to find a particular target

node and then print out the line number of the line in the XML document that
contains the node. Is there any way to do this?


Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews