How are you actually invoking the marshaller code-wise ?

Werner

Preeti Dua wrote:
> Hi,
>  
> I was able to resolve the earlier problem but i am still not able to get
> the below mention xml format.
>  
> After execution of marshaller code <form1> node is getting xfa: prefix
> i.e it is generating <xfa:form1>
>  
> How can i eliminate xfa: from the <form1> node
>  
> my mapping file looks like this :
>  
> 
> <!DOCTYPE databases PUBLIC
> 
> "-//EXOLAB/Castor Mapping DTD Version 1.0//EN"
> 
> "http://castor.exolab.org/mapping.dtd";>
> 
> <mapping>
> 
> <class name="portal.transferobject.XDPNamespace"
> verify-constructable="false" auto-complete="false">
> 
> <map-to xml="xdp" ns-uri="http://ns.adobe.com/xdp/"; ns-prefix="xdp"/>
> 
> <field name="timestamp">
> 
> <bind-xml name="timeStamp" node="attribute"/>
> 
> </field>
> 
> <field name="datasetNamespace"
> type="portal.transferobject.DatasetNamespace">
> 
> <bind-xml name="datasets" node="element"/>
> 
> </field>
> 
> </class>
> 
> <class name="portal.transferobject.AccountTO" auto-complete="true">
> 
> <description>mapping of PDF fields</description>
> 
> <field name="customerAddress" type="java.lang.String">
> 
> <bind-xml name="Address" location="xfa:data/form1"/>
> 
> </field>
> 
> </class>
> 
> <class
> name="com.emc.solution.nae.portal.transferobject.DatasetNamespace"
> verify-constructable="false" auto-complete="false">
> 
> <map-to xml="dataset" ns-uri="http://www.xfa.org/schema/xfa-data/1.0/";
> ns-prefix="xfa"/>
> 
> <field name="accountTO" type="portal.transferobject.AccountTO">
> 
> <bind-xml name="xfa:data" node="element"
> xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"/>
> 
> </field>
> 
> </class>
> 
> </mapping>
> 
> 
> 
>  
> On 7/10/07, *Werner Guttmann* <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
> 
>     What does your mapping currently look like ?
> 
>     Werner
> 
>     Preeti Dua wrote:
>     > Hi,
>     >
>     > I want to generate an XML file from java bean,
>     >
>     > I am able to generate the whole file as I want except the root
>     > elements.
>     >
>     > I want 2 root elments in my XML file with namespaces in it.
>     >
>     > Below is example to XML required:
>     >
>     > <?xml version="1.0" encoding="UTF-8"?>
>     > <xdp:xdp timeStamp="2006-05-15T14:05:42Z" uuid="55b477a5-6282-474e-
>     > a271-47617cb91aa8" xmlns:xdp=" http://ns.adobe.com/xdp/";>
>     > <xfa:datasets xmlns:xfa=" http://www.xfa.org/schema/xfa-data/1.0/
>     <http://www.xfa.org/schema/xfa-data/1.0/>
>     > < http://www.xfa.org/schema/xfa-data/1.0/>">
>     > <xfa:data>
>     > <form1>
>     > <Address>India</Address>
>     > <FirstName>AA</FirstName>
>     > <Zipcode>00</Zipcode>
>     > </form1>
>     > </xfa:data>
>     > </xfa:datasets>
>     > </xdp:xdp>
>     >
>     > I am able to generate the above format except the
>     > <xdp:xdp ............. which needs to wrap all the elements.
> 
> 
>     ---------------------------------------------------------------------
>     To unsubscribe from this list please visit:
> 
>        http://xircles.codehaus.org/manage_email
>     <http://xircles.codehaus.org/manage_email>
> 
> 


-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kanns mit allen: http://www.gmx.net/de/go/multimessenger

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to