O'Reilly logo

Special Edition Using Java™ 2 Enterprise Edition by Mark Wutka

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Interfaces

Attr

The Attr interface represents an attribute from an XML tag.

getName
public String getName()

Returns the name of the attribute.

getOwnerElement
public Element getOwnerElement()

Returns the element that this attribute belongs to, or null if this attribute doesn't belong to an element at the moment.

getSpecified
public boolean getSpecified()

Returns true if the value of this attribute was explicitly specified in the original document as opposed to being set as a default value.

getValue
public String getValue() throws DOMException

Returns the value of this attribute.

setValue
public void setValue(String value) throws DOMException

Sets the value of this attribute.

CDATASection

The CDATASection interface is a subclass of the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required