XmlDocument
Overview
Location
- Reference: Sugar
- Namespace: Sugar.Xml
- Ancestry: XmlNode | XmlDocument
constructor
constructor(aNode: XObject)
XmlDocument(XObject aNode)
init(_ aNode: XObject)
XmlDocument(XObject aNode)
Sub New(aNode As XObject)
Parameters:
- aNode:
AddChild
method AddChild(Node: XmlNode)
void AddChild(XmlNode Node)
func AddChild(_ Node: XmlNode)
void AddChild(XmlNode Node)
Sub AddChild(Node As XmlNode)
Parameters:
- Node:
ChildCount (declared in XmlNode)
property ChildCount: Int32 read;
Int32 ChildCount { get; }
var ChildCount: Int32 { get{} }
Int32 ChildCount { __get; }
ReadOnly Property ChildCount() As Int32
ChildNodes (declared in XmlNode)
property ChildNodes: array of XmlNode read;
XmlNode[] ChildNodes { get; }
var ChildNodes: XmlNode... { get{} }
XmlNode[] ChildNodes { __get; }
ReadOnly Property ChildNodes() As XmlNode()
CreateAttribute (String): XmlAttribute
method CreateAttribute(Name: String): XmlAttribute
XmlAttribute CreateAttribute(String Name)
func CreateAttribute(_ Name: String) -> XmlAttribute
XmlAttribute CreateAttribute(String Name)
Function CreateAttribute(Name As String) As XmlAttribute
Parameters:
- Name:
CreateAttribute (String, String): XmlAttribute
method CreateAttribute(QualifiedName: String; NamespaceUri: String): XmlAttribute
XmlAttribute CreateAttribute(String QualifiedName, String NamespaceUri)
func CreateAttribute(_ QualifiedName: String, _ NamespaceUri: String) -> XmlAttribute
XmlAttribute CreateAttribute(String QualifiedName, String NamespaceUri)
Function CreateAttribute(QualifiedName As String, NamespaceUri As String) As XmlAttribute
Parameters:
- QualifiedName:
- NamespaceUri:
CreateCDataSection
method CreateCDataSection(Data: String): XmlCDataSection
XmlCDataSection CreateCDataSection(String Data)
func CreateCDataSection(_ Data: String) -> XmlCDataSection
XmlCDataSection CreateCDataSection(String Data)
Function CreateCDataSection(Data As String) As XmlCDataSection
Parameters:
- Data:
CreateComment
method CreateComment(Data: String): XmlComment
XmlComment CreateComment(String Data)
func CreateComment(_ Data: String) -> XmlComment
XmlComment CreateComment(String Data)
Function CreateComment(Data As String) As XmlComment
Parameters:
- Data:
CreateCompatibleNode protected (declared in XmlNode)
class method CreateCompatibleNode(Node: XNode): XmlNode
static XmlNode CreateCompatibleNode(XNode Node)
static func CreateCompatibleNode(_ Node: XNode) -> XmlNode
static XmlNode CreateCompatibleNode(XNode Node)
Shared Function CreateCompatibleNode(Node As XNode) As XmlNode
Parameters:
- Node:
CreateDocument
class method CreateDocument: not nullable XmlDocument
static XmlDocument! CreateDocument()
static func CreateDocument() -> XmlDocument
static XmlDocument CreateDocument()
Shared Function CreateDocument() As XmlDocument
CreateElement (String): XmlElement
method CreateElement(Name: String): XmlElement
XmlElement CreateElement(String Name)
func CreateElement(_ Name: String) -> XmlElement
XmlElement CreateElement(String Name)
Function CreateElement(Name As String) As XmlElement
Parameters:
- Name:
CreateElement (String, String): XmlElement
method CreateElement(QualifiedName: String; NamespaceUri: String): XmlElement
XmlElement CreateElement(String QualifiedName, String NamespaceUri)
func CreateElement(_ QualifiedName: String, _ NamespaceUri: String) -> XmlElement
XmlElement CreateElement(String QualifiedName, String NamespaceUri)
Function CreateElement(QualifiedName As String, NamespaceUri As String) As XmlElement
Parameters:
- QualifiedName:
- NamespaceUri:
CreateProcessingInstruction
method CreateProcessingInstruction(Target: String; Data: String): XmlProcessingInstruction
XmlProcessingInstruction CreateProcessingInstruction(String Target, String Data)
func CreateProcessingInstruction(_ Target: String, _ Data: String) -> XmlProcessingInstruction
XmlProcessingInstruction CreateProcessingInstruction(String Target, String Data)
Function CreateProcessingInstruction(Target As String, Data As String) As XmlProcessingInstruction
Parameters:
- Target:
- Data:
CreateTextNode
Parameters:
- Data:
CreateXmlNs
method CreateXmlNs(Prefix: String; NamespaceUri: String): XmlAttribute
XmlAttribute CreateXmlNs(String Prefix, String NamespaceUri)
func CreateXmlNs(_ Prefix: String, _ NamespaceUri: String) -> XmlAttribute
XmlAttribute CreateXmlNs(String Prefix, String NamespaceUri)
Function CreateXmlNs(Prefix As String, NamespaceUri As String) As XmlAttribute
Parameters:
- Prefix:
- NamespaceUri:
Document (declared in XmlNode)
property Document: XmlDocument read;
XmlDocument Document { get; }
var Document: XmlDocument { get{} }
XmlDocument Document { __get; }
ReadOnly Property Document() As XmlDocument
DocumentElement
property DocumentElement: XmlElement read;
XmlElement DocumentElement { get; }
var DocumentElement: XmlElement { get{} }
XmlElement DocumentElement { __get; }
ReadOnly Property DocumentElement() As XmlElement
DocumentType
property DocumentType: XmlDocumentType read;
XmlDocumentType DocumentType { get; }
var DocumentType: XmlDocumentType { get{} }
XmlDocumentType DocumentType { __get; }
ReadOnly Property DocumentType() As XmlDocumentType
Element
property Element[Name: String]: XmlElement read;
XmlElement Element[String Name] { get; }
subscript Element(_ Name: String) -> XmlElement { get{} }
XmlElement Element[String Name] { __get; }
ReadOnly Property Element(Name As String) As XmlElement
Equals (declared in XmlNode)
Parameters:
- obj:
FirstChild (declared in XmlNode)
property FirstChild: XmlNode read;
XmlNode FirstChild { get; }
var FirstChild: XmlNode { get{} }
XmlNode FirstChild { __get; }
ReadOnly Property FirstChild() As XmlNode
FromBinary
class method FromBinary(aBinary: Binary): not nullable XmlDocument
static XmlDocument! FromBinary(Binary aBinary)
static func FromBinary(_ aBinary: Binary) -> XmlDocument
static XmlDocument FromBinary(Binary aBinary)
Shared Function FromBinary(aBinary As Binary) As XmlDocument
Parameters:
- aBinary:
FromFile
class method FromFile(aFile: File): not nullable XmlDocument
static XmlDocument! FromFile(File aFile)
static func FromFile(_ aFile: File) -> XmlDocument
static XmlDocument FromFile(File aFile)
Shared Function FromFile(aFile As File) As XmlDocument
Parameters:
- aFile:
FromString
class method FromString(aString: String): not nullable XmlDocument
static XmlDocument! FromString(String aString)
static func FromString(_ aString: String) -> XmlDocument
static XmlDocument FromString(String aString)
Shared Function FromString(aString As String) As XmlDocument
Parameters:
- aString:
GetElementsByTagName (String): array of XmlElement
method GetElementsByTagName(Name: String): array of XmlElement
XmlElement[] GetElementsByTagName(String Name)
func GetElementsByTagName(_ Name: String) -> XmlElement...
XmlElement[] GetElementsByTagName(String Name)
Function GetElementsByTagName(Name As String) As XmlElement()
Parameters:
- Name:
GetElementsByTagName (String, String): array of XmlElement
method GetElementsByTagName(LocalName: String; NamespaceUri: String): array of XmlElement
XmlElement[] GetElementsByTagName(String LocalName, String NamespaceUri)
func GetElementsByTagName(_ LocalName: String, _ NamespaceUri: String) -> XmlElement...
XmlElement[] GetElementsByTagName(String LocalName, String NamespaceUri)
Function GetElementsByTagName(LocalName As String, NamespaceUri As String) As XmlElement()
Parameters:
- LocalName:
- NamespaceUri:
Item (declared in XmlNode)
LastChild (declared in XmlNode)
property LastChild: XmlNode read;
XmlNode LastChild { get; }
var LastChild: XmlNode { get{} }
XmlNode LastChild { __get; }
ReadOnly Property LastChild() As XmlNode
LocalName (declared in XmlNode)
property LocalName: String read;
String LocalName { get; }
var LocalName: String { get{} }
String LocalName { __get; }
ReadOnly Property LocalName() As String
Name (declared in XmlNode)
property Name: String read;
String Name { get; }
var Name: String { get{} }
String Name { __get; }
ReadOnly Property Name() As String
NextSibling (declared in XmlNode)
property NextSibling: XmlNode read;
XmlNode NextSibling { get; }
var NextSibling: XmlNode { get{} }
XmlNode NextSibling { __get; }
ReadOnly Property NextSibling() As XmlNode
Node protected (declared in XmlNode)
property Node: XObject read;
XObject Node { get; }
var Node: XObject { get{} }
XObject Node { __get; }
ReadOnly Property Node() As XObject
NodeType
property NodeType: XmlNodeType read;
XmlNodeType NodeType { get; }
var NodeType: XmlNodeType { get{} }
XmlNodeType NodeType { __get; }
ReadOnly Property NodeType() As XmlNodeType
OwnerDocument (declared in XmlNode)
property OwnerDocument: XmlDocument read;
XmlDocument OwnerDocument { get; }
var OwnerDocument: XmlDocument { get{} }
XmlDocument OwnerDocument { __get; }
ReadOnly Property OwnerDocument() As XmlDocument
Parent (declared in XmlNode)
property Parent: XmlNode read;
XmlNode Parent { get; }
var Parent: XmlNode { get{} }
XmlNode Parent { __get; }
ReadOnly Property Parent() As XmlNode
PreviousSibling (declared in XmlNode)
property PreviousSibling: XmlNode read;
XmlNode PreviousSibling { get; }
var PreviousSibling: XmlNode { get{} }
XmlNode PreviousSibling { __get; }
ReadOnly Property PreviousSibling() As XmlNode
RemoveChild
method RemoveChild(Node: XmlNode)
void RemoveChild(XmlNode Node)
func RemoveChild(_ Node: XmlNode)
void RemoveChild(XmlNode Node)
Sub RemoveChild(Node As XmlNode)
Parameters:
- Node:
ReplaceChild
Parameters:
- Node:
- WithNode:
Save (File)
method Save(aFile: File)
void Save(File aFile)
func Save(_ aFile: File)
void Save(File aFile)
Sub Save(aFile As File)
Parameters:
- aFile:
Parameters:
- aFile:
- Version:
- Encoding:
- Standalone:
Save (File, XmlDocumentDeclaration)
method Save(aFile: File; XmlDeclaration: XmlDocumentDeclaration)
void Save(File aFile, XmlDocumentDeclaration XmlDeclaration)
func Save(_ aFile: File, _ XmlDeclaration: XmlDocumentDeclaration)
void Save(File aFile, XmlDocumentDeclaration XmlDeclaration)
Sub Save(aFile As File, XmlDeclaration As XmlDocumentDeclaration)
Parameters:
- aFile:
- XmlDeclaration:
ToString (declared in XmlNode)
method ToString: String
String ToString()
func ToString() -> String
String ToString()
Function ToString() As String
Value (declared in XmlNode)
ChildCount (declared in XmlNode)
property ChildCount: Int32 read;
Int32 ChildCount { get; }
var ChildCount: Int32 { get{} }
Int32 ChildCount { __get; }
ReadOnly Property ChildCount() As Int32
ChildNodes (declared in XmlNode)
property ChildNodes: array of XmlNode read;
XmlNode[] ChildNodes { get; }
var ChildNodes: XmlNode... { get{} }
XmlNode[] ChildNodes { __get; }
ReadOnly Property ChildNodes() As XmlNode()
Document (declared in XmlNode)
property Document: XmlDocument read;
XmlDocument Document { get; }
var Document: XmlDocument { get{} }
XmlDocument Document { __get; }
ReadOnly Property Document() As XmlDocument
DocumentElement
property DocumentElement: XmlElement read;
XmlElement DocumentElement { get; }
var DocumentElement: XmlElement { get{} }
XmlElement DocumentElement { __get; }
ReadOnly Property DocumentElement() As XmlElement
DocumentType
property DocumentType: XmlDocumentType read;
XmlDocumentType DocumentType { get; }
var DocumentType: XmlDocumentType { get{} }
XmlDocumentType DocumentType { __get; }
ReadOnly Property DocumentType() As XmlDocumentType
Element
property Element[Name: String]: XmlElement read;
XmlElement Element[String Name] { get; }
subscript Element(_ Name: String) -> XmlElement { get{} }
XmlElement Element[String Name] { __get; }
ReadOnly Property Element(Name As String) As XmlElement
FirstChild (declared in XmlNode)
property FirstChild: XmlNode read;
XmlNode FirstChild { get; }
var FirstChild: XmlNode { get{} }
XmlNode FirstChild { __get; }
ReadOnly Property FirstChild() As XmlNode
Item (declared in XmlNode)
LastChild (declared in XmlNode)
property LastChild: XmlNode read;
XmlNode LastChild { get; }
var LastChild: XmlNode { get{} }
XmlNode LastChild { __get; }
ReadOnly Property LastChild() As XmlNode
LocalName (declared in XmlNode)
property LocalName: String read;
String LocalName { get; }
var LocalName: String { get{} }
String LocalName { __get; }
ReadOnly Property LocalName() As String
Name (declared in XmlNode)
property Name: String read;
String Name { get; }
var Name: String { get{} }
String Name { __get; }
ReadOnly Property Name() As String
NextSibling (declared in XmlNode)
property NextSibling: XmlNode read;
XmlNode NextSibling { get; }
var NextSibling: XmlNode { get{} }
XmlNode NextSibling { __get; }
ReadOnly Property NextSibling() As XmlNode
Node protected (declared in XmlNode)
property Node: XObject read;
XObject Node { get; }
var Node: XObject { get{} }
XObject Node { __get; }
ReadOnly Property Node() As XObject
NodeType
property NodeType: XmlNodeType read;
XmlNodeType NodeType { get; }
var NodeType: XmlNodeType { get{} }
XmlNodeType NodeType { __get; }
ReadOnly Property NodeType() As XmlNodeType
OwnerDocument (declared in XmlNode)
property OwnerDocument: XmlDocument read;
XmlDocument OwnerDocument { get; }
var OwnerDocument: XmlDocument { get{} }
XmlDocument OwnerDocument { __get; }
ReadOnly Property OwnerDocument() As XmlDocument
Parent (declared in XmlNode)
property Parent: XmlNode read;
XmlNode Parent { get; }
var Parent: XmlNode { get{} }
XmlNode Parent { __get; }
ReadOnly Property Parent() As XmlNode
PreviousSibling (declared in XmlNode)
property PreviousSibling: XmlNode read;
XmlNode PreviousSibling { get; }
var PreviousSibling: XmlNode { get{} }
XmlNode PreviousSibling { __get; }
ReadOnly Property PreviousSibling() As XmlNode
Value (declared in XmlNode)
CreateCompatibleNode protected (declared in XmlNode)
class method CreateCompatibleNode(Node: XNode): XmlNode
static XmlNode CreateCompatibleNode(XNode Node)
static func CreateCompatibleNode(_ Node: XNode) -> XmlNode
static XmlNode CreateCompatibleNode(XNode Node)
Shared Function CreateCompatibleNode(Node As XNode) As XmlNode
Parameters:
- Node:
CreateDocument
class method CreateDocument: not nullable XmlDocument
static XmlDocument! CreateDocument()
static func CreateDocument() -> XmlDocument
static XmlDocument CreateDocument()
Shared Function CreateDocument() As XmlDocument
FromBinary
class method FromBinary(aBinary: Binary): not nullable XmlDocument
static XmlDocument! FromBinary(Binary aBinary)
static func FromBinary(_ aBinary: Binary) -> XmlDocument
static XmlDocument FromBinary(Binary aBinary)
Shared Function FromBinary(aBinary As Binary) As XmlDocument
Parameters:
- aBinary:
FromFile
class method FromFile(aFile: File): not nullable XmlDocument
static XmlDocument! FromFile(File aFile)
static func FromFile(_ aFile: File) -> XmlDocument
static XmlDocument FromFile(File aFile)
Shared Function FromFile(aFile As File) As XmlDocument
Parameters:
- aFile:
FromString
class method FromString(aString: String): not nullable XmlDocument
static XmlDocument! FromString(String aString)
static func FromString(_ aString: String) -> XmlDocument
static XmlDocument FromString(String aString)
Shared Function FromString(aString As String) As XmlDocument
Parameters:
- aString:
constructor
constructor(aNode: XObject)
XmlDocument(XObject aNode)
init(_ aNode: XObject)
XmlDocument(XObject aNode)
Sub New(aNode As XObject)
Parameters:
- aNode:
AddChild
method AddChild(Node: XmlNode)
void AddChild(XmlNode Node)
func AddChild(_ Node: XmlNode)
void AddChild(XmlNode Node)
Sub AddChild(Node As XmlNode)
Parameters:
- Node:
CreateAttribute (String): XmlAttribute
method CreateAttribute(Name: String): XmlAttribute
XmlAttribute CreateAttribute(String Name)
func CreateAttribute(_ Name: String) -> XmlAttribute
XmlAttribute CreateAttribute(String Name)
Function CreateAttribute(Name As String) As XmlAttribute
Parameters:
- Name:
CreateAttribute (String, String): XmlAttribute
method CreateAttribute(QualifiedName: String; NamespaceUri: String): XmlAttribute
XmlAttribute CreateAttribute(String QualifiedName, String NamespaceUri)
func CreateAttribute(_ QualifiedName: String, _ NamespaceUri: String) -> XmlAttribute
XmlAttribute CreateAttribute(String QualifiedName, String NamespaceUri)
Function CreateAttribute(QualifiedName As String, NamespaceUri As String) As XmlAttribute
Parameters:
- QualifiedName:
- NamespaceUri:
CreateCDataSection
method CreateCDataSection(Data: String): XmlCDataSection
XmlCDataSection CreateCDataSection(String Data)
func CreateCDataSection(_ Data: String) -> XmlCDataSection
XmlCDataSection CreateCDataSection(String Data)
Function CreateCDataSection(Data As String) As XmlCDataSection
Parameters:
- Data:
CreateComment
method CreateComment(Data: String): XmlComment
XmlComment CreateComment(String Data)
func CreateComment(_ Data: String) -> XmlComment
XmlComment CreateComment(String Data)
Function CreateComment(Data As String) As XmlComment
Parameters:
- Data:
CreateElement (String): XmlElement
method CreateElement(Name: String): XmlElement
XmlElement CreateElement(String Name)
func CreateElement(_ Name: String) -> XmlElement
XmlElement CreateElement(String Name)
Function CreateElement(Name As String) As XmlElement
Parameters:
- Name:
CreateElement (String, String): XmlElement
method CreateElement(QualifiedName: String; NamespaceUri: String): XmlElement
XmlElement CreateElement(String QualifiedName, String NamespaceUri)
func CreateElement(_ QualifiedName: String, _ NamespaceUri: String) -> XmlElement
XmlElement CreateElement(String QualifiedName, String NamespaceUri)
Function CreateElement(QualifiedName As String, NamespaceUri As String) As XmlElement
Parameters:
- QualifiedName:
- NamespaceUri:
CreateProcessingInstruction
method CreateProcessingInstruction(Target: String; Data: String): XmlProcessingInstruction
XmlProcessingInstruction CreateProcessingInstruction(String Target, String Data)
func CreateProcessingInstruction(_ Target: String, _ Data: String) -> XmlProcessingInstruction
XmlProcessingInstruction CreateProcessingInstruction(String Target, String Data)
Function CreateProcessingInstruction(Target As String, Data As String) As XmlProcessingInstruction
Parameters:
- Target:
- Data:
CreateTextNode
Parameters:
- Data:
CreateXmlNs
method CreateXmlNs(Prefix: String; NamespaceUri: String): XmlAttribute
XmlAttribute CreateXmlNs(String Prefix, String NamespaceUri)
func CreateXmlNs(_ Prefix: String, _ NamespaceUri: String) -> XmlAttribute
XmlAttribute CreateXmlNs(String Prefix, String NamespaceUri)
Function CreateXmlNs(Prefix As String, NamespaceUri As String) As XmlAttribute
Parameters:
- Prefix:
- NamespaceUri:
Equals (declared in XmlNode)
Parameters:
- obj:
GetElementsByTagName (String): array of XmlElement
method GetElementsByTagName(Name: String): array of XmlElement
XmlElement[] GetElementsByTagName(String Name)
func GetElementsByTagName(_ Name: String) -> XmlElement...
XmlElement[] GetElementsByTagName(String Name)
Function GetElementsByTagName(Name As String) As XmlElement()
Parameters:
- Name:
GetElementsByTagName (String, String): array of XmlElement
method GetElementsByTagName(LocalName: String; NamespaceUri: String): array of XmlElement
XmlElement[] GetElementsByTagName(String LocalName, String NamespaceUri)
func GetElementsByTagName(_ LocalName: String, _ NamespaceUri: String) -> XmlElement...
XmlElement[] GetElementsByTagName(String LocalName, String NamespaceUri)
Function GetElementsByTagName(LocalName As String, NamespaceUri As String) As XmlElement()
Parameters:
- LocalName:
- NamespaceUri:
RemoveChild
method RemoveChild(Node: XmlNode)
void RemoveChild(XmlNode Node)
func RemoveChild(_ Node: XmlNode)
void RemoveChild(XmlNode Node)
Sub RemoveChild(Node As XmlNode)
Parameters:
- Node:
ReplaceChild
Parameters:
- Node:
- WithNode:
Save (File)
method Save(aFile: File)
void Save(File aFile)
func Save(_ aFile: File)
void Save(File aFile)
Sub Save(aFile As File)
Parameters:
- aFile:
Parameters:
- aFile:
- Version:
- Encoding:
- Standalone:
Save (File, XmlDocumentDeclaration)
method Save(aFile: File; XmlDeclaration: XmlDocumentDeclaration)
void Save(File aFile, XmlDocumentDeclaration XmlDeclaration)
func Save(_ aFile: File, _ XmlDeclaration: XmlDocumentDeclaration)
void Save(File aFile, XmlDocumentDeclaration XmlDeclaration)
Sub Save(aFile As File, XmlDeclaration As XmlDocumentDeclaration)
Parameters:
- aFile:
- XmlDeclaration:
ToString (declared in XmlNode)