Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

domnode(3) [php man page]

DOMNODE(3)								 1								DOMNODE(3)

The DOMNode class

CLASS SYNOPSIS
DOMNode DOMNode Properties o publicreadonly string$nodeName o public string$nodeValue o publicreadonly int$nodeType o publicreadonly DOMNode$parentNode o publicreadonly DOMNodeList$childNodes o publicreadonly DOMNode$firstChild o publicreadonly DOMNode$lastChild o publicreadonly DOMNode$previousSibling o publicreadonly DOMNode$nextSibling o publicreadonly DOMNamedNodeMap$attributes o publicreadonly DOMDocument$ownerDocument o publicreadonly string$namespaceURI o public string$prefix o publicreadonly string$localName o publicreadonly string$baseURI o publicreadonly string$textContent 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 $nodeName -Returns the most accurate name for the current node type o $nodeValue -The value of this node, depending on its type o $nodeType -Gets the type of the node. One of the predefined XML_xxx_NODE constants o $parentNode -The parent of this node. If there is no such node, this returns NULL. o $childNodes - A DOMNodeList that contains all children of this node. If there are no children, this is an empty DOMNodeList. o $firstChild - The first child of this node. If there is no such node, this returns NULL. o $lastChild -The last child of this node. If there is no such node, this returns NULL. o $previousSibling - The node immediately preceding this node. If there is no such node, this returns NULL. o $nextSibling - The node immediately following this node. If there is no such node, this returns NULL. o $attributes - A DOMNamedNodeMap containing the attributes of this node (if it is a DOMElement) or NULL otherwise. o $ownerDocument -The DOMDocument object associated with this node. o $namespaceURI -The namespace URI of this node, or NULL if it is unspecified. o $prefix -The namespace prefix of this node, or NULL if it is unspecified. o $localName -Returns the local part of the qualified name of this node. o $baseURI - The absolute base URI of this node or NULL if the implementation wasn't able to obtain an absolute URI. o $textContent -This attribute returns the text content of this node and its descendants. NOTES
Note The DOM extension uses UTF-8 encoding. Use utf8_encode(3) and utf8_decode(3) to work with texts in ISO-8859-1 encoding or Iconv for other encodings. SEE ALSO
oW3C specification of Node PHP Documentation Group DOMNODE(3)

Check Out this Related Man Page

XMLREADER(3)								 1							      XMLREADER(3)

The XMLReader class

INTRODUCTION
The XMLReader extension is an XML Pull parser. The reader acts as a cursor going forward on the document stream and stopping at each node on the way. CLASS SYNOPSIS
XMLReader XMLReader Constants o const int$XMLReader::NONE0 o const int$XMLReader::ELEMENT1 o const int$XMLReader::ATTRIBUTE2 o const int$XMLReader::TEXT3 o const int$XMLReader::CDATA4 o const int$XMLReader::ENTITY_REF5 o const int$XMLReader::ENTITY6 o const int$XMLReader::PI7 o const int$XMLReader::COMMENT8 o const int$XMLReader::DOC9 o const int$XMLReader::DOC_TYPE10 o const int$XMLReader::DOC_FRAGMENT11 o const int$XMLReader::NOTATION12 o const int$XMLReader::WHITESPACE13 o const int$XMLReader::SIGNIFICANT_WHITESPACE14 o const int$XMLReader::END_ELEMENT15 o const int$XMLReader::END_ENTITY16 o const int$XMLReader::XML_DECLARATION17 o const int$XMLReader::LOADDTD1 o const int$XMLReader::DEFAULTATTRS2 o const int$XMLReader::VALIDATE3 o const int$XMLReader::SUBST_ENTITIES4 Properties o publicreadonly int$attributeCount o publicreadonly string$baseURI o publicreadonly int$depth o publicreadonly bool$hasAttributes o publicreadonly bool$hasValue o publicreadonly bool$isDefault o publicreadonly bool$isEmptyElement o publicreadonly string$localName o publicreadonly string$name o publicreadonly string$namespaceURI o publicreadonly int$nodeType o publicreadonly string$prefix o publicreadonly string$value o publicreadonly string$xmlLang Methods o public bool XMLReader::close (void ) o public DOMNode XMLReader::expand ([DOMNode $basenode]) o public string XMLReader::getAttribute (string $name) o public string XMLReader::getAttributeNo (int $index) o public string XMLReader::getAttributeNs (string $localName, string $namespaceURI) o public bool XMLReader::getParserProperty (int $property) o public bool XMLReader::isValid (void ) o public bool XMLReader::lookupNamespace (string $prefix) o public bool XMLReader::moveToAttribute (string $name) o public bool XMLReader::moveToAttributeNo (int $index) o public bool XMLReader::moveToAttributeNs (string $localName, string $namespaceURI) o public bool XMLReader::moveToElement (void ) o public bool XMLReader::moveToFirstAttribute (void ) o public bool XMLReader::moveToNextAttribute (void ) o public bool XMLReader::next ([string $localname]) o public bool XMLReader::open (string $URI, [string $encoding], [int $options]) o public bool XMLReader::read (void ) o public string XMLReader::readInnerXML (void ) o public string XMLReader::readOuterXML (void ) o public string XMLReader::readString (void ) o public bool XMLReader::setParserProperty (int $property, bool $value) o public bool XMLReader::setRelaxNGSchema (string $filename) o public bool XMLReader::setRelaxNGSchemaSource (string $source) o public bool XMLReader::setSchema (string $filename) o public bool XMLReader::xml (string $source, [string $encoding], [int $options]) PROPERTIES
o $attributeCount - The number of attributes on the node o $baseURI -The base URI of the node o $depth -Depth of the node in the tree, starting at 0 o $hasAttributes -Indicates if node has attributes o $hasValue -Indicates if node has a text value o $isDefault -Indicates if attribute is defaulted from DTD o $isEmptyElement -Indicates if node is an empty element tag o $localName -The local name of the node o $name -The qualified name of the node o $namespaceURI -The URI of the namespace associated with the node o $nodeType -The node type for the node o $prefix -The prefix of the namespace associated with the node o $value -The text value of the node o $xmlLang -The xml:lang scope which the node resides PREDEFINED CONSTANTS
XMLREADER NODE TYPES
o XMLReader::NONE -No node type o XMLReader::ELEMENT -Start element o XMLReader::ATTRIBUTE -Attribute node o XMLReader::TEXT -Text node o XMLReader::CDATA -CDATA node o XMLReader::ENTITY_REF -Entity Reference node o XMLReader::ENTITY -Entity Declaration node o XMLReader::PI -Processing Instruction node o XMLReader::COMMENT -Comment node o XMLReader::DOC -Document node o XMLReader::DOC_TYPE -Document Type node o XMLReader::DOC_FRAGMENT -Document Fragment node o XMLReader::NOTATION -Notation node o XMLReader::WHITESPACE -Whitespace node o XMLReader::SIGNIFICANT_WHITESPACE -Significant Whitespace node o XMLReader::END_ELEMENT -End Element o XMLReader::END_ENTITY -End Entity o XMLReader::XML_DECLARATION -XML Declaration node XMLREADER PARSER OPTIONS
o XMLReader::LOADDTD -Load DTD but do not validate o XMLReader::DEFAULTATTRS -Load DTD and default attributes but do not validate o XMLReader::VALIDATE -Load DTD and validate while parsing o XMLReader::SUBST_ENTITIES -Substitute entities and expand references PHP Documentation Group XMLREADER(3)
Man Page