Thanks,
- Dennis
Falk Langhammer wrote:
Hi Dennis,
sorry for the late response. I was in Shanghai the last couple of weeks. What an exciting city...
Back to the supposed bug.
My (shortened) mapping is like the following (I changed to DomFragmentMapper meanwhile):
--
<?xml version="1.0" encoding="UTF-8"?>
<binding name="xfb" global-ids="false" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="binding.xsd">
<namespace uri="http://livis.com/xmlns/FormX" default="elements"/>
<mapping name="value" class="com.livis.formsx.desc.ElementValueX"> <value name="name" field="name" style="attribute" usage="optional"/> <value name="data" field="data" usage="optional"/> <structure name="xml-data" usage="optional"> <structure field="xdata" usage="optional" marshaller="org.jibx.extras.DomFragmentMapper" unmarshaller="org.jibx.extras.DomFragmentMapper"/> </structure> </mapping> --
My hope was to successfully unmarshall and then marshall something like:
-- <?xml version="1.0" encoding="UTF-8"?> <value name="sample" xmlns="http://livis.com/xmlns/FormX"> <data>A brown fox.</data> <xml-data>A <span class="color">brown</span> fox.</xml-data> </value> --
It does not work when the attribute (class="color") is present, wether i declare a namespaceprefix or not in the binding. For simplicity and testing, I have left out an html namespace declaration which does not alter the problem (because attributes in the example have no namespace prefix anyway).
I seem to use beta3b.
My previous bug report used a namespace prefix and DomElementMapper.
I may restate my question:
Do You have a working example where you use DomElementMapper or DomFragmentMapper within an XML document which has a default namespace, and where the mapped node contains BOTH elements and attributes, as far as a complete unmarshall/marshall cycle is concerned?
Thanks for Your help.
Falk
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
jibx-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jibx-users
