import { XMLNode } from "./XMLNode"; /** * The XMLDocument class represents the legacy XML object * that was present in ActionScript 2.0. It was renamed in ActionScript 3.0 * to XMLDocument to avoid name conflicts with the new * XML class in ActionScript 3.0. In ActionScript 3.0, * it is recommended that you use the new * XML class and related classes, * which support E4X (ECMAScript for XML). * *

The XMLDocument class, as well as XMLNode and XMLNodeType, are present for backward * compatibility. The functionality for loading XML documents can now be found in the * URLLoader class.

*/ export declare class XMLDocumentAway extends XMLNode { axCallPublicProperty(value1: any, value2: any): any; axGetPublicProperty(value: any): any; axSetPublicProperty(value: any, value2: any): any; /** * Creates a new XMLDocument object. You must use the constructor to create an XMLDocument object before you call any of the methods of the XMLDocument class. * Note: Use the createElement() and createTextNode() methods to add elements and text nodes to an XML document tree. * @param source The XML text parsed to create the new XMLDocument object. */ constructor(source?: string); /** * Specifies information about the XML document's DOCTYPE declaration. * After the XML text has been parsed into an XMLDocument object, the * XMLDocument.docTypeDecl property of the XMLDocument object is set to the * text of the XML document's DOCTYPE declaration * (for example, ). * This property is set using a string representation of the DOCTYPE declaration, * not an XMLNode object. * The legacy ActionScript XML parser is not a validating parser. The DOCTYPE * declaration is read by the parser and stored in the XMLDocument.docTypeDecl property, * but no DTD validation is performed.If no DOCTYPE declaration was encountered during a parse operation, * the XMLDocument.docTypeDecl property is set to null. * The XML.toString() method outputs the contents of XML.docTypeDecl * immediately after the XML declaration stored in XML.xmlDecl, and before any other * text in the XML object. If XMLDocument.docTypeDecl is null, no * DOCTYPE declaration is output. */ docTypeDecl: any; /** * An Object containing the nodes of the XML that have an id attribute assigned. * The names of the properties of the object (each containing a node) match the values of the * id attributes. * */ idMap: any; /** * When set to true, text nodes that contain only white space are discarded during the parsing process. Text nodes with leading or trailing white space are unaffected. The default setting is false. */ ignoreWhite: boolean; /** * A string that specifies information about a document's XML declaration. * After the XML document is parsed into an XMLDocument object, this property is set * to the text of the document's XML declaration. This property is set using a string * representation of the XML declaration, not an XMLNode object. If no XML declaration * is encountered during a parse operation, the property is set to null. * The XMLDocument.toString() method outputs the contents of the * XML.xmlDecl property before any other text in the XML object. * If the XML.xmlDecl property contains null, * no XML declaration is output. * */ xmlDecl: any; /** * Creates a new XMLNode object with the name specified in the parameter. * The new node initially has no parent, no children, and no siblings. * The method returns a reference to the newly created XMLNode object * that represents the element. This method and the XMLDocument.createTextNode() * method are the constructor methods for creating nodes for an XMLDocument object. * @param name The tag name of the XMLDocument element being created. * @return An XMLNode object. * */ createElement(name: string): XMLNode; /** * Creates a new XML text node with the specified text. The new node initially has no parent, and text nodes cannot have children or siblings. This method returns a reference to the XMLDocument object that represents the new text node. This method and the XMLDocument.createElement() method are the constructor methods for creating nodes for an XMLDocument object. * @param text The text used to create the new text node. * @return An XMLNode object. */ createTextNode(text: string): XMLNode; /** * Parses the XML text specified in the value parameter * and populates the specified XMLDocument object with the resulting XML tree. Any existing trees in the XMLDocument object are discarded. * @param source The XML text to be parsed and passed to the specified XMLDocument object. */ parseXML(source: string): void; /** * Returns a string representation of the XML object. * @return A string representation of the XML object. */ toString(): string; }