Pārlūkot izejas kodu

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

Johannes 12 gadi atpakaļ
vecāks
revīzija
02328f1e0f
1 mainītis faili ar 6 papildinājumiem un 0 dzēšanām
  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,