Hi Gustavo,

The '&' character issue is one with XML itself, because the '&' 
character is how XML indicates the start of an escape sequence. If 
you're going to include this character in an attribute value it needs to 
be escaped as the sequence '&'.

CDATA would allow you to get around this issue for text content inside 
elements, but cannot be used with attribute values.

  - Dennis

Dennis M. Sosnoski
SOA and Web Services in Java
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117



Gustavo wrote:
> Hi, I have this mapping file and it doen´t work when fileName atribute 
> contains  the '&'
> character. I read that i need to use style="cdata" but i dont know where i
> need to put that. If i put    <value style="cdata" name="fileName"
> field="fileName" /> , marshalling doesn´t work
>
> Do you know what the problem is?
>
> Thanks in advance and sorry for my english
>
>
> <mapping name="fileTransferInvitation"
> class="com.syncrum.core.model.impl.invitation.filetransfer.FileTransferInvitation">
>     <collection field="infoFiles"
> factory="com.syncrum.core.model.impl.invitation.filetransfer.FileTransferInvitation.makeNewFileInfoList">
>         <structure name="fileInfo" 
> type="com.syncrum.core.model.impl.fileinfo.FileInfo">
>             <value name="fileInfoURN" field="fileInfoURN"/>
>             <value name="fileName" field="fileName" />
>             <value name="fileSize" field="fileSize" />
>             <value name="fileAttributes" field="fileAttributes" />
>             <value name="creationTime" field="creationTime" />
>             <value name="lastAccessTime" field="lastAccessTime" />
>             <value name="lastWriteTime" field="lastWriteTime" />
>             <value name="description" field="description" />
>          </structure>
>     </collection>
>     <structure name="sourceUser" field="sourceUser">
>         <value name="userURN" field="urn" />
>     </structure>
>     <structure name="targetUser" field="targetUser">
>         <value name="userURN" field="urn" usage="optional" />
>     </structure>
>     <value name="targetMail" field="targetMail" usage="optional" />
>     <value name="description" field="description" />
>     <value name="invitationURN" field="invitationURN" />
> </mapping>
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> jibx-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jibx-users
>
>   

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to