Gets the base URI of the current node.
[Visual Basic] Overridable Public ReadOnly Property BaseURI As String [C#] public string BaseURI {override get;} [C++] public: __property virtual String* get_BaseURI(); [JScript] public function get BaseURI() : String;
The base URI of the current node. The string returned is also in NameTable.
A "networked" XML document is comprised of chunks of data aggregated using various W3C standard inclusion mechanisms and therefore contains nodes that come from different places. DTD Entities are an example of this--but this is not limited to DTD's. The BaseURI tells you where these nodes came from. If there is no base URI for the nodes being returned (maybe they were parsed from an in-memory string), String.Empty is returned.
XmlTextReader Class | XmlTextReader Members | System.NewXml Namespace