소스 검색

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,