Name
dtd_get, dtd_attach, dtd_list_elements, dtd_get_id_attr_name, dtd_get_attr_default — retrieve, attach and inspect DTDs of persistent XML entities
Synopsis
any dtd_get(
|
in entity XML); |
dtd_attach(
|
in entity XML, |
in dtd any); |
any dtd_list_elements(
|
in dtd any); |
varchar dtd_get_id_attr_name(
|
in dtd any, |
in element_name varchar); |
varchar dtd_get_attr_default(
|
in dtd any, |
| in element_name varchar, | |
in attribute_name varchar); |
Description
These BIFs operate on the DTD (Document Type Definition) associated with Virtuoso's persistent XML entity store (xper).
dtd_get returns the DTD attached to
entity, or SQL NULL when no DTD is bound.
dtd_attach binds dtd to
entity; subsequent validation and
reference-expansion operations on the entity will use this DTD.
dtd_list_elements returns a vector of element names
declared in dtd.
dtd_get_id_attr_name returns the name of the
attribute declared with type ID on
element_name, or SQL NULL if no such attribute is
declared.
dtd_get_attr_default returns the declared default
value of attribute attribute_name on
element_name, or SQL NULL if no default is
declared.