[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.emf] Resource serialization options
|
- From: alr@xxxxxxxxxx (alr)
- Date: Mon, 12 Jan 2004 09:07:23 +0000 (UTC)
- Newsgroups: eclipse.tools.emf
- Organization: http://news.eclipse.org
- User-agent: NewsPortal/0.25 (http://florian-amrhein.de/newsportal/)
I'm actually using XMI serialization, and i can't load serialized data
coming from a save operation. XML parser can't read the stream it has
previously written. The error seems to come from special characters using
in serialized data.
I was asking, if could change the encoding format from standard ASCII to
anything else that support special characters, but i was enable to find
any documentation about the save/load options. Could you please help me.
thanks
Briefly, here it is what i'm using
(1)
Resource res = resourceSet.createResource(uri); ...
res.save(outputStream,Collections.EMPTY_MAP);
and then,
(2)
Resource res = resourceSet.createResource(uri); ...
res.load(inputStream,Collections.EMPTY_MAP);
and here it is the error, i've got :
org.xml.sax.SAXParseException: Erreur de conversion de caractère :
"Illegal ASCII character, 0xe9" (le numéro de ligne peut être trop bas).
at org.apache.crimson.parser.InputEntity.fatal(Unknown Source)
at org.apache.crimson.parser.InputEntity.fillbuf(Unknown Source)
at
org.apache.crimson.parser.InputEntity.isXmlDeclOrTextDeclPrefix(Unknown
Source)
at org.apache.crimson.parser.Parser2.maybeXmlDecl(Unknown Source)
at org.apache.crimson.parser.Parser2.parseInternal(Unknown Source)
at org.apache.crimson.parser.Parser2.parse(Unknown Source)
at org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:76)