|
IMSEVimse 1.0 Draft |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--se.kth.cid.xml.XmlDocument
This class represents an XML document.
Constructor Summary | |
XmlDocument()
Constructs an XmlDocument. |
Method Summary | |
String |
getProcessingInstruction(String piName)
|
String[] |
getProcessingInstructions()
|
String |
getPublicDTDId()
Returns the public DTD ID. |
XmlElement |
getRoot()
Gets the document root. |
String |
getSystemDTDId()
Returns the system DTD ID. |
void |
setProcessingInstruction(String piName,
String piData)
Sets a processing instruction in the XML document. |
void |
setPublicDTDId(String npublicId)
Sets the public DTD ID. |
void |
setRoot(XmlElement root)
Sets the document root. |
void |
setSystemDTDId(String nsystemId)
Sets the system DTD ID. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XmlDocument()
Method Detail |
public void setRoot(XmlElement root)
root
- the document root.public XmlElement getRoot()
public void setPublicDTDId(String npublicId) throws XmlDocumentException
npublicId
- the new public ID.XmlDocumentException
- if npublicId is non-null but the
system DTD ID is null.public String getPublicDTDId()
public void setSystemDTDId(String nsystemId) throws XmlDocumentException
nsystemId
- the new system ID.XmlDocumentException
- if nsystemId is null but the
public DTD ID is non-null.public String getSystemDTDId()
public void setProcessingInstruction(String piName, String piData) throws XmlDocumentException
piName
- the name of the processing instruction.pi
- the data of the processing instruction.XmlDocumentException
- if the PI was invalid.public String[] getProcessingInstructions()
public String getProcessingInstruction(String piName)
|
IMSEVimse 1.0 Draft |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |