cvs: phpdoc /en/reference/simplexml/functions simplexml-element-attributes.xml simplexml-element-children.xml simplexml-element-xpath.xml
simplexml-import-dom.xml simplexml-load-file.xml simplexml-load-string.xml
| From: | Mehdi Achour | Date: | Mon, 15 Jan 2007 23:53:55 +0000 |
| Subject: | cvs: phpdoc /en/reference/simplexml/functions simplexml-element-attributes.xml simplexml-element-children.xml simplexml-element-xpath.xml simplexml-import-dom.xml simplexml-load-file.xml simplexml-load-string.xml |
||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969374825@lists.php.net to get a copy of this message | ||
didou Mon Jan 15 23:53:55 2007 UTC
Modified files:
/phpdoc/en/reference/simplexml/functions
simplexml-element-attributes.xml
simplexml-element-children.xml
simplexml-element-xpath.xml
simplexml-import-dom.xml
simplexml-load-file.xml
simplexml-load-string.xml
Log:
Fix whitespaces
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/simplexml/functions/simplexml-element-attributes.xml?r1=1.7&r2=1.8&diff_format=u Index: phpdoc/en/reference/simplexml/functions/simplexml-element-attributes.xml diff -u phpdoc/en/reference/simplexml/functions/simplexml-element-attributes.xml:1.7 phpdoc/en/reference/simplexml/functions/simplexml-element-attributes.xml:1.8 --- phpdoc/en/reference/simplexml/functions/simplexml-element-attributes.xml:1.7 Wed May 31 22:54:02 2006 +++ phpdoc/en/reference/simplexml/functions/simplexml-element-attributes.xml Mon Jan 15 23:53:55 2007 @@ -1,30 +1,28 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> - <refentry id='function.simplexml-element-attributes'> - <refnamediv> - <refname>SimpleXMLElement->attributes()</refname> - <refpurpose> - Identifies an element's attributes - </refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <classsynopsis> - <ooclass><classname>SimpleXMLElement</classname></ooclass> - <methodsynopsis> - <type>SimpleXMLElement</type><methodname>attributes</methodname> - <methodparam choice="opt"><type>string</type><parameter>ns</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>is_prefix</parameter></methodparam> - </methodsynopsis> - </classsynopsis> - <para> - This function provides the attributes and values defined within an xml tag. - </para> - &simplexml.iteration; - <para> - <example> - <title>Interpret an XML string</title> - <programlisting role="php"> +<!-- $Revision: 1.8 $ --> +<refentry id='function.simplexml-element-attributes'> + <refnamediv> + <refname>SimpleXMLElement->attributes()</refname> + <refpurpose>Identifies an element's attributes</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <classsynopsis> + <ooclass><classname>SimpleXMLElement</classname></ooclass> + <methodsynopsis> + <type>SimpleXMLElement</type><methodname>attributes</methodname> + <methodparam choice="opt"><type>string</type><parameter>ns</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>is_prefix</parameter></methodparam> + </methodsynopsis> + </classsynopsis> + <para> + This function provides the attributes and values defined within an xml tag. + </para> + &simplexml.iteration; + <para> + <example> + <title>Interpret an XML string</title> + <programlisting role="php"> <![CDATA[ <?php $string = <<<XML @@ -39,20 +37,20 @@ } ?> ]]> - </programlisting> - <para> - This script will display: - </para> - <screen> + </programlisting> + <para> + This script will display: + </para> + <screen> <![CDATA[ name="one" game="lonely" ]]> - </screen> - </example> - </para> - </refsect1> - </refentry> + </screen> + </example> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/simplexml/functions/simplexml-element-children.xml?r1=1.9&r2=1.10&diff_format=u Index: phpdoc/en/reference/simplexml/functions/simplexml-element-children.xml diff -u phpdoc/en/reference/simplexml/functions/simplexml-element-children.xml:1.9 phpdoc/en/reference/simplexml/functions/simplexml-element-children.xml:1.10 --- phpdoc/en/reference/simplexml/functions/simplexml-element-children.xml:1.9 Wed May 31 22:54:02 2006 +++ phpdoc/en/reference/simplexml/functions/simplexml-element-children.xml Mon Jan 15 23:53:55 2007 @@ -1,30 +1,28 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> - <refentry id='function.simplexml-element-children'> - <refnamediv> - <refname>SimpleXMLElement->children()</refname> - <refpurpose> - Finds children of given node - </refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <classsynopsis> - <ooclass><classname>SimpleXMLElement</classname></ooclass> - <methodsynopsis> - <type>SimpleXMLElement</type><methodname>children</methodname> - <methodparam choice="opt"><type>string</type><parameter>ns</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>is_prefix</parameter></methodparam> - </methodsynopsis> - </classsynopsis> - <para> - This method finds the children of the element of which it is a member. The result - follows normal iteration rules. - </para> - &simplexml.iteration; - <example> - <title>Traversing a <literal>children()</literal> pseudo-array</title> - <programlisting role="php"> +<!-- $Revision: 1.10 $ --> +<refentry id='function.simplexml-element-children'> + <refnamediv> + <refname>SimpleXMLElement->children()</refname> + <refpurpose>Finds children of given node</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <classsynopsis> + <ooclass><classname>SimpleXMLElement</classname></ooclass> + <methodsynopsis> + <type>SimpleXMLElement</type><methodname>children</methodname> + <methodparam choice="opt"><type>string</type><parameter>ns</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>is_prefix</parameter></methodparam> + </methodsynopsis> + </classsynopsis> + <para> + This method finds the children of the element of which it is a member. The result + follows normal iteration rules. + </para> + &simplexml.iteration; + <example> + <title>Traversing a <literal>children()</literal> pseudo-array</title> + <programlisting role="php"> <![CDATA[ <?php $xml = new SimpleXMLElement( @@ -44,7 +42,7 @@ foreach ($second_gen->children() as $third_gen) { echo ' who begot a ' . $third_gen['role'] . ';'; - + foreach ($third_gen->children() as $fourth_gen) { echo ' and that ' . $third_gen['role'] . ' begot a ' . $fourth_gen['role']; @@ -53,19 +51,19 @@ } ?> ]]> - </programlisting> - <simpara> - This script will output: - </simpara> - <screen> + </programlisting> + <simpara> + This script will output: + </simpara> + <screen> <![CDATA[ The person begot a son who begot a daughter; The person begot a daughter who begot a son; and that son begot a son ]]> - </screen> - </example> - </refsect1> - </refentry> + </screen> + </example> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/simplexml/functions/simplexml-element-xpath.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc/en/reference/simplexml/functions/simplexml-element-xpath.xml diff -u phpdoc/en/reference/simplexml/functions/simplexml-element-xpath.xml:1.5 phpdoc/en/reference/simplexml/functions/simplexml-element-xpath.xml:1.6 --- phpdoc/en/reference/simplexml/functions/simplexml-element-xpath.xml:1.5 Wed May 31 22:54:02 2006 +++ phpdoc/en/reference/simplexml/functions/simplexml-element-xpath.xml Mon Jan 15 23:53:55 2007 @@ -1,30 +1,28 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> - <refentry id='function.simplexml-element-xpath'> - <refnamediv> - <refname>SimpleXMLElement->xpath()</refname> - <refpurpose> - Runs XPath query on XML data - </refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <classsynopsis> - <ooclass><classname>SimpleXMLElement</classname></ooclass> - <methodsynopsis> - <type>array</type><methodname>xpath</methodname> - <methodparam><type>string</type><parameter>path</parameter></methodparam> - </methodsynopsis> - </classsynopsis> - <para> - The <literal>xpath</literal> method searches the SimpleXML node for - children matching the <acronym>XPath</acronym> <parameter>path</parameter>. - It always returns an <type>array</type> of SimpleXMLElement objects. - </para> - <para> - <example> - <title>Xpath</title> - <programlisting role="php"> +<!-- $Revision: 1.6 $ --> +<refentry id='function.simplexml-element-xpath'> + <refnamediv> + <refname>SimpleXMLElement->xpath()</refname> + <refpurpose>Runs XPath query on XML data</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <classsynopsis> + <ooclass><classname>SimpleXMLElement</classname></ooclass> + <methodsynopsis> + <type>array</type><methodname>xpath</methodname> + <methodparam><type>string</type><parameter>path</parameter></methodparam> + </methodsynopsis> + </classsynopsis> + <para> + The <literal>xpath</literal> method searches the SimpleXML node for + children matching the <acronym>XPath</acronym> <parameter>path</parameter>. + It always returns an <type>array</type> of SimpleXMLElement objects. + </para> + <para> + <example> + <title>Xpath</title> + <programlisting role="php"> <![CDATA[ <?php $string = <<<XML @@ -56,25 +54,25 @@ } ?> ]]> - </programlisting> - <para> - This script will display: - </para> - <screen> + </programlisting> + <para> + This script will display: + </para> + <screen> <![CDATA[ /a/b/c: text /a/b/c: stuff b/c: text b/c: stuff ]]> - </screen> - <simpara> - Notice that the two results are equal. - </simpara> - </example> - </para> - </refsect1> - </refentry> + </screen> + <simpara> + Notice that the two results are equal. + </simpara> + </example> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/simplexml/functions/simplexml-import-dom.xml?r1=1.8&r2=1.9&diff_format=u Index: phpdoc/en/reference/simplexml/functions/simplexml-import-dom.xml diff -u phpdoc/en/reference/simplexml/functions/simplexml-import-dom.xml:1.8 phpdoc/en/reference/simplexml/functions/simplexml-import-dom.xml:1.9 --- phpdoc/en/reference/simplexml/functions/simplexml-import-dom.xml:1.8 Fri Nov 12 12:22:04 2004 +++ phpdoc/en/reference/simplexml/functions/simplexml-import-dom.xml Mon Jan 15 23:53:55 2007 @@ -1,32 +1,29 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> - <refentry id='function.simplexml-import-dom'> - <refnamediv> - <refname>simplexml_import_dom</refname> - <refpurpose> - Get a <literal>SimpleXMLElement</literal> object from a - DOM node. - </refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>SimpleXMLElement</type><methodname>simplexml_import_dom</methodname> - <methodparam><type>DOMNode</type><parameter>node</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>class_name</parameter></methodparam> - </methodsynopsis> - <para> - <!-- same with this link --> - This function takes a node of a <link linkend="ref.dom">DOM</link> - document and makes it into a SimpleXML node. This new object can - then be used as a native SimpleXML element. If any errors occur, - it returns &false;. - </para> - <!-- php5 DOM isn't documented; this depends on it... :| --> - <!-- TODO: Document class_name and when it appeared. --> - <example> - <title>Import DOM</title> - <programlisting role="php"> +<!-- $Revision: 1.9 $ --> +<refentry id='function.simplexml-import-dom'> + <refnamediv> + <refname>simplexml_import_dom</refname> + <refpurpose>Get a <literal>SimpleXMLElement</literal> object from a DOM node.</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <methodsynopsis> + <type>SimpleXMLElement</type><methodname>simplexml_import_dom</methodname> + <methodparam><type>DOMNode</type><parameter>node</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>class_name</parameter></methodparam> + </methodsynopsis> + <para> + <!-- same with this link --> + This function takes a node of a <link linkend="ref.dom">DOM</link> + document and makes it into a SimpleXML node. This new object can + then be used as a native SimpleXML element. If any errors occur, + it returns &false;. + </para> + <!-- php5 DOM isn't documented; this depends on it... :| --> + <!-- TODO: Document class_name and when it appeared. --> + <example> + <title>Import DOM</title> + <programlisting role="php"> <![CDATA[ <?php $dom = new domDocument; @@ -41,14 +38,14 @@ echo $s->book[0]->title; // blah ?> ]]> - </programlisting> - </example> - <para> - See also - <function>dom_import_simplexml</function>. - </para> - </refsect1> - </refentry> + </programlisting> + </example> + <para> + See also + <function>dom_import_simplexml</function>. + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/simplexml/functions/simplexml-load-file.xml?r1=1.14&r2=1.15&diff_format=u Index: phpdoc/en/reference/simplexml/functions/simplexml-load-file.xml diff -u phpdoc/en/reference/simplexml/functions/simplexml-load-file.xml:1.14 phpdoc/en/reference/simplexml/functions/simplexml-load-file.xml:1.15 --- phpdoc/en/reference/simplexml/functions/simplexml-load-file.xml:1.14 Thu Jun 22 03:04:35 2006 +++ phpdoc/en/reference/simplexml/functions/simplexml-load-file.xml Mon Jan 15 23:53:55 2007 @@ -1,53 +1,53 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.14 $ --> - <refentry id='function.simplexml-load-file'> - <refnamediv> - <refname>simplexml_load_file</refname> - <refpurpose> - Interprets an XML file into an object - </refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>object</type><methodname>simplexml_load_file</methodname> - <methodparam><type>string</type><parameter>filename</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>class_name</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>options</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>ns</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>is_prefix</parameter></methodparam> - </methodsynopsis> - <para> - This function will convert the well-formed XML document in the file - specified by <parameter>filename</parameter> to an <type>object</type> - of class <type>SimpleXMLElement</type>. If any errors occur during file - access or interpretation, the function returns &false;. - </para> - <para> - You may use the optional <parameter>class_name</parameter> parameter so - that <function>simplexml_load_file</function> will return an object of - the specified class. That class should extend the - <type>SimpleXMLElement</type> class. - </para> - <para> - Since PHP 5.1.0 and Libxml 2.6.0, you may also use the - <parameter>options</parameter> parameter to specify <link - linkend="libxml.constants">additional Libxml parameters</link>. - </para> - <note> - <para> - Libxml 2 unescapes the URI, so if you want to pass e.g. - <literal>b&c</literal> as the URI parameter <literal>a</literal>, - you have to call - <literal>simplexml_load_file(rawurlencode('http://example.com/?a=' . - urlencode('b&c')))</literal>. Since PHP 5.1.0 you don't need to do - this because PHP will do it for you. - </para> - </note> - <para> - <example> - <title>Interpret an XML document</title> - <programlisting role="php"> +<!-- $Revision: 1.15 $ --> +<refentry id='function.simplexml-load-file'> + <refnamediv> + <refname>simplexml_load_file</refname> + <refpurpose> + Interprets an XML file into an object + </refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <methodsynopsis> + <type>object</type><methodname>simplexml_load_file</methodname> + <methodparam><type>string</type><parameter>filename</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>class_name</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>options</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>ns</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>is_prefix</parameter></methodparam> + </methodsynopsis> + <para> + This function will convert the well-formed XML document in the file + specified by <parameter>filename</parameter> to an <type>object</type> + of class <type>SimpleXMLElement</type>. If any errors occur during file + access or interpretation, the function returns &false;. + </para> + <para> + You may use the optional <parameter>class_name</parameter> parameter so + that <function>simplexml_load_file</function> will return an object of + the specified class. That class should extend the + <type>SimpleXMLElement</type> class. + </para> + <para> + Since PHP 5.1.0 and Libxml 2.6.0, you may also use the + <parameter>options</parameter> parameter to specify <link + linkend="libxml.constants">additional Libxml parameters</link>. + </para> + <note> + <para> + Libxml 2 unescapes the URI, so if you want to pass e.g. + <literal>b&c</literal> as the URI parameter <literal>a</literal>, + you have to call + <literal>simplexml_load_file(rawurlencode('http://example.com/?a=' . + urlencode('b&c')))</literal>. Since PHP 5.1.0 you don't need to do + this because PHP will do it for you. + </para> + </note> + <para> + <example> + <title>Interpret an XML document</title> + <programlisting role="php"> <![CDATA[ <?php // The file test.xml contains an XML document with a root element @@ -62,11 +62,11 @@ } ?> ]]> - </programlisting> - <para> - This script will display, on success: - </para> - <screen> + </programlisting> + <para> + This script will display, on success: + </para> + <screen> <![CDATA[ SimpleXMLElement Object ( @@ -74,25 +74,25 @@ ... ) ]]> - </screen> - <simpara> - At this point, you can go about using <literal>$xml->title</literal> - and any other elements. - </simpara> - </example> - </para> - </refsect1> + </screen> + <simpara> + At this point, you can go about using <literal>$xml->title</literal> + and any other elements. + </simpara> + </example> + </para> + </refsect1> - <refsect1 role="seealso"> - &reftitle.seealso; - <para> - <simplelist> - <member><xref linkend="function.simplexml-load-string" /></member> - <member><xref linkend="function.simplexml-element-construct" /></member> - </simplelist> - </para> - </refsect1> - </refentry> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><xref linkend="function.simplexml-load-string" /></member> + <member><xref linkend="function.simplexml-element-construct" /></member> + </simplelist> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/simplexml/functions/simplexml-load-string.xml?r1=1.11&r2=1.12&diff_format=u Index: phpdoc/en/reference/simplexml/functions/simplexml-load-string.xml diff -u phpdoc/en/reference/simplexml/functions/simplexml-load-string.xml:1.11 phpdoc/en/reference/simplexml/functions/simplexml-load-string.xml:1.12 --- phpdoc/en/reference/simplexml/functions/simplexml-load-string.xml:1.11 Thu Jun 22 03:04:35 2006 +++ phpdoc/en/reference/simplexml/functions/simplexml-load-string.xml Mon Jan 15 23:53:55 2007 @@ -1,43 +1,43 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.11 $ --> - <refentry id='function.simplexml-load-string'> - <refnamediv> - <refname>simplexml_load_string</refname> - <refpurpose> - Interprets a string of XML into an object - </refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>object</type><methodname>simplexml_load_string</methodname> - <methodparam><type>string</type><parameter>data</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>class_name</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>options</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>ns</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>is_prefix</parameter></methodparam> - </methodsynopsis> - <para> - This function will take the well-formed xml string - <parameter>data</parameter> and return an <type>object</type> of class - <type>SimpleXMLElement</type> with properties containing the data held - within the xml document. If any errors occur, it returns &false;. - </para> - <para> - You may use the optional <parameter>class_name</parameter> parameter so - that <function>simplexml_load_string</function> will return an object of - the specified class. That class should extend the - <type>SimpleXMLElement</type> class. - </para> - <para> - Since PHP 5.1.0 and Libxml 2.6.0, you may also use the - <parameter>options</parameter> parameter to specify <link - linkend="libxml.constants">additional Libxml parameters</link>. - </para> - <para> - <example> - <title>Interpret an XML string</title> - <programlisting role="php"> +<!-- $Revision: 1.12 $ --> +<refentry id='function.simplexml-load-string'> + <refnamediv> + <refname>simplexml_load_string</refname> + <refpurpose> + Interprets a string of XML into an object + </refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <methodsynopsis> + <type>object</type><methodname>simplexml_load_string</methodname> + <methodparam><type>string</type><parameter>data</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>class_name</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>options</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>ns</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>is_prefix</parameter></methodparam> + </methodsynopsis> + <para> + This function will take the well-formed xml string + <parameter>data</parameter> and return an <type>object</type> of class + <type>SimpleXMLElement</type> with properties containing the data held + within the xml document. If any errors occur, it returns &false;. + </para> + <para> + You may use the optional <parameter>class_name</parameter> parameter so + that <function>simplexml_load_string</function> will return an object of + the specified class. That class should extend the + <type>SimpleXMLElement</type> class. + </para> + <para> + Since PHP 5.1.0 and Libxml 2.6.0, you may also use the + <parameter>options</parameter> parameter to specify <link + linkend="libxml.constants">additional Libxml parameters</link>. + </para> + <para> + <example> + <title>Interpret an XML string</title> + <programlisting role="php"> <![CDATA[ <?php $string = <<<XML @@ -57,11 +57,11 @@ var_dump($xml); ?> ]]> - </programlisting> - <para> - This script will display: - </para> - <screen> + </programlisting> + <para> + This script will display: + </para> + <screen> <![CDATA[ SimpleXMLElement Object ( @@ -72,25 +72,25 @@ I know that's the answer -- but what's the question? ) ]]> - </screen> - <simpara> - At this point, you can go about using <literal>$xml->body</literal> - and such. - </simpara> - </example> - </para> - </refsect1> + </screen> + <simpara> + At this point, you can go about using <literal>$xml->body</literal> + and such. + </simpara> + </example> + </para> + </refsect1> - <refsect1 role="seealso"> - &reftitle.seealso; - <para> - <simplelist> - <member><xref linkend="function.simplexml-load-file" /></member> - <member><xref linkend="function.simplexml-element-construct" /></member> - </simplelist> - </para> - </refsect1> - </refentry> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><xref linkend="function.simplexml-load-file" /></member> + <member><xref linkend="function.simplexml-element-construct" /></member> + </simplelist> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables:
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/simplexml/functions/simplexml-element-attributes.xml?r1=1.7&r2=1.8&diff_format=u Index: phpdoc/en/reference/simplexml/functions/simplexml-element-attributes.xml diff -u phpdoc/en/reference/simplexml/functions/simplexml-element-attributes.xml:1.7 phpdoc/en/reference/simplexml/functions/simplexml-element-attributes.xml:1.8 --- phpdoc/en/reference/simplexml/functions/simplexml-element-attributes.xml:1.7 Wed May 31 22:54:02 2006 +++ phpdoc/en/reference/simplexml/functions/simplexml-element-attributes.xml Mon Jan 15 23:53:55 2007 @@ -1,30 +1,28 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> - <refentry id='function.simplexml-element-attributes'> - <refnamediv> - <refname>SimpleXMLElement->attributes()</refname> - <refpurpose> - Identifies an element's attributes - </refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <classsynopsis> - <ooclass><classname>SimpleXMLElement</classname></ooclass> - <methodsynopsis> - <type>SimpleXMLElement</type><methodname>attributes</methodname> - <methodparam choice="opt"><type>string</type><parameter>ns</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>is_prefix</parameter></methodparam> - </methodsynopsis> - </classsynopsis> - <para> - This function provides the attributes and values defined within an xml tag. - </para> - &simplexml.iteration; - <para> - <example> - <title>Interpret an XML string</title> - <programlisting role="php"> +<!-- $Revision: 1.8 $ --> +<refentry id='function.simplexml-element-attributes'> + <refnamediv> + <refname>SimpleXMLElement->attributes()</refname> + <refpurpose>Identifies an element's attributes</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <classsynopsis> + <ooclass><classname>SimpleXMLElement</classname></ooclass> + <methodsynopsis> + <type>SimpleXMLElement</type><methodname>attributes</methodname> + <methodparam choice="opt"><type>string</type><parameter>ns</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>is_prefix</parameter></methodparam> + </methodsynopsis> + </classsynopsis> + <para> + This function provides the attributes and values defined within an xml tag. + </para> + &simplexml.iteration; + <para> + <example> + <title>Interpret an XML string</title> + <programlisting role="php"> <![CDATA[ <?php $string = <<<XML @@ -39,20 +37,20 @@ } ?> ]]> - </programlisting> - <para> - This script will display: - </para> - <screen> + </programlisting> + <para> + This script will display: + </para> + <screen> <![CDATA[ name="one" game="lonely" ]]> - </screen> - </example> - </para> - </refsect1> - </refentry> + </screen> + </example> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/simplexml/functions/simplexml-element-children.xml?r1=1.9&r2=1.10&diff_format=u Index: phpdoc/en/reference/simplexml/functions/simplexml-element-children.xml diff -u phpdoc/en/reference/simplexml/functions/simplexml-element-children.xml:1.9 phpdoc/en/reference/simplexml/functions/simplexml-element-children.xml:1.10 --- phpdoc/en/reference/simplexml/functions/simplexml-element-children.xml:1.9 Wed May 31 22:54:02 2006 +++ phpdoc/en/reference/simplexml/functions/simplexml-element-children.xml Mon Jan 15 23:53:55 2007 @@ -1,30 +1,28 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> - <refentry id='function.simplexml-element-children'> - <refnamediv> - <refname>SimpleXMLElement->children()</refname> - <refpurpose> - Finds children of given node - </refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <classsynopsis> - <ooclass><classname>SimpleXMLElement</classname></ooclass> - <methodsynopsis> - <type>SimpleXMLElement</type><methodname>children</methodname> - <methodparam choice="opt"><type>string</type><parameter>ns</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>is_prefix</parameter></methodparam> - </methodsynopsis> - </classsynopsis> - <para> - This method finds the children of the element of which it is a member. The result - follows normal iteration rules. - </para> - &simplexml.iteration; - <example> - <title>Traversing a <literal>children()</literal> pseudo-array</title> - <programlisting role="php"> +<!-- $Revision: 1.10 $ --> +<refentry id='function.simplexml-element-children'> + <refnamediv> + <refname>SimpleXMLElement->children()</refname> + <refpurpose>Finds children of given node</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <classsynopsis> + <ooclass><classname>SimpleXMLElement</classname></ooclass> + <methodsynopsis> + <type>SimpleXMLElement</type><methodname>children</methodname> + <methodparam choice="opt"><type>string</type><parameter>ns</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>is_prefix</parameter></methodparam> + </methodsynopsis> + </classsynopsis> + <para> + This method finds the children of the element of which it is a member. The result + follows normal iteration rules. + </para> + &simplexml.iteration; + <example> + <title>Traversing a <literal>children()</literal> pseudo-array</title> + <programlisting role="php"> <![CDATA[ <?php $xml = new SimpleXMLElement( @@ -44,7 +42,7 @@ foreach ($second_gen->children() as $third_gen) { echo ' who begot a ' . $third_gen['role'] . ';'; - + foreach ($third_gen->children() as $fourth_gen) { echo ' and that ' . $third_gen['role'] . ' begot a ' . $fourth_gen['role']; @@ -53,19 +51,19 @@ } ?> ]]> - </programlisting> - <simpara> - This script will output: - </simpara> - <screen> + </programlisting> + <simpara> + This script will output: + </simpara> + <screen> <![CDATA[ The person begot a son who begot a daughter; The person begot a daughter who begot a son; and that son begot a son ]]> - </screen> - </example> - </refsect1> - </refentry> + </screen> + </example> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/simplexml/functions/simplexml-element-xpath.xml?r1=1.5&r2=1.6&diff_format=u Index: phpdoc/en/reference/simplexml/functions/simplexml-element-xpath.xml diff -u phpdoc/en/reference/simplexml/functions/simplexml-element-xpath.xml:1.5 phpdoc/en/reference/simplexml/functions/simplexml-element-xpath.xml:1.6 --- phpdoc/en/reference/simplexml/functions/simplexml-element-xpath.xml:1.5 Wed May 31 22:54:02 2006 +++ phpdoc/en/reference/simplexml/functions/simplexml-element-xpath.xml Mon Jan 15 23:53:55 2007 @@ -1,30 +1,28 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> - <refentry id='function.simplexml-element-xpath'> - <refnamediv> - <refname>SimpleXMLElement->xpath()</refname> - <refpurpose> - Runs XPath query on XML data - </refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <classsynopsis> - <ooclass><classname>SimpleXMLElement</classname></ooclass> - <methodsynopsis> - <type>array</type><methodname>xpath</methodname> - <methodparam><type>string</type><parameter>path</parameter></methodparam> - </methodsynopsis> - </classsynopsis> - <para> - The <literal>xpath</literal> method searches the SimpleXML node for - children matching the <acronym>XPath</acronym> <parameter>path</parameter>. - It always returns an <type>array</type> of SimpleXMLElement objects. - </para> - <para> - <example> - <title>Xpath</title> - <programlisting role="php"> +<!-- $Revision: 1.6 $ --> +<refentry id='function.simplexml-element-xpath'> + <refnamediv> + <refname>SimpleXMLElement->xpath()</refname> + <refpurpose>Runs XPath query on XML data</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <classsynopsis> + <ooclass><classname>SimpleXMLElement</classname></ooclass> + <methodsynopsis> + <type>array</type><methodname>xpath</methodname> + <methodparam><type>string</type><parameter>path</parameter></methodparam> + </methodsynopsis> + </classsynopsis> + <para> + The <literal>xpath</literal> method searches the SimpleXML node for + children matching the <acronym>XPath</acronym> <parameter>path</parameter>. + It always returns an <type>array</type> of SimpleXMLElement objects. + </para> + <para> + <example> + <title>Xpath</title> + <programlisting role="php"> <![CDATA[ <?php $string = <<<XML @@ -56,25 +54,25 @@ } ?> ]]> - </programlisting> - <para> - This script will display: - </para> - <screen> + </programlisting> + <para> + This script will display: + </para> + <screen> <![CDATA[ /a/b/c: text /a/b/c: stuff b/c: text b/c: stuff ]]> - </screen> - <simpara> - Notice that the two results are equal. - </simpara> - </example> - </para> - </refsect1> - </refentry> + </screen> + <simpara> + Notice that the two results are equal. + </simpara> + </example> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/simplexml/functions/simplexml-import-dom.xml?r1=1.8&r2=1.9&diff_format=u Index: phpdoc/en/reference/simplexml/functions/simplexml-import-dom.xml diff -u phpdoc/en/reference/simplexml/functions/simplexml-import-dom.xml:1.8 phpdoc/en/reference/simplexml/functions/simplexml-import-dom.xml:1.9 --- phpdoc/en/reference/simplexml/functions/simplexml-import-dom.xml:1.8 Fri Nov 12 12:22:04 2004 +++ phpdoc/en/reference/simplexml/functions/simplexml-import-dom.xml Mon Jan 15 23:53:55 2007 @@ -1,32 +1,29 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> - <refentry id='function.simplexml-import-dom'> - <refnamediv> - <refname>simplexml_import_dom</refname> - <refpurpose> - Get a <literal>SimpleXMLElement</literal> object from a - DOM node. - </refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>SimpleXMLElement</type><methodname>simplexml_import_dom</methodname> - <methodparam><type>DOMNode</type><parameter>node</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>class_name</parameter></methodparam> - </methodsynopsis> - <para> - <!-- same with this link --> - This function takes a node of a <link linkend="ref.dom">DOM</link> - document and makes it into a SimpleXML node. This new object can - then be used as a native SimpleXML element. If any errors occur, - it returns &false;. - </para> - <!-- php5 DOM isn't documented; this depends on it... :| --> - <!-- TODO: Document class_name and when it appeared. --> - <example> - <title>Import DOM</title> - <programlisting role="php"> +<!-- $Revision: 1.9 $ --> +<refentry id='function.simplexml-import-dom'> + <refnamediv> + <refname>simplexml_import_dom</refname> + <refpurpose>Get a <literal>SimpleXMLElement</literal> object from a DOM node.</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <methodsynopsis> + <type>SimpleXMLElement</type><methodname>simplexml_import_dom</methodname> + <methodparam><type>DOMNode</type><parameter>node</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>class_name</parameter></methodparam> + </methodsynopsis> + <para> + <!-- same with this link --> + This function takes a node of a <link linkend="ref.dom">DOM</link> + document and makes it into a SimpleXML node. This new object can + then be used as a native SimpleXML element. If any errors occur, + it returns &false;. + </para> + <!-- php5 DOM isn't documented; this depends on it... :| --> + <!-- TODO: Document class_name and when it appeared. --> + <example> + <title>Import DOM</title> + <programlisting role="php"> <![CDATA[ <?php $dom = new domDocument; @@ -41,14 +38,14 @@ echo $s->book[0]->title; // blah ?> ]]> - </programlisting> - </example> - <para> - See also - <function>dom_import_simplexml</function>. - </para> - </refsect1> - </refentry> + </programlisting> + </example> + <para> + See also + <function>dom_import_simplexml</function>. + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/simplexml/functions/simplexml-load-file.xml?r1=1.14&r2=1.15&diff_format=u Index: phpdoc/en/reference/simplexml/functions/simplexml-load-file.xml diff -u phpdoc/en/reference/simplexml/functions/simplexml-load-file.xml:1.14 phpdoc/en/reference/simplexml/functions/simplexml-load-file.xml:1.15 --- phpdoc/en/reference/simplexml/functions/simplexml-load-file.xml:1.14 Thu Jun 22 03:04:35 2006 +++ phpdoc/en/reference/simplexml/functions/simplexml-load-file.xml Mon Jan 15 23:53:55 2007 @@ -1,53 +1,53 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.14 $ --> - <refentry id='function.simplexml-load-file'> - <refnamediv> - <refname>simplexml_load_file</refname> - <refpurpose> - Interprets an XML file into an object - </refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>object</type><methodname>simplexml_load_file</methodname> - <methodparam><type>string</type><parameter>filename</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>class_name</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>options</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>ns</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>is_prefix</parameter></methodparam> - </methodsynopsis> - <para> - This function will convert the well-formed XML document in the file - specified by <parameter>filename</parameter> to an <type>object</type> - of class <type>SimpleXMLElement</type>. If any errors occur during file - access or interpretation, the function returns &false;. - </para> - <para> - You may use the optional <parameter>class_name</parameter> parameter so - that <function>simplexml_load_file</function> will return an object of - the specified class. That class should extend the - <type>SimpleXMLElement</type> class. - </para> - <para> - Since PHP 5.1.0 and Libxml 2.6.0, you may also use the - <parameter>options</parameter> parameter to specify <link - linkend="libxml.constants">additional Libxml parameters</link>. - </para> - <note> - <para> - Libxml 2 unescapes the URI, so if you want to pass e.g. - <literal>b&c</literal> as the URI parameter <literal>a</literal>, - you have to call - <literal>simplexml_load_file(rawurlencode('http://example.com/?a=' . - urlencode('b&c')))</literal>. Since PHP 5.1.0 you don't need to do - this because PHP will do it for you. - </para> - </note> - <para> - <example> - <title>Interpret an XML document</title> - <programlisting role="php"> +<!-- $Revision: 1.15 $ --> +<refentry id='function.simplexml-load-file'> + <refnamediv> + <refname>simplexml_load_file</refname> + <refpurpose> + Interprets an XML file into an object + </refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <methodsynopsis> + <type>object</type><methodname>simplexml_load_file</methodname> + <methodparam><type>string</type><parameter>filename</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>class_name</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>options</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>ns</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>is_prefix</parameter></methodparam> + </methodsynopsis> + <para> + This function will convert the well-formed XML document in the file + specified by <parameter>filename</parameter> to an <type>object</type> + of class <type>SimpleXMLElement</type>. If any errors occur during file + access or interpretation, the function returns &false;. + </para> + <para> + You may use the optional <parameter>class_name</parameter> parameter so + that <function>simplexml_load_file</function> will return an object of + the specified class. That class should extend the + <type>SimpleXMLElement</type> class. + </para> + <para> + Since PHP 5.1.0 and Libxml 2.6.0, you may also use the + <parameter>options</parameter> parameter to specify <link + linkend="libxml.constants">additional Libxml parameters</link>. + </para> + <note> + <para> + Libxml 2 unescapes the URI, so if you want to pass e.g. + <literal>b&c</literal> as the URI parameter <literal>a</literal>, + you have to call + <literal>simplexml_load_file(rawurlencode('http://example.com/?a=' . + urlencode('b&c')))</literal>. Since PHP 5.1.0 you don't need to do + this because PHP will do it for you. + </para> + </note> + <para> + <example> + <title>Interpret an XML document</title> + <programlisting role="php"> <![CDATA[ <?php // The file test.xml contains an XML document with a root element @@ -62,11 +62,11 @@ } ?> ]]> - </programlisting> - <para> - This script will display, on success: - </para> - <screen> + </programlisting> + <para> + This script will display, on success: + </para> + <screen> <![CDATA[ SimpleXMLElement Object ( @@ -74,25 +74,25 @@ ... ) ]]> - </screen> - <simpara> - At this point, you can go about using <literal>$xml->title</literal> - and any other elements. - </simpara> - </example> - </para> - </refsect1> + </screen> + <simpara> + At this point, you can go about using <literal>$xml->title</literal> + and any other elements. + </simpara> + </example> + </para> + </refsect1> - <refsect1 role="seealso"> - &reftitle.seealso; - <para> - <simplelist> - <member><xref linkend="function.simplexml-load-string" /></member> - <member><xref linkend="function.simplexml-element-construct" /></member> - </simplelist> - </para> - </refsect1> - </refentry> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><xref linkend="function.simplexml-load-string" /></member> + <member><xref linkend="function.simplexml-element-construct" /></member> + </simplelist> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/simplexml/functions/simplexml-load-string.xml?r1=1.11&r2=1.12&diff_format=u Index: phpdoc/en/reference/simplexml/functions/simplexml-load-string.xml diff -u phpdoc/en/reference/simplexml/functions/simplexml-load-string.xml:1.11 phpdoc/en/reference/simplexml/functions/simplexml-load-string.xml:1.12 --- phpdoc/en/reference/simplexml/functions/simplexml-load-string.xml:1.11 Thu Jun 22 03:04:35 2006 +++ phpdoc/en/reference/simplexml/functions/simplexml-load-string.xml Mon Jan 15 23:53:55 2007 @@ -1,43 +1,43 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.11 $ --> - <refentry id='function.simplexml-load-string'> - <refnamediv> - <refname>simplexml_load_string</refname> - <refpurpose> - Interprets a string of XML into an object - </refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>object</type><methodname>simplexml_load_string</methodname> - <methodparam><type>string</type><parameter>data</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>class_name</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>options</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>ns</parameter></methodparam> - <methodparam choice="opt"><type>bool</type><parameter>is_prefix</parameter></methodparam> - </methodsynopsis> - <para> - This function will take the well-formed xml string - <parameter>data</parameter> and return an <type>object</type> of class - <type>SimpleXMLElement</type> with properties containing the data held - within the xml document. If any errors occur, it returns &false;. - </para> - <para> - You may use the optional <parameter>class_name</parameter> parameter so - that <function>simplexml_load_string</function> will return an object of - the specified class. That class should extend the - <type>SimpleXMLElement</type> class. - </para> - <para> - Since PHP 5.1.0 and Libxml 2.6.0, you may also use the - <parameter>options</parameter> parameter to specify <link - linkend="libxml.constants">additional Libxml parameters</link>. - </para> - <para> - <example> - <title>Interpret an XML string</title> - <programlisting role="php"> +<!-- $Revision: 1.12 $ --> +<refentry id='function.simplexml-load-string'> + <refnamediv> + <refname>simplexml_load_string</refname> + <refpurpose> + Interprets a string of XML into an object + </refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <methodsynopsis> + <type>object</type><methodname>simplexml_load_string</methodname> + <methodparam><type>string</type><parameter>data</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>class_name</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>options</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>ns</parameter></methodparam> + <methodparam choice="opt"><type>bool</type><parameter>is_prefix</parameter></methodparam> + </methodsynopsis> + <para> + This function will take the well-formed xml string + <parameter>data</parameter> and return an <type>object</type> of class + <type>SimpleXMLElement</type> with properties containing the data held + within the xml document. If any errors occur, it returns &false;. + </para> + <para> + You may use the optional <parameter>class_name</parameter> parameter so + that <function>simplexml_load_string</function> will return an object of + the specified class. That class should extend the + <type>SimpleXMLElement</type> class. + </para> + <para> + Since PHP 5.1.0 and Libxml 2.6.0, you may also use the + <parameter>options</parameter> parameter to specify <link + linkend="libxml.constants">additional Libxml parameters</link>. + </para> + <para> + <example> + <title>Interpret an XML string</title> + <programlisting role="php"> <![CDATA[ <?php $string = <<<XML @@ -57,11 +57,11 @@ var_dump($xml); ?> ]]> - </programlisting> - <para> - This script will display: - </para> - <screen> + </programlisting> + <para> + This script will display: + </para> + <screen> <![CDATA[ SimpleXMLElement Object ( @@ -72,25 +72,25 @@ I know that's the answer -- but what's the question? ) ]]> - </screen> - <simpara> - At this point, you can go about using <literal>$xml->body</literal> - and such. - </simpara> - </example> - </para> - </refsect1> + </screen> + <simpara> + At this point, you can go about using <literal>$xml->body</literal> + and such. + </simpara> + </example> + </para> + </refsect1> - <refsect1 role="seealso"> - &reftitle.seealso; - <para> - <simplelist> - <member><xref linkend="function.simplexml-load-file" /></member> - <member><xref linkend="function.simplexml-element-construct" /></member> - </simplelist> - </para> - </refsect1> - </refentry> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><xref linkend="function.simplexml-load-file" /></member> + <member><xref linkend="function.simplexml-element-construct" /></member> + </simplelist> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: