XML Programming

Classes

Class Description
TXTextControl.XmlElement An instance of this class represents an element in a XML document.
TXTextControl.XmlElementCollection An instance of this class contains all elements of an XML document that have the same element name.
TXTextControl.XmlErrorEventArgs The XmlErrorEventArgs class provides data for the TextControl.XmlNotWellFormed and TextControl.XmlInvalid events.

Constructors

Constructor Description
TXTextControl.XmlElement Initializes a new instance of the XmlElement class.

Events

Event Description
TXTextControl.ServerTextControl.XmlInvalid Occurs when a loaded or changed XML document cannot be validated with the document type definition (DTD) referenced in the document.
TXTextControl.ServerTextControl.XmlNotWellFormed Occurs when a loaded XML document is not well-formed.

Methods

Method Description
TXTextControl.ServerTextControl.GetXmlElements Returns a collection of XML elements.
TXTextControl.ServerTextControl.OnXmlInvalid Raises the XmlInvalid event.
TXTextControl.ServerTextControl.OnXmlNotWellFormed Raises the XmlNotWellFormed event.
TXTextControl.XmlElement.AddChild Adds a new XML element as a sub-element of this element.
TXTextControl.XmlElement.GetChildItem Returns an XML Element object that represents a child element of this element.
TXTextControl.XmlElement.RemoveChild Removes an XML child element.
TXTextControl.XmlElement.Select Selects the text of the XML element.
TXTextControl.XmlElementCollection.Add Adds the specified XML element to the collection.
TXTextControl.XmlElementCollection.CopyTo Copies the elements of the collection to an array, starting at a particular index.
TXTextControl.XmlElementCollection.GetEnumerator Returns an enumerator that can be used to iterate through the collection.
TXTextControl.XmlElementCollection.GetItem Returns a particular XML element from the collection.
TXTextControl.XmlElementCollection.Remove Removes an XML element from an XML document.

Properties

Property Description
TXTextControl.XmlElement.AutoSelect Determines whether the text of a newly added XML element is automatically selected.
TXTextControl.XmlElement.AutoText Determines whether text is automatically created for a newly added XML element that has no text contents.
TXTextControl.XmlElement.ElementName Gets the name of an XML element.
TXTextControl.XmlElement.Text Specifies the text of the XML element.
TXTextControl.XmlElementCollection.Count Gets the number of XML elements in the collection.
TXTextControl.XmlErrorEventArgs.FilePosition Gets the absolute file position in the XML document where the error occurred.
TXTextControl.XmlErrorEventArgs.LineNumber Gets the line number in the XML document that contains the error.
TXTextControl.XmlErrorEventArgs.LinePosition Gets the character position within the line where the error occurred.
TXTextControl.XmlErrorEventArgs.Reason Gets the reason for the error.
TXTextControl.XmlErrorEventArgs.URL Gets the URL of the XML document containing the error.