Selaa lähdekoodia

added a note about the usage of @XmlRoot (refs #176)

Johannes 12 vuotta sitten
vanhempi
commit
02328f1e0f
1 muutettua tiedostoa jossa 6 lisäystä ja 0 poistoa
  1. 6 0
      Resources/doc/reference/annotations.rst

+ 6 - 0
Resources/doc/reference/annotations.rst

@@ -277,6 +277,12 @@ Resulting XML:
         <name><![CDATA[Johannes]]></name>
     </user>
 
+.. note ::
+
+    @XmlRoot only applies to the root element, but is for example not taken into
+    account for collections. You can define the entry name for collections using
+    @XmlList, or @XmlMap.
+
 @XmlAttribute
 ~~~~~~~~~~~~~
 This allows you to mark properties which should be set as attributes,