PHP » PYTHON |
login |
register |
about
|
PYTHON DOMDocument::getElementById
(1)
Python replacement for PHP's DOMDocument::getElementById
[
edit
]
PHP DOMDocument::getElementByIdPHP original manual for DOMDocument::getElementById [ show | php.net ]DOMDocument::getElementById(PHP 5) DOMDocument::getElementById — Searches for an element with a certain id DescriptionThis function is similar to DOMDocument::getElementsByTagName but searches for an element with a given id. For this function to work, you will need either to set some ID attributes with DOMElement::setIdAttribute or a DTD which defines an attribute to be of type ID. In the later case, you will need to validate your document with DOMDocument::validate or DOMDocument->validateOnParse before using this function. Parameters
Return ValuesReturns the DOMElement or NULL if the element is not found. ExamplesExample #1 DOMDocument->getElementById() Example
<?php The above example will output: The element whose id is books is: chapter |
more
Recently updated
more
Most requested
more
Last requests
|