C# Class Spring.Util.ConfigXmlDocument

An XmlDocument implementation, who's elements retain information about their location in the original XML text document the were read from.
When loading a document, the used XmlReader must implement IXmlLineInfo. Typical XmlReader implementations like XmlTextReader support this interface.
Inheritance: System.Xml.XmlDocument
Show file Open project: spring-projects/spring-net Class Usage Examples

Public Methods

Method Description
CreateAttribute ( string prefix, string localName, string namespaceURI ) : XmlAttribute

Overridden to create a ConfigXmlAttribute retaining the current text position information.

CreateElement ( string prefix, string localName, string namespaceURI ) : XmlElement

Overridden to create a ConfigXmlElement retaining the current text position information.

Load ( XmlReader reader ) : void

Load the document from the given XmlReader. Child nodes will store null as their ITextPosition.Filename property.

Load ( string filePath ) : void

Load the document from the given XmlReader.

Load ( string resourceName, Stream stream ) : void

Load the document from the given XmlReader. Child nodes will store resourceName as their ITextPosition.Filename property.

Load ( string resourceName, TextReader reader ) : void

Load the document from the given XmlReader. Child nodes will store resourceName as their ITextPosition.Filename property.

Load ( string resourceName, XmlReader reader ) : void

Load the document from the given XmlReader. Child nodes will store resourceName as their ITextPosition.Filename property.

Load ( string resourceName, string filePath ) : void

Load the document from the given XmlReader. Child nodes will store resourceName as their ITextPosition.Filename property.

LoadXml ( string resourceName, string xml ) : void

Load the document from the given XmlReader. Child nodes will store resourceName as their ITextPosition.Filename property.

ReadNode ( XmlReader reader ) : XmlNode

Creates an object based on the information in the . The reader must be positioned on a node or attribute. Child nodes will store null as their ITextPosition.Filename property.

ReadNode ( string resourceName, XmlReader reader ) : XmlNode

Creates an object based on the information in the . The reader must be positioned on a node or attribute. Child nodes will store resourceName as their ITextPosition.Filename property.

Method Details

CreateAttribute() public method

Overridden to create a ConfigXmlAttribute retaining the current text position information.
public CreateAttribute ( string prefix, string localName, string namespaceURI ) : XmlAttribute
prefix string
localName string
namespaceURI string
return System.Xml.XmlAttribute

CreateElement() public method

Overridden to create a ConfigXmlElement retaining the current text position information.
public CreateElement ( string prefix, string localName, string namespaceURI ) : XmlElement
prefix string
localName string
namespaceURI string
return System.Xml.XmlElement

Load() public method

Load the document from the given XmlReader. Child nodes will store null as their ITextPosition.Filename property.
public Load ( XmlReader reader ) : void
reader XmlReader The XML source
return void

Load() public method

Load the document from the given XmlReader.
public Load ( string filePath ) : void
filePath string The XML source
return void

Load() public method

Load the document from the given XmlReader. Child nodes will store resourceName as their ITextPosition.Filename property.
public Load ( string resourceName, Stream stream ) : void
resourceName string the name of the resource
stream Stream The XML source
return void

Load() public method

Load the document from the given XmlReader. Child nodes will store resourceName as their ITextPosition.Filename property.
public Load ( string resourceName, TextReader reader ) : void
resourceName string the name of the resource
reader System.IO.TextReader The XML source
return void

Load() public method

Load the document from the given XmlReader. Child nodes will store resourceName as their ITextPosition.Filename property.
public Load ( string resourceName, XmlReader reader ) : void
resourceName string the name of the resource
reader XmlReader The XML source
return void

Load() public method

Load the document from the given XmlReader. Child nodes will store resourceName as their ITextPosition.Filename property.
public Load ( string resourceName, string filePath ) : void
resourceName string the name of the resource
filePath string The XML source
return void

LoadXml() public method

Load the document from the given XmlReader. Child nodes will store resourceName as their ITextPosition.Filename property.
public LoadXml ( string resourceName, string xml ) : void
resourceName string the name of the resource
xml string The XML source
return void

ReadNode() public method

Creates an object based on the information in the . The reader must be positioned on a node or attribute. Child nodes will store null as their ITextPosition.Filename property.
The reader is positioned on a node type that does not translate to a valid DOM node (for example, EndElement or EndEntity).
public ReadNode ( XmlReader reader ) : XmlNode
reader XmlReader The XML source
return XmlNode

ReadNode() public method

Creates an object based on the information in the . The reader must be positioned on a node or attribute. Child nodes will store resourceName as their ITextPosition.Filename property.
The reader is positioned on a node type that does not translate to a valid DOM node (for example, EndElement or EndEntity).
public ReadNode ( string resourceName, XmlReader reader ) : XmlNode
resourceName string the name of the resource
reader XmlReader The XML source
return XmlNode