【发布时间】:2011-09-10 12:31:41
【问题描述】:
假设在我的 C# 代码中,我从 XmlDocument(或 XDocument强>)。如何在 XML 文件中获取此 XmlElement 的字符位置?
换句话说,我想被告知
"Your element starts on the 176th character in the text file containing the XML",
不是
"Your 'book' element is the 3rd 'book' element in the whole XML document".
【问题讨论】: