LiJinHuan
2024-01-05 462188a2c982b0a8750dfe01692dfd898216bb0c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
global class XmlNode {
    /**
     * Creates a child element node. name can not be null. if namespace is not null and prefix is null, namespace is set as default ns
     */
    global dom.XmlNode addChildElement(String name, String namespace, String prefix) { }
    /**
     * Creates a child comment node. text can not be null.
     */
    global dom.XmlNode addCommentNode(String text) { }
    /**
     * Creates a child text node. text can not be null.
     */
    global dom.XmlNode addTextNode(String text) { }
    /**
     * get raw attribute value. eg: 'foo:bar' 
     */
    global String getAttribute(String key, String keyNamespace) { }
    /**
     * get attribute count.
     */
    global Integer getAttributeCount() { }
    /**
     * get attribute key at the given index.
     */
    global String getAttributeKeyAt(Integer index) { }
    /**
     * get attribute key namespace at the given index.
     */
    global String getAttributeKeyNsAt(Integer index) { }
    /**
     * get attribute value.
     */
    global String getAttributeValue(String key, String keyNamespace) { }
    /**
     * get attribute namespace.
     */
    global String getAttributeValueNs(String key, String keyNamespace) { }
    /**
     * Returns the child with specified name and namespace
     */
    global dom.XmlNode getChildElement(String name, String namespace) { }
    /**
     * Returns the child ELEMENTS of this node
     */
    global List<dom.XmlNode> getChildElements() { }
    /**
     * Returns the child nodes of this node
     */
    global List<dom.XmlNode> getChildren() { }
    /**
     * Returns the name of the element
     */
    global String getName() { }
    /**
     * Returns the namespace of the element
     */
    global String getNamespace() { }
    /**
     * Returns the namespace of the element
     */
    global String getNamespaceFor(String prefix) { }
    /**
     * Returns enumeration code that indicates the type of the XmlNode.
     */
    global Dom.XmlNodeType getNodeType() { }
    /**
     * Returns the parent of this element
     */
    global dom.XmlNode getParent() { }
    /**
     * Returns the prefix for of the given namespace. Input namespace should not be null.
     */
    global String getPrefixFor(String namespace) { }
    /**
     * returns the text.
     */
    global String getText() { }
    /**
     * Inserts an element before the given reference element 
     */
    global dom.XmlNode insertBefore(Object newChild, Object refChild) { }
    /**
     * remove attribute with the given key and namespace.
     */
    global Boolean removeAttribute(String key, String keyNamespace) { }
    /**
     * removes the child node
     */
    global Boolean removeChild(Object child) { }
    /**
     * Sets attribute on the element.
     */
    global void setAttribute(String key, String value) { }
    /**
     * Sets attribute on the element.
     */
    global void setAttributeNs(String key, String value, String keyNamespace, String valueNamespace) { }
    /**
     * Returns the namespace of the element
     */
    global void setNamespace(String prefix, String namespace) { }
 
}