Altova StyleVision 2024 Enterprise 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.

 

© 2017-2023 Altova GmbH