[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
[eclipselink-users] How to marshall objects using default namespace?
|
- From: amphoras <polly.c.chang@xxxxxxxxx>
- Date: Fri, 20 Jun 2008 14:30:17 -0700 (PDT)
- Delivered-to: eclipselink-users@eclipse.org
Hi,
I see that the bug "ADD SUPPORT FOR THE DEFAULT NAMESPACE"
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=236051) has been implemented.
How do I make use of this new feature?
Currently I have the schemas defined like this in the workbench:
Target Namespace: http://www.foo.com/bar/baz
Prefix: ns1
Declare: true
This will output the "ns1" namespace prefix in front of my elements. But
when I change Declare to "false", I get the usual error message about not
finding the root element:
[Exception [EclipseLink-25008] (Eclipse Persistence Services - 1.0 (Build
SNAPSHOT - 20080618)):
org.eclipse.persistence.exceptions.XMLMarshalException
Exception Description: A descriptor with default root element
{http://www.foo.com/bar/baz}Address was not found in the project]
I am also unable to set the namespace prefix to "" in the workbench. How
does one use this default namespace?
Thanks!
--Polly
--
View this message in context: http://www.nabble.com/How-to-marshall-objects-using-default-namespace--tp18037731p18037731.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.