Should I instantiate a XmlTextReader object and pass this to the
XmlReader.Create() method and then access this underlying text reader
to obtain the info I need? Or is there some way to get the
XmlReader.Create() method to return a XmlTextReader object? Or should I
ignore their suggestion and simply create an XmlTextReader object
manually and not use the XmlReader.Create() method at all.
I asked this question back on May 18th in
microsoft.public.dotnet.languages.csharp but did not receive a
response, hopefully I will here.
Thanks!
reader = XmlReader.Create (...)
IXmlLineInfo info = reader as IXmlLineInfo;
Console.WriteLine(info.LineNumber);
Console.WriteLine(info.LinePosition);
this should print your line numbers of the current node.
Thanks,
Zafar
"jonfroehlich" <jonfro...@gmail.com> wrote in message
news:1152654097.7...@s13g2000cwa.googlegroups.com...
This works great! I didn't realize IXmlLineInfo existed before :-|