|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The ElementLS
interface provides a convenient mechanism by
which the children of an element can be serialized to a string, or
replaced by the result of parsing a provided string.
If the ElementLS
interface is supported, the expectation
is that an instance of the ElementLS
interface can be
obtained by using binding-specific casting methods on an instance of the
Element
interface, or by using the method
Node.getFeature
with parameter values
"ElementLS"
and "3.0"
(respectively) on an
Element
, if the Element
supports the feature
"Core"
version "3.0"
defined in [DOM Level 3 Core]
.
This interface is optional. If supported, implementations must support
version "3.0"
of the feature "ElementLS"
.
See also the Document Object Model (DOM) Level 3 Load and Save Specification.
Method Summary | |
java.lang.String |
getMarkupContent()
The content of the element in serialized form. |
void |
setMarkupContent(java.lang.String markupContent)
The content of the element in serialized form. |
Method Detail |
public java.lang.String getMarkupContent()
DOMSerializer.writeToString()
on all children in
document order and appending the result of the individual results to
a single string that is then returned as the value of this attribute.
DOMParser.parseWithContext()
passing in the
provided string (through the input source argument), the
Element
, and the action
ACTION_REPLACE_CHILDREN
. If an error occurs while
parsing the provided string, the Element
's owner
document's error handler will be called, and the Element
is left with no children.
DOMConfiguration
object have their
default values.public void setMarkupContent(java.lang.String markupContent)
DOMSerializer.writeToString()
on all children in
document order and appending the result of the individual results to
a single string that is then returned as the value of this attribute.
DOMParser.parseWithContext()
passing in the
provided string (through the input source argument), the
Element
, and the action
ACTION_REPLACE_CHILDREN
. If an error occurs while
parsing the provided string, the Element
's owner
document's error handler will be called, and the Element
is left with no children.
DOMConfiguration
object have their
default values.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |