This documentation is archived and is not being maintained.

XmlReader.BaseURI Property

When overridden in a derived class, gets the base URI of the current node.

[Visual Basic]
Public MustOverride ReadOnly Property BaseURI As String
public abstract string BaseURI {get;}
public: __property virtual String* get_BaseURI() = 0;
public abstract function get BaseURI() : String;

Property Value

The base URI of the current node.


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 DTDs. The base URI tells you where these nodes came from. If there is no base URI for the nodes being returned (for example, they were parsed from an in-memory string), String.Empty is returned.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

XmlReader Class | XmlReader Members | System.Xml Namespace