Method XmlNode():setVersion() Foundation

Sets the XML standard version the XML document conforms to.

Syntax
:setVersion( <cVersion> ) --> self
Parameters
<cVersion>
A character string specifying the version of the XML standard to be set in the XML document declaration.
Return

:setVersion() returns the object executing the method.

Description

The method :setVersion() is used to specify the version of the XML standard the XML document conforms to. The version is defined in the XML document declaration section of the XML document.

:setVersion() can be called on any node of an XML document. The method then locates the document node for changing the version in the XML document definition. If the node is not associated with any XML document, that is, if the node is a part of an XML graph without a document node, :setVersion() raises a runtime error.

The XmlSimpleParser() supports XML version 1.0 only.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.