org.xmlpull.v1.builder
Interface XmlDoctype

All Superinterfaces:
XmlContainer

public interface XmlDoctype
extends XmlContainer

Represents Document Type Declaration Information Item. If the XML document has a document type declaration, then the information set contains a single document type declaration information item. Note that entities and notations are provided as properties of the document information item, not the document type declaration information item.


Method Summary
 XmlProcessingInstruction addProcessingInstruction(java.lang.String target, java.lang.String content)
          Add to list of children (only processing instruction information items are allowed).
 java.util.Iterator children()
          An ordered list of processing instruction information items representing processing instructions appearing in the DTD, in the original document order.
 XmlDocument getParent()
          The document information item.
 java.lang.String getPublicIdentifier()
          The public identifier of the external subset, normalized as described in 4.2.2 External Entities [XML].
 java.lang.String getSystemIdentifier()
          The system identifier of the external subset, as it appears in the DOCTYPE declaration, without any additional URI escaping applied by the processor.
 void removeAllProcessingInstructions()
          Remove all children.
 

Method Detail

getSystemIdentifier

java.lang.String getSystemIdentifier()
The system identifier of the external subset, as it appears in the DOCTYPE declaration, without any additional URI escaping applied by the processor. If there is no external subset this property has no value.


getPublicIdentifier

java.lang.String getPublicIdentifier()
The public identifier of the external subset, normalized as described in 4.2.2 External Entities [XML]. If there is no external subset or if it has no public identifier, this property has no value.


children

java.util.Iterator children()
An ordered list of processing instruction information items representing processing instructions appearing in the DTD, in the original document order. Items from the internal DTD subset appear before those in the external subset.


getParent

XmlDocument getParent()
The document information item.


addProcessingInstruction

XmlProcessingInstruction addProcessingInstruction(java.lang.String target,
                                                  java.lang.String content)
Add to list of children (only processing instruction information items are allowed).


removeAllProcessingInstructions

void removeAllProcessingInstructions()
Remove all children.