Altova XMLSpy 2023 Professional Edition

Properties

Kind

Name

TextValue

 

HasChildren

MayHaveChildren

Parent

 

Methods

GetFirstChild

GetNextChild

GetCurrentChild

 

InsertChild

InsertChildAfter

InsertChildBefore

AppendChild

 

EraseAllChildren

EraseChild

EraseCurrentChild

 

IsSameNode

 

CountChildren

CountChildrenKind

 

GetChild

GetChildAttribute

GetChildElement

GetChildKind

GetNamespacePrefixForURI

 

HasChildrenKind

SetTextValueXMLEncoded

 

 

Description

The XMLData interface provides direct XML-level access to a document. You can read and directly modify the XML representation of the document. However, please, note the following restrictions:

 

The XMLData representation is only valid when the document is shown in grid view or authentic view.

When in authentic view, additional XMLData elements are automatically inserted as parents of each visible document element. Typically this is an XMLData of kind spyXMLDataElement with the Name property set to 'Text'.

When you use the XMLData interface while in a different view mode you will not receive errors, but changes are not reflected to the view and might get lost during the next view switch.

 

Note also:

 

Setting a new text value for an XML element is possible if the element does not have non-text children. A text value can be set even if the element has attributes.

When setting a new text value for an XML element which has more than one text child, the latter will be deleted and replaced by one new text child.

When reading the text value of an XML element which has more than one text child, only the value of the first text child will be returned.

 

Objects of this class represent the different atomic parts of an XML document. See the enumeration type SPYXMLDataKind for the available part types. Each part knows its children, thus forming a XMLData tree with Document.RootElement at its top. To get the top element of the document content - ignoring the XML header - use Document.DataRoot. For an examples on how to traverse the XMLData tree, see GetNextChild.

 

© 2017-2023 Altova GmbH