|
Devsphere.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
SDXOldBuilder
needs a factory for DOM nodes that implements
this interface.
SDXOldBuilder
,
DefaultSDXOldHelper
Method Summary | |
org.w3c.dom.Element |
createElement(java.lang.String name,
org.xml.sax.AttributeList attributes,
org.w3c.dom.Element parent)
Creates a DOM Element node and appends it as a child
to the given parent element. |
org.w3c.dom.ProcessingInstruction |
createProcessingInstruction(java.lang.String target,
java.lang.String data,
org.w3c.dom.Element parent)
Creates a DOM ProcessingInstruction node and appends it
as a child to the given parent element. |
org.w3c.dom.Text |
createTextNode(java.lang.String data,
org.w3c.dom.Element parent)
Creates a DOM Text node and appends it as a child
to the given parent element or just appends the data
to the last child of parent if that last child is
a Text node. |
Method Detail |
public org.w3c.dom.Element createElement(java.lang.String name, org.xml.sax.AttributeList attributes, org.w3c.dom.Element parent)
Element
node and appends it as a child
to the given parent
element. The attributes stored by
the SAX object are retrieved and set to the created DOM object.
name
- The name for the new elementattributes
- The attributes for the new elementparent
- The parent for the new element or
null
if this is a root element
Element
public org.w3c.dom.Text createTextNode(java.lang.String data, org.w3c.dom.Element parent)
Text
node and appends it as a child
to the given parent
element or just appends the data
to the last child of parent
if that last child is
a Text
node. In other words, this method avoids the
creation of adjacent Text
nodes and creates
a Text
node only when this is necessary.
data
- The character data for the text nodeparent
- The parent for the text node
Text
nodepublic org.w3c.dom.ProcessingInstruction createProcessingInstruction(java.lang.String target, java.lang.String data, org.w3c.dom.Element parent)
ProcessingInstruction
node and appends it
as a child to the given parent
element.
target
- The target for the new processing instructiondata
- The data for the new processing instructionparent
- The parent for the new processing instruction
ProcessingInstruction
|
Devsphere.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |