diff options
-rw-r--r-- | jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/internal/context/xpath/java/XPath.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/internal/context/xpath/java/XPath.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/internal/context/xpath/java/XPath.java index b7baeda7b7..c451848dbe 100644 --- a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/internal/context/xpath/java/XPath.java +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/internal/context/xpath/java/XPath.java @@ -384,7 +384,7 @@ public class XPath { protected String resolveNamespace(Context context) { JaxbPackage pkg = context.getJaxbPackage(); if (this.nsPrefix == null) { - return pkg.getNamespace(); + return ""; } else { JaxbPackageInfo pkgInfo = pkg.getPackageInfo(); @@ -520,7 +520,7 @@ public class XPath { }; } }), - new TransformationIterable<String, String>(xsdType.getAttributeNames(context.getJaxbPackage().getNamespace())) { + new TransformationIterable<String, String>(xsdType.getAttributeNames("")) { @Override protected String transform(String o) { return StringTools.concatenate(ATT_PREFIX, o); @@ -542,7 +542,7 @@ public class XPath { }; } }), - xsdType.getElementNames(context.getJaxbPackage().getNamespace(), false)); + xsdType.getElementNames("", false)); } protected Iterable<XmlNs> getXmlNsInfos(Context context) { |