Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

domdocumenttype(3) [php man page]

DOMDOCUMENTTYPE(3)							 1							DOMDOCUMENTTYPE(3)

The DOMDocumentType class

INTRODUCTION
Each DOMDocument has a doctype attribute whose value is either NULL or a DOMDocumentType object. CLASS SYNOPSIS
DOMDocumentType DOMDocumentTypeextends DOMNode Properties o readonlypublic string$publicId o readonlypublic string$systemId o readonlypublic string$name o readonlypublic DOMNamedNodeMap$entities o readonlypublic DOMNamedNodeMap$notations o readonlypublic string$internalSubset Inherited methods o public DOMNode DOMNode::appendChild (DOMNode $newnode) o public string DOMNode::C14N ([bool $exclusive], [bool $with_comments], [array $xpath], [array $ns_prefixes]) o public int DOMNode::C14NFile (string $uri, [bool $exclusive], [bool $with_comments], [array $xpath], [array $ns_prefixes]) o public DOMNode DOMNode::cloneNode ([bool $deep]) o public int DOMNode::getLineNo (void ) o public string DOMNode::getNodePath (void ) o public bool DOMNode::hasAttributes (void ) o public bool DOMNode::hasChildNodes (void ) o public DOMNode DOMNode::insertBefore (DOMNode $newnode, [DOMNode $refnode]) o public bool DOMNode::isDefaultNamespace (string $namespaceURI) o public bool DOMNode::isSameNode (DOMNode $node) o public bool DOMNode::isSupported (string $feature, string $version) o public string DOMNode::lookupNamespaceURI (string $prefix) o public string DOMNode::lookupPrefix (string $namespaceURI) o public void DOMNode::normalize (void ) o public DOMNode DOMNode::removeChild (DOMNode $oldnode) o public DOMNode DOMNode::replaceChild (DOMNode $newnode, DOMNode $oldnode) PROPERTIES
o $publicId -The public identifier of the external subset. o $systemId - The system identifier of the external subset. This may be an absolute URI or not. o $name - The name of DTD; i.e., the name immediately following the DOCTYPE keyword. o $entities - A DOMNamedNodeMap containing the general entities, both external and internal, declared in the DTD. o $notations - A DOMNamedNodeMap containing the notations declared in the DTD. o $internalSubset - The internal subset as a string, or null if there is none. This does not contain the delimiting square brackets. PHP Documentation Group DOMDOCUMENTTYPE(3)

Check Out this Related Man Page

DOMDOCUMENT.CREATEELEMENT(3)						 1					      DOMDOCUMENT.CREATEELEMENT(3)

DOMDocument::createElement - Create new element node

SYNOPSIS
public DOMElement DOMDocument::createElement (string $name, [string $value]) DESCRIPTION
This function creates a new instance of class DOMElement. This node will not show up in the document unless it is inserted with (e.g.) DOMNode.appendChild(3). PARAMETERS
o $name - The tag name of the element. o $value - The value of the element. By default, an empty element will be created. The value can also be set later with DOMElement::$node- Value. RETURN VALUES
Returns a new instance of class DOMElement or FALSE if an error occurred. ERRORS
/EXCEPTIONS o DOM_INVALID_CHARACTER_ERR - Raised if $name contains an invalid character. EXAMPLES
Example #1 Creating a new element and inserting it as root <?php $dom = new DOMDocument('1.0', 'utf-8'); $element = $dom->createElement('test', 'This is the root element!'); // We insert the new element as root (child of the document) $dom->appendChild($element); echo $dom->saveXML(); ?> The above example will output: <?xml version="1.0" encoding="utf-8"?> <test>This is the root element!</test> NOTES
Note The $value will not be escaped. Use DOMDocument::createTextNode to create a text node with escaping support. SEE ALSO
DOMNode::appendChild, DOMDocument::createAttribute, DOMDocument::createAttributeNS, DOMDocument::createCDATASection, DOMDocument::create- Comment, DOMDocument::createDocumentFragment, DOMDocument::createElementNS, DOMDocument::createEntityReference, DOMDocument::createPro- cessingInstruction, DOMDocument::createTextNode. PHP Documentation Group DOMDOCUMENT.CREATEELEMENT(3)
Man Page