Преглед на файлове

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

Johannes преди 12 години
родител
ревизия
02328f1e0f
променени са 1 файла, в които са добавени 6 реда и са изтрити 0 реда
  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,