Added XML tag to examples so that they are well-formed XML

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@212853 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Ben Ramsey 2006-05-11 15:13:27 +00:00
parent b0d382db3d
commit cc64e88692
2 changed files with 5 additions and 2 deletions

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.2 $ -->
<!-- $Revision: 1.3 $ -->
<refentry id='function.simplexml-element-getDocNamespaces'>
<refnamediv>
<refname>SimpleXMLElement->getDocNamespaces</refname>
@ -53,6 +53,7 @@
<?php
$xml = <<<XML
<?xml version="1.0" standalone="yes"?>
<people xmlns:p="http://example.org/ns">
<p:person id="1">John Doe</p:person>
<p:person id="2">Susie Q. Public</p:person>
@ -77,6 +78,7 @@ var_dump($namespaces);
<?php
$xml = <<<XML
<?xml version="1.0" standalone="yes"?>
<people xmlns:p="http://example.org/ns" xmlns:t="http://example.org/test">
<p:person t:id="1">John Doe</p:person>
<p:person t:id="2" a:addr="123 Street" xmlns:a="http://example.org/addr">

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.2 $ -->
<!-- $Revision: 1.3 $ -->
<refentry id='function.simplexml-element-getNamespaces'>
<refnamediv>
<refname>SimpleXMLElement->getNamespaces</refname>
@ -53,6 +53,7 @@
<?php
$xml = <<<XML
<?xml version="1.0" standalone="yes"?>
<people xmlns:p="http://example.org/ns" xmlns:t="http://example.org/test">
<p:person id="1">John Doe</p:person>
<p:person id="2">Susie Q. Public</p:person>