SYNOPSISstring xmlTreeGetEntityType(xmlNode entity)
Parameters:
entity - the XML_ENTITY_DECL you want to get the
type from
Returns:
entity
DESCRIPTIONxmlTreeGetEntityType() will tell you what the type of an entity
the node entity is. All entity declarations have an
xmlNode type of XML_ENTITY_DECL (as retrieved with
xmlTreeGetType()), but there are multiple types of entities. The
possible values, and examples that would return that type, are:
XML_INTERNAL_GENERAL_ENTITY - This is the normal entity
type, parsed and contained within the document.
<!ENTITY ts "Thunderstone Software, LLC.">
XML_EXTERNAL_GENERAL_PARSED_ENTITY - an external
entity that gets parsed.
<!ENTITY ep SYSTEM "externalParsed.txt">
XML_INTERNAL_PARAMETER_ENTITY - an entity that is marked
to only be used within the DTD.
<!ENTITY % p "(#PCDATA)">
XML_EXTERNAL_PARAMETER_ENTITY- an external entity that is
only to be used within the DTD.
<!ENTITY % epar SYSTEM "epar.txt">
EXAMPLE<$dtd = (xmlTreeGetInternalSubset($doc))>
<$node = (xmlTreeGetFirstChild($dtd))>
<$type = (xmlTreeGetType($node))>
<if 'XML_ENTITY_DECL' eq $type>
<$etype = (xmlTreeGetEntityType($node))>
</if>
SEE ALSOxmlTreeGetName,
xmlTreeGetContent