Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Schema location attribute in serialized model causes validation problems
Schema location attribute in serialized model causes validation problems [message #705028] Fri, 29 July 2011 10:26 Go to next message
Hugo A. Garcia is currently offline Hugo A. GarciaFriend
Messages: 258
Registered: July 2009
Senior Member
Hi

I am serializing an EMF model that was generated from a schema. The
generated XML contains:

<properties xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://Cpf/1.0">

The XML file is parsed by some C++ code that is not under my control.
The SAX parser produces an error when it tries to deal with
http://Cpf/1.0 URI that was created by default when building the ecore
model.

What are my options for correcting this problem and having the SAX
parser properly work?

Currently... I manually edit the XML and remove the attributes in the
properties tag above.

-H
Re: Schema location attribute in serialized model causes validation problems [message #705143 is a reply to message #705028] Fri, 29 July 2011 13:47 Go to previous message
Chetan Kumar is currently offline Chetan KumarFriend
Messages: 44
Registered: July 2009
Member
Try serializing XML resource with noNamespaceSchemaLocation turned off in your Resource instance.

XMLResource.NO_NAMESPACE_SCHEMA_LOCATION

+ Chetan
Previous Topic:I need a special help for a problem on query results and treeviewer!
Next Topic:[EMF] resolve of a reference
Goto Forum:
  


Current Time: Thu Apr 25 18:54:58 GMT 2024

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

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

Back to the top