Results 1 to 2 of 2
Thread: JAXB Marshalling
- 12-20-2008, 04:36 AM #1
Member
- Join Date
- Dec 2008
- Posts
- 2
- Rep Power
- 0
- 12-20-2008, 04:39 AM #2
Member
- Join Date
- Dec 2008
- Posts
- 2
- Rep Power
- 0
JAXB marshalling
Hi All,
I have used JAXB for marshalling and unmarshalling. Namespsce is being added for each element of the marshallled XML file. Following line shows a generated firstName element under the XML file,
<firstName xmlns:xs="XMLSchema"
xsi:type="xs:string">Johnson</firstName>
The namespace xmlns:xs="XMLSchema" is added in each element and the type xsi:type="xs:string" is added for each simple type.
Where as I expect the elemet as follows,
<firstName>Johnson</firstName>
Is there any specific parameter which can be set in the respective xsd or which can be set through code while marshalling, by which I can get the expected XML having no namespace and type appended for its elements.
Please let me know if anyone knows its solution as early as possible.
Thanks,
Akbar
Similar Threads
-
Custom XML to Java Type Binding using JAXB
By surajkumar in forum XMLReplies: 0Last Post: 09-02-2008, 12:32 PM -
JAXB Unmarshalling
By prateek in forum XMLReplies: 0Last Post: 07-10-2008, 06:53 PM -
JAXB unmarshall not responding (help needed)
By Buglish in forum XMLReplies: 0Last Post: 06-03-2008, 11:26 PM -
How to clone a JAXB object ?
By simon in forum Advanced JavaReplies: 1Last Post: 07-14-2007, 11:56 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks