Microsoft SDK for Java

ElementImpl Class Methods

The ElementImpl class contains the following methods:

addChild adds a child to this element.
getAttribute returns the value of the attribute; returns null if the attribute is not found.
getAttributes retrieves an enumeration for the element attributes.
getChild retrieves the child element by index.
getChildren returns an element collection of the children of this element.
getElements returns an enumeration of the children of this element.
getParent retrieves the parent of this element.
getTagName retrieves the name of the tag as a string.
getText returns the non—marked-up text contained by this element.
getType retrieves the type of the element.
isAttributeQualified determines if the attribute is qualified.
numAttributes retrieves the number of attributes.
numElements retrieves the number of child elements.
qualifyName creates a qualified Name object from the given string.
removeAttribute deletes an attribute from an element.
removeChild removes a child element from the tree.
save saves the element in XML format.
saveAttributes saves the element attributes in XML format.
setAttribute sets the attribute of this element.
setParent sets the parent of this element.
setText sets the text for this element.
toSchema returns the XML-DATA specification for the DTD element.
toString retrieves the string representation of this element.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.