Open topic with navigation
WTSupported in traditional Synergy on Windows
WNSupported in Synergy .NET on Windows
USupported on UNIX
VSupported on OpenVMS
status = %XML_DOC_REMOVEDECLARATION(document, declaration_name)
One of the following values:
XML_SUCCESS = The declaration is removed successfully.
XML_FAIL = The declaration is not removed successfully.
The XML document instance from which to remove a declaration. (XML_DOC_TYPE)
The name of the declaration to remove. (a)
This function is defined as ^VAL.
You cannot remove the xml declaration of the form <?xml version='version'...?>.
The following example removes the declaration named xml‑stylesheet from the document (in other words, the one that starts with “<?xml‑stylesheet...?>”).
status = %xml_doc_removedeclaration(docid, "xml-stylesheet")