public interface IDOMFactory
SAXBuilder| Modifier and Type | Method and Description |
|---|---|
Attribute |
newAttribute(Namespace ns,
String lname,
String value)
Creates an Attribute with namespace.
|
Attribute |
newAttribute(String lname,
String value)
Creates an Attribute without namespace.
|
CData |
newCData(String text)
Creates a CData.
|
Comment |
newComment(String text)
Creates a Comment.
|
DocType |
newDocType(String elementName,
String publicId,
String systemId)
Creates a DocType.
|
Document |
newDocument(Element rootElement,
DocType docType)
Creates a Document.
|
Element |
newElement(Namespace ns,
String lname)
Creates an Element with a namespace.
|
Element |
newElement(String lname)
Creates an Element without namespace.
|
EntityReference |
newEntityRef(String name)
Creates an EntityReference.
|
ProcessingInstruction |
newProcessingInstruction(String target,
String data)
Creates a processing instruction.
|
Text |
newText(String text)
Creates a Text.
|
Attribute newAttribute(String lname, String value)
Attribute newAttribute(Namespace ns, String lname, String value)
DocType newDocType(String elementName, String publicId, String systemId)
elementName - the root element's namepublicId - the public Id; null for emptysystemId - the system Id; null for emptyDocument newDocument(Element rootElement, DocType docType)
docType - the document type; null for not availableProcessingInstruction newProcessingInstruction(String target, String data)
data - the raw data; null for emptyEntityReference newEntityRef(String name)
name - the entity reference's nameCopyright © 2018. All rights reserved.