dams Wed Jul 18 08:57:28 2001 EDT
Modified files:
/phpdoc/en/functions domxml.xml
Log:
Added role to programlistingturned ?> and -> to *>
Index: phpdoc/en/functions/domxml.xml
diff -u phpdoc/en/functions/domxml.xml:1.16 phpdoc/en/functions/domxml.xml:1.17
--- phpdoc/en/functions/domxml.xml:1.16 Mon Jul 16 07:33:01 2001
+++ phpdoc/en/functions/domxml.xml Wed Jul 18 08:57:28 2001
@@ -1,4 +1,4 @@
- <reference id="ref.domxml">
+?> <reference id="ref.domxml">
<title>DOM XML functions</title>
<titleabbrev>DOM XML</titleabbrev>
@@ -520,17 +520,17 @@
prints it. The other root node -- the comment -- is not returned.
<example>
<title>Retrieving root element</title>
- <programlisting>
+ <programlisting role="php">
<?php
-$xmlstr = "<?xml version='1.0' standalone='yes'?>
+$xmlstr = "<?xml version='1.0' standalone='yes'?>
<!DOCTYPE chapter SYSTEM '/share/sgml/Norman_Walsh/db3xml10/db3xml10.dtd'
[ <!ENTITY sp \"spanish\">
]>
-<!-- lsfj -->
+<!-- lsfj -->
<chapter language='en'><title language='en'>Title</title>
<para language='ge'>
&sp;
- <!-- comment -->
+ <!-- comment -->
<informaltable language='&sp;'>
<tgroup cols='3'>
<tbody>
@@ -549,10 +549,10 @@
exit;
}
-$root = $dom->root();
+$root = $dom->root();
/* or $root = domxml_root($dom); */
print_r($root);
-?>
+?>
</programlisting>
</example>
</para>
@@ -583,7 +583,7 @@
<para>
<example>
<title>Creating a simple HTML document header</title>
- <programlisting>
+ <programlisting role="php">
<?php
$doc = new_xmldoc("1.0");
$root = $doc->add_root("HTML");
@@ -701,15 +701,15 @@
the <function>set_attribute</function> function of the node class.
<example>
<title>Adding an attribute to an element</title>
- <programlisting>
+ <programlisting role="php">
<?php
$doc = new_xmldoc("1.0");
-$root = $doc->add_root("HTML");
-$head = $root->new_child("HEAD", "");
-$head->new_child("TITLE", "Hier der Titel");
-$head->set_attribute("Language", "ge");
-echo $doc->dumpmem();
-?>
+$root = $doc->add_root("HTML");
+$head = $root->new_child("HEAD", "");
+$head->new_child("TITLE", "Hier der Titel");
+$head->set_attribute("Language", "ge");
+echo $doc->dumpmem();
+?>
</programlisting>
</example>
</para>
@@ -741,15 +741,15 @@
the TITLE element.
<example>
<title>Adding an attribute to an element</title>
- <programlisting>
+ <programlisting role="php">
<?php
$doc = new_xmldoc("1.0");
-$root = $doc->add_root("HTML");
-$head = $root->new_child("HEAD", "");
-$head->new_child("TITLE", "Hier der Titel");
-$head->set_attribute("Language", "ge");
-$children = $head->children()
-?>
+$root = $doc->add_root("HTML");
+$head = $root->new_child("HEAD", "");
+$head->new_child("TITLE", "Hier der Titel");
+$head->set_attribute("Language", "ge");
+$children = $head->children()
+?>
</programlisting>
</example>
</para>