Package org.xmlpull.v1.builder
Interface XmlDocument
-
- All Superinterfaces:
Cloneable,XmlContainer
- All Known Implementing Classes:
XmlDocumentAdapter,XmlDocumentImpl
public interface XmlDocument extends XmlContainer, Cloneable
Represents Document Information Item .- Version:
- $Revision: 1.6 $
- Author:
- Aleksander Slominski
-
-
Method Summary
-
-
-
Method Detail
-
clone
Object clone() throws CloneNotSupportedException
- Throws:
CloneNotSupportedException
-
children
Iterable children()
An ordered list of child information items, in document order. The list contains exactly one element information item. The list also contains one processing instruction information item for each processing instruction outside the document element, and one comment information item for each comment outside the document element. Processing instructions and comments within the DTD are excluded. If there is a document type declaration, the list also contains a document type declaration information item.
-
getDocumentElement
XmlElement getDocumentElement()
-
requiredElement
XmlElement requiredElement(XmlNamespace n, String name)
-
element
XmlElement element(XmlNamespace n, String name)
-
element
XmlElement element(XmlNamespace n, String name, boolean create)
-
notations
Iterable notations()
An unordered set of notation information items, one for each notation declared in the DTD.
-
unparsedEntities
Iterable unparsedEntities()
An unordered set of unparsed entity information items, one for each unparsed entity declared in the DTD.
-
getBaseUri
String getBaseUri()
-
getCharacterEncodingScheme
String getCharacterEncodingScheme()
-
setCharacterEncodingScheme
void setCharacterEncodingScheme(String characterEncoding)
-
isStandalone
Boolean isStandalone()
-
getVersion
String getVersion()
-
isAllDeclarationsProcessed
boolean isAllDeclarationsProcessed()
-
setDocumentElement
void setDocumentElement(XmlElement rootElement)
-
addChild
void addChild(Object child)
-
insertChild
void insertChild(int pos, Object child)
-
removeAllChildren
void removeAllChildren()
-
newComment
XmlComment newComment(String content)
-
addComment
XmlComment addComment(String content)
-
newDoctype
XmlDoctype newDoctype(String systemIdentifier, String publicIdentifier)
-
addDoctype
XmlDoctype addDoctype(String systemIdentifier, String publicIdentifier)
-
addDocumentElement
XmlElement addDocumentElement(String name)
-
addDocumentElement
XmlElement addDocumentElement(XmlNamespace namespace, String name)
-
newProcessingInstruction
XmlProcessingInstruction newProcessingInstruction(String target, String content)
-
addProcessingInstruction
XmlProcessingInstruction addProcessingInstruction(String target, String content)
-
removeAllUnparsedEntities
void removeAllUnparsedEntities()
-
addNotation
XmlNotation addNotation(String name, String systemIdentifier, String publicIdentifier, String declarationBaseUri)
-
removeAllNotations
void removeAllNotations()
-
-