Method XmlNode():getStandalone() Foundation

Determines whether the XML document is declared as standalone.

:getStandalone() --> lIsStandalone | NIL

A logical value which corresponds to the standalone marker in the XML document declaration. If the XML document is marked as standalone, the method returns .T. (true). Otherwise, :getStandalone() returns .F. (false). If the node is not associated with an XML document, the method returns NIL.


The method :getStandalone() can be used to determine whether an XML document was marked as standalone in the document declaration. The standalone marker is an optional declaration instructing the XML parser on how to handle external markup declarations in a DTD. In standalone XML documents, such external markup declarations are ignored.

:getStandalone() can be called on any node of an XML document. The method then locates the document node for getting the standalone marker in the XML document definition. If the current node is not associated with any XML document, that is, if the current node is a part of an XML graph without a document node, :getStandalone() returns NIL.

The XmlSimpleParser() is a non-validating parser and therefore does not validate the XML document.


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.