C# Class ICSharpCode.NRefactory.Xml.AXmlObject

XML object. Base class for all nodes in the XML document.
Inheritance: ISegment
Show file Open project: mono-soc-2012/NRefactory Class Usage Examples

Public Properties

Property Type Description
NoNamespace string
XmlNamespace string
XmlnsNamespace string

Private Properties

Property Type Description
AXmlObject System
GetLocalName string
GetNamespacePrefix string

Public Methods

Method Description
AcceptVisitor ( ICSharpCode.NRefactory.Xml.AXmlVisitor visitor ) : void

Call appropriate visit method on the given visitor

CreateReader ( ) : XmlReader

Creates an XML reader that reads from this document.

CreateReader ( TextLocation>.Func offsetToTextLocation ) : XmlReader

Creates an XML reader that reads from this document.

GetChildAtOffset ( int offset ) : AXmlObject

Gets a child fully containg the given offset. Goes recursively down the tree. Specail case if at the end of attribute or text

Private Methods

Method Description
AXmlObject ( AXmlObject parent, int startOffset, ICSharpCode.NRefactory.Xml.InternalObject internalObject ) : System
GetLocalName ( string name ) : string

The part of name after ":"

GetNamespacePrefix ( string name ) : string

The part of name before ":"

Method Details

AcceptVisitor() public abstract method

Call appropriate visit method on the given visitor
public abstract AcceptVisitor ( ICSharpCode.NRefactory.Xml.AXmlVisitor visitor ) : void
visitor ICSharpCode.NRefactory.Xml.AXmlVisitor
return void

CreateReader() public method

Creates an XML reader that reads from this document.
public CreateReader ( ) : XmlReader
return System.Xml.XmlReader

CreateReader() public method

Creates an XML reader that reads from this document.
public CreateReader ( TextLocation>.Func offsetToTextLocation ) : XmlReader
offsetToTextLocation TextLocation>.Func
return System.Xml.XmlReader

GetChildAtOffset() public method

Gets a child fully containg the given offset. Goes recursively down the tree. Specail case if at the end of attribute or text
public GetChildAtOffset ( int offset ) : AXmlObject
offset int
return AXmlObject

Property Details

NoNamespace public static property

Empty string. The namespace used if there is no "xmlns" specified
public static string NoNamespace
return string

XmlNamespace public static property

Namespace for "xml:" prefix: "http://www.w3.org/XML/1998/namespace"
public static string XmlNamespace
return string

XmlnsNamespace public static property

Namesapce for "xmlns:" prefix: "http://www.w3.org/2000/xmlns/"
public static string XmlnsNamespace
return string