TX Text Control ActiveX

XML Programming

Topic

When TXTextControl edits an XML document, its elements are available as XMLElement objects collected in XMLElements collections. The members below get these collections, switch the validating edit mode on and report documents that are not valid or not well-formed.

Controls and Objects

MemberDescription
XMLElementAn XMLElement object is an OLE Automation object that represents an element in an XML document.
XMLElementsAn XMLElements collection object is an OLE Automation object whose members represent all XML elements with a certain tag name.

Properties

MemberDescription
TXTextControl.XMLEditModeSpecifies whether TXTextControl operates in an edit mode that validates the XML document according to the document's DTD.
TXTextControl.XMLElementsReturns a collection of all XML elements with the same tag name.

Events

MemberDescription
TXTextControl.XMLInvalidOccurs when a loaded XML document cannot be validated with the document type definition (DTD) referenced in the document.
TXTextControl.XMLNotWellFormedOccurs when a loaded XML document is not well-formed.