4.2.1

Table Of Contents
Method Returns Description
hasAttribute(String):boolean Boolean
Returns true if the attribute exists.
insertBefore(XMLNode,XMLNode):O
bject
Object
Inserts a newChild node before the
existing child node refChild. If
refChild is null, the newChild node is
inserted at the end of list of child nodes.
If the newChild node exists in the tree,
it is first removed.
normalize():Object Object
Normalizes the node.
removeAttribute(String):Object Object
Removes an attribute with a given
name.
removeChild(XMLNode):Object Object
Removes the child node indicated by
oldChild from the list of child nodes
and returns it.
replaceChild(XMLNode,XMLNode):O
bject
Object
Replaces the oldChild node with a
newChild node in the list of child nodes
and returns the oldChild node. If the
newChild node exists in the tree, it is
first removed.
setAttribute(String,String):Obj
ect
Object
Sets a new attribute.
XMLManager Class
The XMLManager class is the main class for creation of XML document parsers.
The XMLManager class defines the following methods.
Method Returns Description
fromString(String):XMLDocument XMLDocument
Gets a document for a given string
content.
getDocumentContent(XMLDocument)
:string
String
Gets a document as a string.
loadDocument(String,boolean):XM
LDocument
XMLDocument
Gets a document for a given path using
the default character encoding.
loadDocumentWithEncoding
(String,String,boolean):XMLDocu
ment
XMLDocument
Gets a document for a given path using
the specified character encoding.
newDocument():XMLDocument XMLDocument
Creates an empty XML document.
saveDocument(XMLDocument,String
,String,String):Object
Object
Saves a document to a given path using
the default character encoding.
saveDocumentWithEncoding
(XMLDocument,String,String,Stri
ng,String):Object
Object
Saves a document to a given path using
the specified character encoding.
validateDocument(XMLDocument,St
ring,String):Object
Object
Validates a document without saving it.
XMLNamedNodeMap Class
The XMLNamedNodeMap class is the main class for node maps, usually used for attributes of an element.
The XMLNamedNodeMap class defines the following attribute.
Chapter 6 Using the XML Plug-In
VMware, Inc. 53