Method XmlNode():getVersion() Foundation

Returns the XML standard version the XML document conforms to.

:getversion() --> cVersion | NIL

A character string with the version of the XML standard that the XML document conforms to. If no version is specified, the method returns NIL.


The method :getVersion() can be used to determine the version of the XML standard the XML document conforms to. The version is defined in the XML document declaration of the XML document.

:getVersion() can be called on any node of an XML document. The method then locates the document node for getting 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, :getVersion() returns NIL.

The XmlSimpleParser() supports XML version 1.0 only.


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.