XmlDocument (open)
Syntax
LOADLIB "wh::xml/dom.whlib";
OBJECTTYPE XmlDocument
Properties
- PROPERTY appliedstyles (inherited from XmlNode)
- PROPERTY attributes (inherited from XmlNode)
- PROPERTY ATTRIBUTE_NODE (inherited from XmlNode)
- PROPERTY CDATA_SECTION_NODE (inherited from XmlNode)
- PROPERTY childElementCount (inherited from XmlNode)
- PROPERTY childnodes (inherited from XmlNode)
- PROPERTY COMMENT_NODE (inherited from XmlNode)
- PROPERTY documentelement
- PROPERTY DOCUMENT_FRAGMENT_NODE (inherited from XmlNode)
- PROPERTY DOCUMENT_NODE (inherited from XmlNode)
- PROPERTY DOCUMENT_TYPE_NODE (inherited from XmlNode)
- PROPERTY ELEMENT_NODE (inherited from XmlNode)
- PROPERTY ENTITY_NODE (inherited from XmlNode)
- PROPERTY ENTITY_REFERENCE_NODE (inherited from XmlNode)
- PROPERTY firstchild (inherited from XmlNode)
- PROPERTY firstElementChild (inherited from XmlNode)
- PROPERTY innerhtml (inherited from XmlNode)
- PROPERTY innerxml (inherited from XmlNode)
- PROPERTY lastchild (inherited from XmlNode)
- PROPERTY lastElementChild (inherited from XmlNode)
- PROPERTY linenum (inherited from XmlNode)
- PROPERTY localname (inherited from XmlNode)
- PROPERTY namespaceuri (inherited from XmlNode)
- PROPERTY nextElementSibling (inherited from XmlNode)
- PROPERTY nextsibling (inherited from XmlNode)
- PROPERTY nodeid (inherited from XmlNode)
- PROPERTY nodename (inherited from XmlNode)
- PROPERTY nodetype (inherited from XmlNode)
- PROPERTY nodevalue (inherited from XmlNode)
- PROPERTY NOTATION_NODE (inherited from XmlNode)
- PROPERTY outerhtml (inherited from XmlNode)
- PROPERTY outerxml (inherited from XmlNode)
- PROPERTY ownerdocument (inherited from XmlNode)
- PROPERTY parentnode (inherited from XmlNode)
- PROPERTY prefix (inherited from XmlNode)
- PROPERTY previousElementSibling (inherited from XmlNode)
- PROPERTY previoussibling (inherited from XmlNode)
- PROPERTY PROCESSING_INSTRUCTION_NODE (inherited from XmlNode)
- PROPERTY readonly
- PROPERTY textcontent (inherited from XmlNode)
Concatenate all text and cdata children from this element and its children
- PROPERTY TEXT_NODE (inherited from XmlNode)
- PROPERTY userdata (inherited from XmlNode)
Functions
- OBJECT FUNCTION AppendChild(OBJECT newchild) (inherited from XmlNode)
- MACRO AppendText(STRING text, STRING injectwhere) (inherited from XmlNode)
http://mootools.net/core/docs/1.5.1/Element/Element#Element:appendText
- OBJECT FUNCTION CloneNode(BOOLEAN deep)
- OBJECT FUNCTION CreateAttribute(STRING name)
- OBJECT FUNCTION CreateAttributeNS(STRING namespaceuri, STRING qualifiedname)
- OBJECT FUNCTION CreateCDATASection(STRING data)
- OBJECT FUNCTION CreateComment(STRING data)
- OBJECT FUNCTION CreateDocumentFragment()
- OBJECT FUNCTION CreateElement(STRING tagname)
- OBJECT FUNCTION CreateElementNS(STRING namespaceuri, STRING qualifiedname)
- OBJECT FUNCTION CreateProcessingInstruction(STRING target, STRING data)
- OBJECT FUNCTION CreateTextNode(STRING data)
- OBJECT FUNCTION CreateXPathQuery()
- OBJECT FUNCTION Dispose() (inherited from XmlNode)
- OBJECT FUNCTION Empty() (inherited from XmlNode)
Remove all our children
- OBJECT FUNCTION Evaluate(STRING expression, OBJECT contextnode, OBJECT resolver, INTEGER type, OBJECT result)
Evaluate an XPATH expression
- BLOB FUNCTION GetCanonicalizedDocument(STRING mode, RECORD options)
Canonicalize document
- BLOB FUNCTION GetDocumentBlob(BOOLEAN formatted, STRING encoding)
- OBJECT FUNCTION GetElement(STRING selectors) (inherited from XmlNode)
- OBJECT FUNCTION GetElementById(STRING elementid)
- OBJECT ARRAY FUNCTION GetElements(STRING selectors) (inherited from XmlNode)
- OBJECT FUNCTION GetElementsByTagName(STRING tagname)
- OBJECT FUNCTION GetElementsByTagNameNS(STRING namespaceuri, STRING localname)
- OBJECT FUNCTION GetEvaluatedElement(OBJECT resolver, STRING expression)
High level XPATH wrapper, directly gives you the result node, for any expression evaluating only to nodes
- OBJECT ARRAY FUNCTION GetEvaluatedElements(OBJECT resolver, STRING expression)
High level XPATH wrapper, directly gives you the nodes, for any expression evaluating only to nodes
- RECORD ARRAY FUNCTION GetParseErrors()
- STRING FUNCTION GetStyle(STRING style) (inherited from XmlNode)
- RECORD ARRAY FUNCTION GetStyles() (inherited from XmlNode)
- RECORD ARRAY FUNCTION GetVisibleNamespaces() (inherited from XmlNode)
Get a list of visible namespaces
- BOOLEAN FUNCTION HasAttributes() (inherited from XmlNode)
- BOOLEAN FUNCTION HasChildNodes() (inherited from XmlNode)
- OBJECT FUNCTION ImportNode(OBJECT node, BOOLEAN deep)
- OBJECT FUNCTION Inject(OBJECT el, STRING injectwhere) (inherited from XmlNode)
Inject this node
- OBJECT FUNCTION InsertBefore(OBJECT newchild, OBJECT refchild) (inherited from XmlNode)
- BOOLEAN FUNCTION IsSameNode(OBJECT other) (inherited from XmlNode)
- RECORD ARRAY FUNCTION ListAttributes() (inherited from XmlNode)
List attributes on a node
- OBJECT ARRAY FUNCTION ListElements(STRING namespaceuri, STRING localname)
List all elements in the document matching namespace and name
- STRING FUNCTION LookupNamespaceURI(STRING prefix) (inherited from XmlNode)
- RECORD FUNCTION LookupQualifiedName(STRING qname) (inherited from XmlNode)
Resolve a full name from a qualified name
- MACRO Normalize() (inherited from XmlNode)
- MACRO NormalizeDocument()
- OBJECT FUNCTION QuerySelector(STRING selectors) (inherited from XmlNode)
- OBJECT FUNCTION QuerySelectorAll(STRING selectors) (inherited from XmlNode)
- MACRO Remove() (inherited from XmlNode)
Remove the current node from its parent
- OBJECT FUNCTION RemoveChild(OBJECT oldchild) (inherited from XmlNode)
- OBJECT FUNCTION ReplaceChild(OBJECT newchild, OBJECT oldchild) (inherited from XmlNode)