didou Mon Dec 20 19:36:56 2004 EDT
Modified files: /phpdoc/en/reference/dom reference.xml /phpdoc/en/reference/dom/functions dom-domattr-isid.xml dom-domdocument-getelementsbytagnamens.xml dom-domimplementation-hasfeature.xml dom-domxpath-evaluate.xml Log: Use xref instead of link, this will automaticaly pickup the method name Fix DOMAttr->isId() docbook identifier Document and finalize DOMDocument->getElementsByTagNS(), DOMImplementation->hasFeature(), DOMXPath->evaluate(), dom_import_simplexml()
http://cvs.php.net/diff.php/phpdoc/en/reference/dom/reference.xml?r1=1.9&r2=1.10&ty=u Index: phpdoc/en/reference/dom/reference.xml diff -u phpdoc/en/reference/dom/reference.xml:1.9 phpdoc/en/reference/dom/reference.xml:1.10 --- phpdoc/en/reference/dom/reference.xml:1.9 Mon Dec 20 14:58:24 2004 +++ phpdoc/en/reference/dom/reference.xml Mon Dec 20 19:36:55 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> +<!-- $Revision: 1.10 $ --> <reference id="ref.dom"> <title>DOM Functions</title> <titleabbrev>DOM</titleabbrev> @@ -43,7 +43,7 @@ &reftitle.methods; <itemizedlist> <listitem> - <para><link linkend='function.dom-domattr-isid'>isId</link> - Checks if attribute is a defined ID</para> + <para><xref linkend='function.dom-domattr-isid' /> - Checks if attribute is a defined ID</para> </listitem> </itemizedlist> </section> @@ -106,19 +106,19 @@ &reftitle.methods; <itemizedlist> <listitem> - <para><link linkend='function.dom-domcharacterdata-appenddata'>appendData</link> - Append a string to the end of the character data of the node</para> + <para><xref linkend='function.dom-domcharacterdata-appenddata' /> - Append a string to the end of the character data of the node</para> </listitem> <listitem> - <para><link linkend='function.dom-domcharacterdata-deletedata'>deleteData</link> - Remove a range of characters from the node</para> + <para><xref linkend='function.dom-domcharacterdata-deletedata' /> - Remove a range of characters from the node</para> </listitem> <listitem> - <para><link linkend='function.dom-domcharacterdata-insertdata'>insertData</link> - Insert a string at the specified 16-bit unit offset</para> + <para><xref linkend='function.dom-domcharacterdata-insertdata' /> - Insert a string at the specified 16-bit unit offset</para> </listitem> <listitem> - <para><link linkend='function.dom-domcharacterdata-replacedata'>replaceData</link> - Replace a substring within the DOMCharacterData node</para> + <para><xref linkend='function.dom-domcharacterdata-replacedata' /> - Replace a substring within the DOMCharacterData node</para> </listitem> <listitem> - <para><link linkend='function.dom-domcharacterdata-substringdata'>substringData</link> - Extracts a range of data from the node</para> + <para><xref linkend='function.dom-domcharacterdata-substringdata' /> - Extracts a range of data from the node</para> </listitem> </itemizedlist> </section> @@ -163,7 +163,7 @@ &reftitle.constructor; <itemizedlist> <listitem> - <para><link linkend='function.dom-domdocument-construct'>__construct</link> - construct a new DOMDocument object</para> + <para><xref linkend='function.dom-domdocument-construct' /> - construct a new DOMDocument object</para> </listitem> </itemizedlist> </section> @@ -171,91 +171,91 @@ &reftitle.methods; <itemizedlist> <listitem> - <para><link linkend='function.dom-domdocument-createattribute'>createAttribute</link> - Create new attribute</para> + <para><xref linkend='function.dom-domdocument-createattribute' /> - Create new attribute</para> </listitem> <listitem> - <para><link linkend='function.dom-domdocument-createattributens'>createAttributeNS</link> - Create new attribute node with an associated namespace</para> + <para><xref linkend='function.dom-domdocument-createattributens' /> - Create new attribute node with an associated namespace</para> </listitem> <listitem> - <para><link linkend='function.dom-domdocument-createcdatasection'>createCDATASection</link> - Create new cdata node</para> + <para><xref linkend='function.dom-domdocument-createcdatasection' /> - Create new cdata node</para> </listitem> <listitem> - <para><link linkend='function.dom-domdocument-createcomment'>createComment</link> - Create new comment node</para> + <para><xref linkend='function.dom-domdocument-createcomment' /> - Create new comment node</para> </listitem> <listitem> - <para><link linkend='function.dom-domdocument-createdocumentfragment'>createDocumentFragment</link> - Create new document fragment</para> + <para><xref linkend='function.dom-domdocument-createdocumentfragment' /> - Create new document fragment</para> </listitem> <listitem> - <para><link linkend='function.dom-domdocument-createelement'>createElement</link> - Create new element node</para> + <para><xref linkend='function.dom-domdocument-createelement' /> - Create new element node</para> </listitem> <listitem> - <para><link linkend='function.dom-domdocument-createelementns'>createElementNS</link> - Create new element node with an associated namespace</para> + <para><xref linkend='function.dom-domdocument-createelementns' /> - Create new element node with an associated namespace</para> </listitem> <listitem> - <para><link linkend='function.dom-domdocument-createentityreference'>createEntityReference</link> - Create new entity reference node</para> + <para><xref linkend='function.dom-domdocument-createentityreference' /> - Create new entity reference node</para> </listitem> <listitem> - <para><link linkend='function.dom-domdocument-createprocessinginstruction'>createProcessingInstruction</link> - Creates new PI node</para> + <para><xref linkend='function.dom-domdocument-createprocessinginstruction' /> - Creates new PI node</para> </listitem> <listitem> - <para><link linkend='function.dom-domdocument-createtextnode'>createTextNode</link> - Create new text node</para> + <para><xref linkend='function.dom-domdocument-createtextnode' /> - Create new text node</para> </listitem> <listitem> - <para><link linkend='function.dom-domdocument-getelementbyid'>getElementById</link> - Searches for an element with a certain id</para> + <para><xref linkend='function.dom-domdocument-getelementbyid' /> - Searches for an element with a certain id</para> </listitem> <listitem> - <para><link linkend='function.dom-domdocument-getelementsbytagname'>getElementsByTagName</link> - Searches for all elements with given tag name</para> + <para><xref linkend='function.dom-domdocument-getelementsbytagname' /> - Searches for all elements with given tag name</para> </listitem> <listitem> - <para><link linkend='function.dom-domdocument-getelementsbytagnamens'>getElementsByTagNameNS</link> - Searches for all elements with given tag name in specified namespace</para> + <para><xref linkend='function.dom-domdocument-getelementsbytagnamens' /> - Searches for all elements with given tag name in specified namespace</para> </listitem> <listitem> - <para><link linkend='function.dom-domdocument-importnode'>importNode</link> - Import node into current document</para> + <para><xref linkend='function.dom-domdocument-importnode' /> - Import node into current document</para> </listitem> <listitem> - <para><link linkend='function.dom-domdocument-load'>load</link> - Load XML from a file</para> + <para><xref linkend='function.dom-domdocument-load' /> - Load XML from a file</para> </listitem> <listitem> - <para><link linkend='function.dom-domdocument-loadhtml'>loadHTML</link> - Load HTML from a string</para> + <para><xref linkend='function.dom-domdocument-loadhtml' /> - Load HTML from a string</para> </listitem> <listitem> - <para><link linkend='function.dom-domdocument-loadxmlfile'>loadHTMLFile</link> - Load HTML from a file</para> + <para><xref linkend='function.dom-domdocument-loadhtmlfile' /> - Load HTML from a file</para> </listitem> <listitem> - <para><link linkend='function.dom-domdocument-loadxml'>loadXML</link> - Load XML from a string</para> + <para><xref linkend='function.dom-domdocument-loadxml' /> - Load XML from a string</para> </listitem> <listitem> - <para><link linkend='function.dom-domdocument-normalize'>normalize</link> - Normalizes document</para> + <para><xref linkend='function.dom-domdocument-normalize' /> - Normalizes document</para> </listitem> <listitem> - <para><link linkend='function.dom-domdocument-relaxngvalidate'>relaxNGValidate</link> - Performs relaxNG validation on the document</para> + <para><xref linkend='function.dom-domdocument-relaxngvalidate' /> - Performs relaxNG validation on the document</para> </listitem> <listitem> - <para><link linkend='function.dom-domdocument-relaxngvalidatesource'>relaxNGValidateSource</link> - Performs relaxNG validation on the document</para> + <para><xref linkend='function.dom-domdocument-relaxngvalidatesource' /> - Performs relaxNG validation on the document</para> </listitem> <listitem> - <para><link linkend='function.dom-domdocument-save'>save</link> - Dumps the internal XML tree back into a file</para> + <para><xref linkend='function.dom-domdocument-save' /> - Dumps the internal XML tree back into a file</para> </listitem> <listitem> - <para><link linkend='function.dom-domdocument-savehtml'>saveHTML</link> - Dumps the internal document into a string using HTML formatting</para> + <para><xref linkend='function.dom-domdocument-savehtml' /> - Dumps the internal document into a string using HTML formatting</para> </listitem> <listitem> - <para><link linkend='function.dom-domdocument-savehtmlfile'>saveHTMLFile</link> - Dumps the internal document back into a file using HTML formatting</para> + <para><xref linkend='function.dom-domdocument-savehtmlfile' /> - Dumps the internal document back into a file using HTML formatting</para> </listitem> <listitem> - <para><link linkend='function.dom-domdocument-savexml'>saveXML</link> - Dumps the internal XML tree back into a string</para> + <para><xref linkend='function.dom-domdocument-savexml' /> - Dumps the internal XML tree back into a string</para> </listitem> <listitem> - <para><link linkend='function.dom-domdocument-schemavalidate'>schemaValidate</link> - Validates a document based on a schema</para> + <para><xref linkend='function.dom-domdocument-schemavalidate' /> - Validates a document based on a schema</para> </listitem> <listitem> - <para><link linkend='function.dom-domdocument-schemavalidatesource'>schemaValidateSource</link> - Validates a document based on a schema</para> + <para><xref linkend='function.dom-domdocument-schemavalidatesource' /> - Validates a document based on a schema</para> </listitem> <listitem> - <para><link linkend='function.dom-domdocument-validate'>validate</link> - Validates the document based on its DTD</para> + <para><xref linkend='function.dom-domdocument-validate' /> - Validates the document based on its DTD</para> </listitem> <listitem> - <para><link linkend='function.dom-domdocument-xinclude'>xinclude</link> - Substitutes XIncludes in a DOMDocument Object</para> + <para><xref linkend='function.dom-domdocument-xinclude' /> - Substitutes XIncludes in a DOMDocument Object</para> </listitem> </itemizedlist> </section> @@ -504,49 +504,49 @@ &reftitle.methods; <itemizedlist> <listitem> - <para><link linkend='function.dom-domelement-getattribute'>getAttribute</link> - Returns value of attribute</para> + <para><xref linkend='function.dom-domelement-getattribute' /> - Returns value of attribute</para> </listitem> <listitem> - <para><link linkend='function.dom-domelement-getattributenode'>getAttributeNode</link> - Returns attribute node</para> + <para><xref linkend='function.dom-domelement-getattributenode' /> - Returns attribute node</para> </listitem> <listitem> - <para><link linkend='function.dom-domelement-getattributenodens'>getAttributeNodeNS</link> - Returns attribute node</para> + <para><xref linkend='function.dom-domelement-getattributenodens' /> - Returns attribute node</para> </listitem> <listitem> - <para><link linkend='function.dom-domelement-getattributens'>getAttributeNS</link> - Returns value of attribute</para> + <para><xref linkend='function.dom-domelement-getattributens' /> - Returns value of attribute</para> </listitem> <listitem> - <para><link linkend='function.dom-domelement-getelementsbytagname'>getElementsByTagName</link> - Gets elements by tagname</para> + <para><xref linkend='function.dom-domelement-getelementsbytagname' /> - Gets elements by tagname</para> </listitem> <listitem> - <para><link linkend='function.dom-domelement-getelementsbytagnamens'>getElementsByTagNameNS</link> - Get elements by namespaceURI and localName</para> + <para><xref linkend='function.dom-domelement-getelementsbytagnamens' /> - Get elements by namespaceURI and localName</para> </listitem> <listitem> - <para><link linkend='function.dom-domelement-hasattribute'>hasAttribute</link> - Checks to see if attribute exists</para> + <para><xref linkend='function.dom-domelement-hasattribute' /> - Checks to see if attribute exists</para> </listitem> <listitem> - <para><link linkend='function.dom-domelement-hasattributens'>hasAttributeNS</link> - Checks to see if attribute exists</para> + <para><xref linkend='function.dom-domelement-hasattributens' /> - Checks to see if attribute exists</para> </listitem> <listitem> - <para><link linkend='function.dom-domelement-removeattribute'>removeAttribute</link> - Removes attribute</para> + <para><xref linkend='function.dom-domelement-removeattribute' /> - Removes attribute</para> </listitem> <listitem> - <para><link linkend='function.dom-domelement-removeattributenode'>removeAttributeNode</link> - Removes attribute</para> + <para><xref linkend='function.dom-domelement-removeattributenode' /> - Removes attribute</para> </listitem> <listitem> - <para><link linkend='function.dom-domelement-removeattributens'>removeAttributeNS</link> - Removes attribute</para> + <para><xref linkend='function.dom-domelement-removeattributens' /> - Removes attribute</para> </listitem> <listitem> - <para><link linkend='function.dom-domelement-setattribute'>setAttribute</link> - Adds new attribute</para> + <para><xref linkend='function.dom-domelement-setattribute' /> - Adds new attribute</para> </listitem> <listitem> - <para><link linkend='function.dom-domelement-setattributenode'>setAttributeNode</link> - Adds new attribute node to element</para> + <para><xref linkend='function.dom-domelement-setattributenode' /> - Adds new attribute node to element</para> </listitem> <listitem> - <para><link linkend='function.dom-domelement-setattributenodens'>setAttributeNodeNS</link> - Adds new attribute node to element</para> + <para><xref linkend='function.dom-domelement-setattributenodens' /> - Adds new attribute node to element</para> </listitem> <listitem> - <para><link linkend='function.dom-domelement-setattributens'>setAttributeNS</link> - Adds new attribute</para> + <para><xref linkend='function.dom-domelement-setattributens' /> - Adds new attribute</para> </listitem> </itemizedlist> </section> @@ -722,13 +722,13 @@ &reftitle.methods; <itemizedlist> <listitem> - <para><link linkend='function.dom-domimplementation-createdocument'>createDocument</link> - Creates a DOM Document object of the specified type with its document element</para> + <para><xref linkend='function.dom-domimplementation-createdocument' /> - Creates a DOM Document object of the specified type with its document element</para> </listitem> <listitem> - <para><link linkend='function.dom-domimplementation-createdocumenttype'>createDocumentType</link> - Creates an empty DOMDocumentType object</para> + <para><xref linkend='function.dom-domimplementation-createdocumenttype' /> - Creates an empty DOMDocumentType object</para> </listitem> <listitem> - <para><link linkend='function.dom-domimplementation-hasfeature'>hasFeature</link> - Test if the DOM implementation implements a specific feature</para> + <para><xref linkend='function.dom-domimplementation-hasfeature' /> - Test if the DOM implementation implements a specific feature</para> </listitem> </itemizedlist> </section> @@ -744,10 +744,10 @@ &reftitle.methods; <itemizedlist> <listitem> - <para><link linkend='function.dom-domnamelist-getname'>getName</link> - </para> + <para><xref linkend='function.dom-domnamelist-getname' /> - </para> </listitem> <listitem> - <para><link linkend='function.dom-domnamelist-getnamespaceuri'>getNamespaceURI</link> - </para> + <para><xref linkend='function.dom-domnamelist-getnamespaceuri' /> - </para> </listitem> </itemizedlist> </section> @@ -788,43 +788,43 @@ &reftitle.methods; <itemizedlist> <listitem> - <para><link linkend='function.dom-domnode-appendchild'>appendChild</link> - Adds new child at the end of the children</para> + <para><xref linkend='function.dom-domnode-appendchild' /> - Adds new child at the end of the children</para> </listitem> <listitem> - <para><link linkend='function.dom-domnode-clonenode'>cloneNode</link> - Clones a node</para> + <para><xref linkend='function.dom-domnode-clonenode' /> - Clones a node</para> </listitem> <listitem> - <para><link linkend='function.dom-domnode-hasattributes'>hasAttributes</link> - Checks if node has attributes</para> + <para><xref linkend='function.dom-domnode-hasattributes' /> - Checks if node has attributes</para> </listitem> <listitem> - <para><link linkend='function.dom-domnode-haschildnodes'>hasChildNodes</link> - Checks if node has children</para> + <para><xref linkend='function.dom-domnode-haschildnodes' /> - Checks if node has children</para> </listitem> <listitem> - <para><link linkend='function.dom-domnode-insertbefore'>insertBefore</link> - Adds new child at the end of the children</para> + <para><xref linkend='function.dom-domnode-insertbefore' /> - Adds new child at the end of the children</para> </listitem> <listitem> - <para><link linkend='function.dom-domnode-issamenode'>isSameNode</link> - Indicates if two nodes are the same node</para> + <para><xref linkend='function.dom-domnode-issamenode' /> - Indicates if two nodes are the same node</para> </listitem> <listitem> - <para><link linkend='function.dom-domnode-issupported'>isSupported</link> - Checks if feature is supported for specified version</para> + <para><xref linkend='function.dom-domnode-issupported' /> - Checks if feature is supported for specified version</para> </listitem> <listitem> - <para><link linkend='function.dom-domnode-lookupnamespaceuri'>lookupNamespaceURI</link> - Returns namespace URI of the node based on the prefix</para> + <para><xref linkend='function.dom-domnode-lookupnamespaceuri' /> - Returns namespace URI of the node based on the prefix</para> </listitem> <listitem> - <para><link linkend='function.dom-domnode-lookupprefix'>lookupPrefix</link> - Returns name space prefix of the node based on namespaceURI</para> + <para><xref linkend='function.dom-domnode-lookupprefix' /> - Returns name space prefix of the node based on namespaceURI</para> </listitem> <listitem> - <para><link linkend='function.dom-domnode-normalize'>normalize</link> - Normalizes the node</para> + <para><xref linkend='function.dom-domnode-normalize' /> - Normalizes the node</para> </listitem> <listitem> - <para><link linkend='function.dom-domnode-removechild'>removeChild</link> - Removes child from list of children</para> + <para><xref linkend='function.dom-domnode-removechild' /> - Removes child from list of children</para> </listitem> <listitem> - <para><link linkend='function.dom-domnode-replacechild'>replaceChild</link> - Replaces a child</para> + <para><xref linkend='function.dom-domnode-replacechild' /> - Replaces a child</para> </listitem> </itemizedlist> - </section> + </section> <section id='dom.class.domnode.properties'> &reftitle.properties; <table> @@ -1060,7 +1060,7 @@ &reftitle.methods; <itemizedlist> <listitem> - <para><link linkend='function.dom-domstringlist-item'>item</link> - Return the specified index of the collection</para> + <para><xref linkend='function.dom-domstringlist-item' /> - Return the specified index of the collection</para> </listitem> </itemizedlist> </section> @@ -1101,16 +1101,16 @@ &reftitle.methods; <itemizedlist> <listitem> - <para><link linkend='function.dom-domtext-iselementcontentwhitespace'>isElementContentWhitespace</link> - </para> + <para><xref linkend='function.dom-domtext-iselementcontentwhitespace' /> - </para> </listitem> <listitem> - <para><link linkend='function.dom-domtext-isWhitespaceinelementcontent'>isWhitespaceInElementContent</link> - </para> + <para><xref linkend='function.dom-domtext-iswhitespaceinelementcontent' /> - </para> </listitem> <listitem> - <para><link linkend='function.dom-domtext-replacewholetext'>replaceWholeText</link> - </para> + <para><xref linkend='function.dom-domtext-replacewholetext' /> - </para> </listitem> <listitem> - <para><link linkend='function.dom-domtext-splittext'>splitText</link> - </para> + <para><xref linkend='function.dom-domtext-splittext' /> - </para> </listitem> </itemizedlist> </section> @@ -1149,7 +1149,7 @@ &reftitle.constructor; <itemizedlist> <listitem> - <para><link linkend='function.dom-domxpath-construct'>__construct</link> - construct a new DOMXPath object</para> + <para><xref linkend='function.dom-domxpath-construct' /> - construct a new DOMXPath object</para> </listitem> </itemizedlist> </section> @@ -1157,13 +1157,13 @@ &reftitle.methods; <itemizedlist> <listitem> - <para><link linkend='function.dom-domxpath-registernamespace'>registerNamespace</link> - Registers the namespace with the DOMXpath object</para> + <para><xref linkend='function.dom-domxpath-registernamespace' /> - Registers the namespace with the DOMXpath object</para> </listitem> <listitem> - <para><link linkend='function.dom-domxpath-evaluate'>evaluate</link> - Evaluates the given XPath expression and returns a typed result</para> + <para><xref linkend='function.dom-domxpath-evaluate' /> - Evaluates the given XPath expression and returns a typed result if possible</para> </listitem> <listitem> - <para><link linkend='function.dom-domxpath-query'>query</link> - Evaluates the given XPath expression</para> + <para><xref linkend='function.dom-domxpath-query' /> - Evaluates the given XPath expression</para> </listitem> </itemizedlist> </section> http://cvs.php.net/diff.php/phpdoc/en/reference/dom/functions/dom-domattr-isid.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc/en/reference/dom/functions/dom-domattr-isid.xml diff -u phpdoc/en/reference/dom/functions/dom-domattr-isid.xml:1.7 phpdoc/en/reference/dom/functions/dom-domattr-isid.xml:1.8 --- phpdoc/en/reference/dom/functions/dom-domattr-isid.xml:1.7 Mon Dec 20 10:57:48 2004 +++ phpdoc/en/reference/dom/functions/dom-domattr-isid.xml Mon Dec 20 19:36:56 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<refentry id='function.dom-domattr-isId'> +<!-- $Revision: 1.8 $ --> +<refentry id='function.dom-domattr-isid'> <refnamediv> <refname>DOMAttr->isId</refname> <refpurpose> @@ -23,7 +23,7 @@ <para> 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 - <link linkend="function.dom-domdocument-validate">DOMDocument->validate()</link> + <xref linkend="function.dom-domdocument-validate" /> or <literal>DOMDocument::validateOnParse</literal> before using this function. </para> </refsect1> http://cvs.php.net/diff.php/phpdoc/en/reference/dom/functions/dom-domdocument-getelementsbytagnamens.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc/en/reference/dom/functions/dom-domdocument-getelementsbytagnamens.xml diff -u phpdoc/en/reference/dom/functions/dom-domdocument-getelementsbytagnamens.xml:1.5 phpdoc/en/reference/dom/functions/dom-domdocument-getelementsbytagnamens.xml:1.6 --- phpdoc/en/reference/dom/functions/dom-domdocument-getelementsbytagnamens.xml:1.5 Fri Dec 17 10:11:30 2004 +++ phpdoc/en/reference/dom/functions/dom-domdocument-getelementsbytagnamens.xml Mon Dec 20 19:36:56 2004 @@ -1,31 +1,115 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> - <refentry id="function.dom-domdocument-getelementsbytagnamens"> - <refnamediv> - <refname>DOMDocument->getElementsByTagNameNS</refname> - <refpurpose> - Searches for all elements with given tag name in specified namespace - </refpurpose> - </refnamediv> - <refsect1> - &reftitle.description; - <classsynopsis> - <ooclass><classname>DOMDocument</classname></ooclass> - <methodsynopsis> - <type>DOMNodeList</type> - <methodname>getElementsByTagNameNS</methodname> - <methodparam><type>string</type><parameter>namespaceURI</parameter></methodparam> - <methodparam><type>string</type><parameter>localName</parameter></methodparam> - </methodsynopsis> - </classsynopsis> - <para> - This function returns a new instance of class - <classname>DOMNodeList</classname> containing the elements with tagnames - matching the localName parameter and in the namespaceURI namespace. - Use "*" for the name to return all elements within the document. - </para> - </refsect1> - </refentry> +<!-- $Revision: 1.6 $ --> +<refentry id="function.dom-domdocument-getelementsbytagnamens"> + <refnamediv> + <refname>DOMDocument->getElementsByTagNameNS()</refname> + <refpurpose> + Searches for all elements with given tag name in specified namespace + </refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <classsynopsis> + <ooclass><classname>DOMDocument</classname></ooclass> + <methodsynopsis> + <type>DOMNodeList</type> + <methodname>getElementsByTagNameNS</methodname> + <methodparam><type>string</type><parameter>namespaceURI</parameter></methodparam> + <methodparam><type>string</type><parameter>localName</parameter></methodparam> + </methodsynopsis> + </classsynopsis> + <para> + Returns a <classname>DOMNodeList</classname> of all elements with a given + local name and a namespace URI. + </para> + </refsect1> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>namespaceURI</parameter></term> + <listitem> + <para> + The namespace URI of the elements to match on. + The special value <literal>*</literal> matches all namespaces. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>localName</parameter></term> + <listitem> + <para> + The local name of the elements to match on. + The special value <literal>*</literal> matches all local names. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + A new <classname>DOMNodeList</classname> object containing all the matched + elements. + </para> + </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>Get all the XInclude elements</title> + <programlisting role="php"> +<![CDATA[ +<?php + +$xml = <<<EOD +<?xml version="1.0" ?> +<chapter xmlns:xi="http://www.w3.org/2001/XInclude"> +<title>Books of the other guy..</title> +<para> + <xi:include href="book.xml"> + <xi:fallback> + <error>xinclude: book.xml not found</error> + </xi:fallback> + </xi:include> + <include> + This is another namespace + </include> +</para> +</chapter> +EOD; +$dom = new DOMDocument; + +// load the XML string defined above +$dom->loadXML($xml); + +foreach ($dom->getElementsByTagNameNS('http://www.w3.org/2001/XInclude', '*') as $element) { + echo 'local name: ', $element->localName, ', prefix: ', $element->prefix, "\n"; +} +?> +]]> + </programlisting> + &example.outputs; + <screen> +<![CDATA[ +local name: include, prefix: xi +local name: fallback, prefix: xi +]]> + </screen> + </example> + </para> + </refsect1> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><xref linkend="function.dom-domdocument-getelementsbytagname" /></member> + </simplelist> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc/en/reference/dom/functions/dom-domimplementation-hasfeature.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc/en/reference/dom/functions/dom-domimplementation-hasfeature.xml diff -u phpdoc/en/reference/dom/functions/dom-domimplementation-hasfeature.xml:1.5 phpdoc/en/reference/dom/functions/dom-domimplementation-hasfeature.xml:1.6 --- phpdoc/en/reference/dom/functions/dom-domimplementation-hasfeature.xml:1.5 Sun Dec 19 08:21:33 2004 +++ phpdoc/en/reference/dom/functions/dom-domimplementation-hasfeature.xml Mon Dec 20 19:36:56 2004 @@ -1,40 +1,69 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> - <refentry id='function.dom-domimplementation-hasfeature'> - <refnamediv> - <refname>DOMImplementation->hasFeature</refname> - <refpurpose> - Test if the DOM implementation implements a specific feature - </refpurpose> - </refnamediv> - <refsect1> - &reftitle.description; - <classsynopsis> - <ooclass><classname>DOMImplementation</classname></ooclass> - <methodsynopsis> - <type>bool</type> - <methodname>hasFeature</methodname> - <methodparam><type>string</type><parameter>feature</parameter></methodparam> - <methodparam><type>string</type><parameter>version</parameter></methodparam> - </methodsynopsis> - </classsynopsis> - <para> - Test if the DOM implementation implements a specific - <parameter>feature</parameter>. &return.success; - </para> - <para> - You can find a list of all features in the <ulink - url="&url.dom2.features;">Conformance</ulink> section of the DOM - specification. - </para> - <para> - <parameter>version</parameter> is the version number of the feature to - test. In level 2, this can be either <literal>2.0</literal> or - <literal>1.0</literal>. - </para> - <example> - <title>Testing your DOM Implementation</title> - <programlisting role="php"> +<!-- $Revision: 1.6 $ --> +<refentry id='function.dom-domimplementation-hasfeature'> + <refnamediv> + <refname>DOMImplementation->hasFeature()</refname> + <refpurpose> + Test if the DOM implementation implements a specific feature + </refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <classsynopsis> + <ooclass><classname>DOMImplementation</classname></ooclass> + <methodsynopsis> + <type>bool</type> + <methodname>hasFeature</methodname> + <methodparam><type>string</type><parameter>feature</parameter></methodparam> + <methodparam><type>string</type><parameter>version</parameter></methodparam> + </methodsynopsis> + </classsynopsis> + <para> + Test if the DOM implementation implements a specific + <parameter>feature</parameter>. + </para> + <para> + You can find a list of all features in the <ulink + url="&url.dom2.features;">Conformance</ulink> section of the DOM + specification. + </para> + </refsect1> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>feature</parameter></term> + <listitem> + <para> + The feature to test. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>version</parameter></term> + <listitem> + <para> + The version number of the <parameter>feature</parameter> to test. In + level 2, this can be either <literal>2.0</literal> or + <literal>1.0</literal>. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + &return.success; + </para> + </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <example> + <title>Testing your DOM Implementation</title> + <programlisting role="php"> <![CDATA[ <?php @@ -65,10 +94,18 @@ ?> ]]> - </programlisting> - </example> - </refsect1> - </refentry> + </programlisting> + </example> + </refsect1> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><xref linkend="function.dom-domnode-issupported" /></member> + </simplelist> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc/en/reference/dom/functions/dom-domxpath-evaluate.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc/en/reference/dom/functions/dom-domxpath-evaluate.xml diff -u phpdoc/en/reference/dom/functions/dom-domxpath-evaluate.xml:1.1 phpdoc/en/reference/dom/functions/dom-domxpath-evaluate.xml:1.2 --- phpdoc/en/reference/dom/functions/dom-domxpath-evaluate.xml:1.1 Fri Dec 17 11:15:37 2004 +++ phpdoc/en/reference/dom/functions/dom-domxpath-evaluate.xml Mon Dec 20 19:36:56 2004 @@ -1,26 +1,104 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> - <refentry id="function.dom-domxpath-evaluate"> - <refnamediv> - <refname>DOMXPath->evaluate</refname> - <refpurpose> - Evaluates the given XPath expression and returns a typed result - </refpurpose> - </refnamediv> - <refsect1> - &reftitle.description; - <classsynopsis> - <ooclass><classname>DOMXPath</classname></ooclass> - <methodsynopsis> - <type>mixed</type> - <methodname>evaluate</methodname> - <methodparam><type>string</type><parameter>expression</parameter></methodparam> - <methodparam choice="opt"><type>DOMNode</type><parameter>contextnode</parameter></methodparam> - </methodsynopsis> - </classsynopsis> - &warn.undocumented.func; - </refsect1> - </refentry> +<!-- $Revision: 1.2 $ --> +<refentry id="function.dom-domxpath-evaluate"> + <refnamediv> + <refname>DOMXPath->evaluate()</refname> + <refpurpose> + Evaluates the given XPath expression and returns a typed result if possible. + </refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <classsynopsis> + <ooclass><classname>DOMXPath</classname></ooclass> + <methodsynopsis> + <type>mixed</type> + <methodname>evaluate</methodname> + <methodparam><type>string</type><parameter>expression</parameter></methodparam> + <methodparam choice="opt"><type>DOMNode</type><parameter>contextnode</parameter></methodparam> + </methodsynopsis> + </classsynopsis> + <para> + Executes the given XPath <parameter>expression</parameter> and returns + a typed result if possible. + </para> + </refsect1> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>expression</parameter></term> + <listitem> + <para> + The XPath expression to execute. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>contextnode</parameter></term> + <listitem> + <para> + The optional <parameter>contextnode</parameter> can be specified for + doing relative XPath queries. By default, the queries are relative to + the root element. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Returns a typed result if possible or a <classname>DOMNodeList</classname> + containing all nodes matching the given XPath <parameter>expression</parameter>. + </para> + </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>Getting the count of all the english books</title> + <programlisting role="php"> +<![CDATA[ +<?php + +$doc = new DOMDocument; + +$doc->load('book.xml'); + +$xpath = new DOMXPath($doc); + +$tbody = $doc->getElementsByTagName('tbody')->item(0); + +// our query is relative to the tbody node +$query = 'count(row/entry[. = "en"])'; + +$entries = $xpath->evaluate($query, $tbody); +echo "There are $entries english books\n"; + +?> +]]> + </programlisting> + &example.outputs; + <screen> +<![CDATA[ +There are 2 english books +]]> + </screen> + </example> + </para> + </refsect1> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><xref linkend="function.dom-domxpath-query" /></member> + </simplelist> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: