Skip to main content



      Home
Home » Modeling » EMF » Feature 'noNamespaceSchemaLocation' not found.
Feature 'noNamespaceSchemaLocation' not found. [message #412067] Wed, 15 August 2007 20:27 Go to next message
Eclipse UserFriend
I have a case were the following .xml file can be read by the default EMF
generated test program successfully.
<?xml version="1.0"?>
<abc xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="SomeSchema.xsd">
</abc>

When I change "xsi" to "xsd" as in:
<?xml version="1.0"?>
<abc xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance"
xsd:noNamespaceSchemaLocation="SomeSchema.xsd">
</abc>

In the XML Editor the change appears to be valid and from the XML schema
guidelines I believe this is OK.

But running the EMF generated test provides a long output, but the key part
is:
Caused by: org.eclipse.emf.ecore.xmi.FeatureNotFoundException: Feature
'noNamespaceSchemaLocation' not found. (file:/S:...)

Is there a way get the parser to accept a xsd namespace name?
Re: Feature 'noNamespaceSchemaLocation' not found. [message #412071 is a reply to message #412067] Thu, 16 August 2007 07:25 Go to previous message
Eclipse UserFriend
Bernie,

The deserialization code is very old and predates when there were
parsers that handled namespaces efficiently, so prefixes for things like
xsi and xmi have hard coded meaning right now. We have
https://bugs.eclipse.org/bugs/show_bug.cgi?id=198832 open to address
that in the next release cycle.


Bernie wrote:
> I have a case were the following .xml file can be read by the default
> EMF generated test program successfully.
> <?xml version="1.0"?>
> <abc xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:noNamespaceSchemaLocation="SomeSchema.xsd">
> </abc>
>
> When I change "xsi" to "xsd" as in:
> <?xml version="1.0"?>
> <abc xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance"
> xsd:noNamespaceSchemaLocation="SomeSchema.xsd">
> </abc>
>
> In the XML Editor the change appears to be valid and from the XML
> schema guidelines I believe this is OK.
>
> But running the EMF generated test provides a long output, but the key
> part is:
> Caused by: org.eclipse.emf.ecore.xmi.FeatureNotFoundException: Feature
> 'noNamespaceSchemaLocation' not found. (file:/S:...)
>
> Is there a way get the parser to accept a xsd namespace name?
>
Previous Topic:delete opposite children
Next Topic:Working with edges on nodes
Goto Forum:
  


Current Time: Wed Nov 05 12:00:34 EST 2025

Powered by FUDForum. Page generated in 0.03173 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top