com.sunwesttek.xml
Interface DOMElement

All Known Implementing Classes:
SimpleDOMElement

public interface DOMElement

DOMElement is a highly-simplified XML DOM element abstraction.


Method Summary
 java.lang.String getAttribute(java.lang.String name)
          Get the value of the attribute with specified name.
 java.util.List getChildElements()
          Get all the child elements of the current element.
 java.util.List getChildElementsByTagName(java.lang.String tagName)
          Get all the child elements of the current element with specified tag name.
 java.lang.String getTagName()
          Get the tag name of the element.
 java.lang.String getText()
          Get the text of the element.
 

Method Detail

getTagName

public java.lang.String getTagName()
Get the tag name of the element.

Returns:
Tag name

getText

public java.lang.String getText()
Get the text of the element.

Returns:
Text of the element

getAttribute

public java.lang.String getAttribute(java.lang.String name)
Get the value of the attribute with specified name.

Parameters:
name - Attribute name
Returns:
Attribute value or null if no such attribute is found

getChildElements

public java.util.List getChildElements()
Get all the child elements of the current element.

Returns:
Child elements of the current element.

getChildElementsByTagName

public java.util.List getChildElementsByTagName(java.lang.String tagName)
Get all the child elements of the current element with specified tag name.

Returns:
Child elements of the current element with specified tag name


Copyright (c) 2002 Sunwest Technologies. http://www.SunwestTek.com/