--TEST-- DOMDocumentType: basic access to all properties. --CREDITS-- Eric Lee Stewart # TestFest Atlanta 2009-05-25 --SKIPIF-- --FILE-- '; $xml .= ''; $xml .= '1'; $doc = new DOMDocument(); $doc->loadXML($xml); $doctype = $doc->doctype; print "publicId: ".$doctype->publicId."\n"; print "systemId: ".$doctype->systemId."\n"; print "name: ".$doctype->name."\n"; print "internalSubset: ".$doctype->internalSubset."\n"; // Access entities and notations with values. $xml = ''; $xml .= ''; $xml .= ' '; $xml .= ' '; $xml .= ' '; $xml .= ']>'; $xml .= ''; $doc = new DOMDocument(); $doc->loadXML($xml); $doctype = $doc->doctype; $entities = $doctype->entities; $entity = $entities->item(0); print 'entity: '.$entity->nodeName."\n"; $notations = $doctype->notations; $notation = $notations->item(0); print 'notation: '.$notation->nodeName."\n"; ?> --EXPECT-- publicId: -//OASIS//DTD DocBook XML//EN systemId: docbookx.dtd name: chapter internalSubset: entity: logo notation: gif