Mark Wilson I am the creator of TopXML. I am available for international and local (Australia) contracts. I am a Solution Architect/Business Analyst. I have worked in IT in several countries (NZ, Australia, South Africa, UK) building and training teams for government and very large non-governmental organizations. I am ex-Microsoft Consulting Services. I wrote the first book on Microsoft XML published in 2000 called XML Programming with VB and ASP. Most recently I have been building tools for the SEO industry. Ask me for a 37 point SEO health-checkup for your website.
First posted :
03/24/2008
Times viewed :
1196
DOMAttr Function isId
PHP Version: (No version information might be only in CVS. I have
used this function in PHP5)
Description
This function checks if the attribute is a
defined ID and returns success if it is ID. According to the DOM standard this
requires a DTD which defines the attribute ID to be of type ID. You need to
validate your document with
Using DOMDocument->validate()
function or DOMDocument::validateOnParse before using this function.
Usage:
bool DOMAttr->isId ( void )
This function
will check whether the attribute is ID. If attribute of type ID then it returns
TRUE otherwise returns FALSE.
Example:
The DTD which I have written with ID as
attribute is: