8
source - XML code, object to be crated from
10
* All subnodes is also XML objects!!!!
15
xml.parseXML(source) Parses XML text specified in source parameter
16
and populates the specified XML object with the
19
xml.load(url) Loads document from specified URL and replaces!
20
contents of the specified XML object with the
21
downloaded XML data. Load process is
22
asynchronous; it does not finish immediately
23
after load method is executed. When load()
24
called 'loaded' property set to false, then
25
downloading finished, the loaded property is set
26
to true and the onLoad method is invoked.
27
xml.send(url[,window]) Encodes specified XML object into a XML
28
document and sends it to specified URL using
29
POST method. ( window - the browser window to
30
display data returned by the server:
31
_self - specifies current frame
32
_blank - specifies new window
33
_parent- specifies parent of current frame
34
_top - specifies top level frame in current
36
xml.sendAndLoad(url,targetXMLobject) Encodes specified XML object,
37
send it to specified url, using POST method,
38
and loads server response in 'targetXMLobject'
40
xml.onLoad=func; Specifies function called then load completed:
41
func(success) - 'success' is true if object
42
recieved successfully.
46
obj.loaded Specifies finished or not loading process
47
obj.status Indicating whether an XML document was successfully
48
parsed into an XML object.
50
-2 - CDATA section was not properly terminated
51
-3 - XML declaration was not properly terminated
52
-4 - DOCTYPE declaration was not properly terminated
53
-5 - Comment was not properly termninated
54
-6 - XML element was malformed
56
-8 - An attribute value wan not properly terminated
57
-9 - A start-tag was not matched with end-tag
58
-10 - end-tag was encountered without matching start-tag
59
obj.nodeType 1 - XML element
61
obj.nodeName nodeName is the name of the tag representing
62
the node in the XML file. For text node - null.
63
obj.nodeValue For text node returns text of the node. for
64
XML element returns null.
66
obj.attributes Associative array containing all attributes
67
(Example: obj.attributes.href - href attr.)
68
obj.childNodes Array containing all child nodes (Read Only)
69
obj.firstChild Reference the first child in the parent node's
70
children list. null - if object haven't childs,
71
undefined - if a text node (Read Only)
72
obj.lastChild Reference to the kast child in the parent node's
73
children list. (Read Only)
74
obj.nextSibling References next sibling in the parent children
75
nodes list. Returns null if the node does not
76
have a next sibling node. (Read Only)
77
obj.previousSibling Reference previous sibling in the parent
78
children nodes list. (Read Only)
79
obj.parentNode References parent node (Read Only)
81
obj.XMLdocTypeDecl String containing XML DOCTYPE declaration. Or
82
undefined if not specified.
83
obj.xmlDecl String information about document's XML
84
declaration (<?xml version...>)
89
obj.appendChild(node) Appends the specified child node to the XML
90
object's child list. The appended child node
91
is placed in the tree structure once removed
92
from its existing parent node, if any.
93
obj.cloneNode(deep) Constructs and returns a new XML node
94
indentical to specified one. If 'deep' is
95
true all child nodes also copied.
96
obj.createElement(name) Creates new XML element with specified name,
97
initialy have no parent and no children
98
obj.createTextNode(text) Creates a new XML text node with the specified
99
text. Initialy have no parent.
100
obj.hasChildNodes() Returns true if object have child nodes
101
obj.insertBefore(childNode,beforeNode) Inserts new node in objects
102
child node list before the specified node.
103
Node removed from its existing parent node, if
105
obj.removeNode() Remove specified node from its parent
106
obj.toString() Returns XML string representation of given
112
Something like SOAP protocol
b'\\ No newline at end of file'