users@jaxb.java.net

Re: Default Namespace in JAXB

From: <Vishal.Manchanda_at_iflexsolutions.com>
Date: Fri, 30 Jul 2004 11:32:10 +0530

Hi Kohsuke,

Pls find attached TestData.zip


Details(Also mentioned in Readme.txt):

1.Schema in the attached file is used to create JAXB classes.

2.Prefix Example is used to test unmarshalling and marshalling of xml
doc "testxml.xml"

3. After Marshalling the output should give the msg tag as following
(refer 37AccountInfoMaintainanceRegistration_01.xml)





<msg xmlns="ebagent"
xsi:schemaLocation="http://www.w3.org/2001/XMLSchema-instance
../schema/AccountMaintainance.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >

....
....
.......
......
</msg>


Please suggest how to get xmlns="ebagent" as it is in the output after
marshalling.

Also I want the prefix "xsi" with schemaLocation Attribute.


I'm in a real fix. Please help in solving this problem.

Regards,

Vishal Manchanda


-----Original Message-----
From: Kohsuke Kawaguchi [mailto:Kohsuke.Kawaguchi_at_Sun.COM]
Sent: Friday, July 30, 2004 12:07 AM
To: users_at_jaxb.dev.java.net
Subject: Re: Default Namespace in JAXB


Your code looks correct to me.

I wonder if you can send your schema and test code so that we can
reproduce the problem.

regards,
--
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net
 <<TestData.zip>> 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net