Saxon.Api

 

 

Saxon.Api

Interface IXmlLocation


public interface IXmlLocation

An IXmlLocation represents the location of a node within an XML document. It is in two parts: the base URI (or system ID) of the external entity (which will usually be the XML document entity itself), and the line number of a node relative to the base URI of the containing external entity.

Property Summary

 Uri BaseUri

The base URI (system ID) of an external entity within an XML document. Set to null if the base URI is not known (for example, for an XML document created programmatically where no base URI has been set up).

 int LineNumber

The line number of a node relative to the start of the external entity. The value -1 indicates that the line number is not known or not applicable.

 

Property Detail

BaseUri

public Uri BaseUri {get; set; }

The base URI (system ID) of an external entity within an XML document. Set to null if the base URI is not known (for example, for an XML document created programmatically where no base URI has been set up).

LineNumber

public int LineNumber {get; set; }

The line number of a node relative to the start of the external entity. The value -1 indicates that the line number is not known or not applicable.