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">
+?&gt; <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">
 &lt;?php
-$xmlstr = "&lt;?xml version='1.0' standalone='yes'?>
+$xmlstr = "&lt;?xml version='1.0' standalone='yes'?&gt;
 &lt;!DOCTYPE chapter SYSTEM '/share/sgml/Norman_Walsh/db3xml10/db3xml10.dtd'
 [ &lt;!ENTITY sp \"spanish\">
 ]>
-&lt;!-- lsfj  -->
+&lt;!-- lsfj  --&gt;
 &lt;chapter language='en'>&lt;title language='en'>Title&lt;/title>
  &lt;para language='ge'>
   &amp;sp;
-  &lt;!-- comment -->
+  &lt;!-- comment --&gt;
   &lt;informaltable language='&amp;sp;'>
    &lt;tgroup cols='3'>
     &lt;tbody>
@@ -549,10 +549,10 @@
   exit;
 }
 
-$root = $dom->root();
+$root = $dom-&gt;root();
 /* or $root = domxml_root($dom); */
 print_r($root);
-?>
+?&gt;
       </programlisting>
      </example>
     </para>
@@ -583,7 +583,7 @@
     <para>
      <example>
       <title>Creating a simple HTML document header</title>
-      <programlisting>
+      <programlisting role="php">
 &lt;?php
 $doc = new_xmldoc("1.0");
 $root = $doc-&gt;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">
 &lt;?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-&gt;add_root("HTML");
+$head = $root-&gt;new_child("HEAD", "");
+$head-&gt;new_child("TITLE", "Hier der Titel");
+$head-&gt;set_attribute("Language", "ge");
+echo $doc-&gt;dumpmem();
+?&gt;
       </programlisting>
      </example>
     </para>
@@ -741,15 +741,15 @@
      the TITLE element.
      <example>
       <title>Adding an attribute to an element</title>
-      <programlisting>
+      <programlisting role="php">
 &lt;?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-&gt;add_root("HTML");
+$head = $root-&gt;new_child("HEAD", "");
+$head-&gt;new_child("TITLE", "Hier der Titel");
+$head-&gt;set_attribute("Language", "ge");
+$children = $head-&gt;children()
+?&gt;
       </programlisting>
      </example>
     </para>


Reply via email to