[
http://jira.codehaus.org/browse/JIBX-226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dennis Sosnoski resolved JIBX-226.
----------------------------------
Assignee: Dennis Sosnoski
Resolution: Not A Bug
You should be able to do this by using a nested <structure>:
<collection ...>
<structure name="tag" type="java.lang.String">
<value style="CDATA"/>
</structure>
</collection>
Please comment on this bug report if this does not work for you.
> Ability to create collection of CDATA elements
> ----------------------------------------------
>
> Key: JIBX-226
> URL: http://jira.codehaus.org/browse/JIBX-226
> Project: JiBX
> Issue Type: Improvement
> Components: core
> Affects Versions: JiBX 1.1.5
> Reporter: Smelik Evgeniy
> Assignee: Dennis Sosnoski
>
> I need ability to create xml-file like that:
> ...
> <tags>
> <tag><![CDATA[....]]></tag>
> <tag><![CDATA[....]]></tag>
> <tag><![CDATA[....]]></tag>
> </tags>
> But I cann't create binding:
> <collection name="tags" field="tags" type="java.util.ArrayList">
> <value name="tag" style="CDATA" type="java.lang.String"/>
> </collection>
> cause of error during compilation:
> Error: Value "CDATA" is not a valid choice for style; on value element at
> (line 51, col 78, in binding.xml)
> Error running binding compiler
> org.jibx.runtime.JiBXException: Binding binding.xml is unusable because of
> validation errors
> ...
> I found in documentation that I cann't use CDATA style attribute directly in
> collections. Are there any "indirectly" approaches?
--
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
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs