The documentation is unclear on how to deal with collections of strings
-----------------------------------------------------------------------

         Key: JIBX-111
         URL: http://jira.codehaus.org/browse/JIBX-111
     Project: JiBX
        Type: Improvement

  Components: core  
    Versions: JiBX 1.0    
 Environment: Any
    Reporter: Joshua Davies
    Priority: Trivial


The documentation on collection is slightly unclear on how to deal with 
collections of strings.  The documentation states:

"In the case of simple values (primitives, or objects which are represented as 
simple text strings), you just use one or more nested value elements (which 
must use style="element", directly or by default) instead of structure 
elements."

Which is complete, and accurate, but it's somewhat buried in the collections 
section.  Since this is such a common case, propose adding an example on 
"tutorial/binding-collects.html".  Something like:

"So, for example, if you'd like to unmarshall an XML structure such as:

<container>
  <item>abc</item>
  <item>def</item>
  <item>ghi</item>
</container>

Into an ArrayList of strings whose contents should be { "abc", "def", "ghi" }, 
you would create a binding such as:

<collection field="stringsArrayList">
  <value style="element" name="item" />
</collection>"

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to