Altova XMLSpy 2025 Professional Edition 

Method: IsWellFormed (pData as XMLData, bWithChildren as Boolean, strError as Variant, nErrorPos as Variant, pBadXMLData as Variant) as Boolean

 

Return Value

True if the document is well formed.

 

Description

IsWellFormed checks the document for well-formedness starting at the element pData.

 

If the document is not well formed, strError contains an error message, nErrorPos the position in the file and pBadXMLData holds a reference to the element which breaks the well-formedness. These out-parameters are defined as VARIANTs to support scripting languages like VBScript.

 

Errors

1400

The object is no longer valid.

1407

Invalid parameter or invalid address for the return parameter was specified.

 

Example

 

See IsValid.

© 2018-2024 Altova GmbH