Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 359122

Summary: Marshaling an inherited object generates unnecessary namespace attribute using metadata xml
Product: z_Archived Reporter: Foster Yang <fang.web2>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: blaise.doughan
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

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