Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 359122 - Marshaling an inherited object generates unnecessary namespace attribute using metadata xml
Summary: Marshaling an inherited object generates unnecessary namespace attribute usin...
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-27 13:57 EDT by Foster Yang CLA
Modified: 2022-06-09 10:32 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Foster Yang CLA 2011-09-27 13:57:26 EDT
If A inherits from B, and in metadata.xml I don't specify any custom namespace, so when I marshal an object A, the resulting xml has an unwanted namespace attribute"xmlns:xsi" like this:
<?xml version="1.0" encoding="UTF-8"?>
<user xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <first-name>frstName</first-name>
   <last-name>lastName</last-name>
   <email>firstName@domain.com</email>
   <timezone-id>America/New_York</timezone-id>
</user>
Comment 1 Eclipse Webmaster CLA 2022-06-09 10:32:21 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink