Johannes 14 роки тому
батько
коміт
92cc764346
1 змінених файлів з 9 додано та 3 видалено
  1. 9 3
      Resources/doc/index.rst

+ 9 - 3
Resources/doc/index.rst

@@ -294,6 +294,8 @@ Examples::
 ~~~~~~~~
 ~~~~~~~~
 This allows you to specify the name of the top-level element.
 This allows you to specify the name of the top-level element.
 
 
+::
+
     <?php
     <?php
     
     
     use JMS\SerializerBundle\Annotation\XmlRoot;
     use JMS\SerializerBundle\Annotation\XmlRoot;
@@ -304,7 +306,7 @@ This allows you to specify the name of the top-level element.
         private $name = 'Johannes';
         private $name = 'Johannes';
     }
     }
     
     
-Resulting XML:
+Resulting XML::
 
 
     <user>
     <user>
         <name><![CDATA[Johannes]]></name>
         <name><![CDATA[Johannes]]></name>
@@ -315,6 +317,8 @@ Resulting XML:
 This allows you to mark properties which should be set as attributes,
 This allows you to mark properties which should be set as attributes,
 and not as child elements.
 and not as child elements.
 
 
+::
+
     <?php
     <?php
     
     
     use JMS\SerializerBundle\Annotation\XmlAttribute;
     use JMS\SerializerBundle\Annotation\XmlAttribute;
@@ -326,7 +330,7 @@ and not as child elements.
         private $name = 'Johannes';
         private $name = 'Johannes';
     }
     }
     
     
-Resulting XML:
+Resulting XML::
 
 
     <result id="1">
     <result id="1">
         <name><![CDATA[Johannes]]></name>
         <name><![CDATA[Johannes]]></name>
@@ -338,6 +342,8 @@ This allows you to define several properties of how arrays should be
 serialized. This is very similar to @XmlMap, and should be used if the
 serialized. This is very similar to @XmlMap, and should be used if the
 keys of the array are not important.
 keys of the array are not important.
 
 
+::
+
     <?php
     <?php
     
     
     use JMS\SerializerBundle\Annotation\XmlList;
     use JMS\SerializerBundle\Annotation\XmlList;
@@ -365,7 +371,7 @@ keys of the array are not important.
         }
         }
     }
     }
 
 
-Resulting XML:
+Resulting XML::
 
 
     <post>
     <post>
         <comment>
         <comment>