Table 4-4 summarizes the methods of available through the DocumentType
interface.
Table 4-4 Summary of DocumentType Methods; DOM Package
Function | Summary |
---|---|
XmlDomGetDTDEntities
|
Get entities of DTD. |
XmlDomGetDTDInternalSubset
|
Get DTD's internal subset. |
XmlDomGetDTDName
|
Get name of DTD. |
XmlDomGetDTDNotations
|
Get notations of DTD. |
XmlDomGetDTDPubID
|
Get DTD's public ID. |
XmlDomGetDTDSysID
|
Get DTD's system ID. |
Returns a named node map of general entities defined by the DTD. If the node is not a DTD, or has no general entities, returns NULL
.
xmlnamedmap* XmlDomGetDTDEntities( xmlctx *xctx, xmldtdnode *dtd)
Parameter | In/Out | Description |
---|---|---|
xctx |
IN |
XML context |
dtd |
IN |
DTD node |
(xmlnamedmap *)
named node map containing entities declared in DTD
Returns the content model for an element. If there is no DTD, returns NULL
.
xmlnode* XmlDomGetDTDInternalSubset( xmlctx *xctx, xmldtdnode *dtd, oratext *name)
Parameter | In/Out | Description |
---|---|---|
xctx |
IN |
XML context |
dtd |
IN |
DTD node |
name |
IN |
name of Element ; data encoding
|
(xmlnode *)
content model subtree
Returns a DTD's name (specified immediately after the DOCTYPE
keyword), or NULL
if the node is not type DTD.
oratext* XmlDomGetDTDName( xmlctx *xctx, xmldtdnode *dtd)
Parameter | In/Out | Description |
---|---|---|
xctx |
IN |
XML context |
dtd |
IN |
DTD node |
(oratext *)
name of DTD
Returns named node map of notations declared by the DTD. If the node is not a DTD or has no Notation
s, returns NULL
.
xmlnamedmap* XmlDomGetDTDNotations( xmlctx *xctx, xmldtdnode *dtd)
Parameter | In/Out | Description |
---|---|---|
xctx |
IN |
XML context |
dtd |
IN |
DTD node |
(xmlnamedmap *)
named node map containing notations declared in DTD
Returns a DTD's public identifier.
oratext* XmlDomGetDTDPubID( xmlctx *xctx, xmldtdnode *dtd)
Parameter | In/Out | Description |
---|---|---|
xctx |
IN |
XML context |
dtd |
IN |
DTD node |
(oratext *)
DTD's public identifier [data encoding]
Returns a DTD's system identifier.
oratext* XmlDomGetDTDSysID( xmlctx *xctx, xmldtdnode *dtd)
Parameter | In/Out | Description |
---|---|---|
xctx |
IN |
XML context |
dtd |
IN |
DTD node |
(oratext *)
DTD's system identifier [data encoding]