Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Question about xsd-->java transformation
Question about xsd-->java transformation [message #426879] Fri, 23 January 2009 09:24 Go to next message
Mohamed is currently offline MohamedFriend
Messages: 1
Registered: July 2009
Junior Member
Hi all,
I have a java code generated from an xsd definition with EMF to parse an
xml document.
In this code we find XMLProcessor class giving us the possibility to save
an xml with :
save(OutputStream outputStream, Resource resource, Map<?, ?> options)
My question is if we can use only an outputStream to save this xml
document without the resource object.
Thank you.
Re: Question about xsd-->java transformation [message #426886 is a reply to message #426879] Fri, 23 January 2009 10:53 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33218
Registered: July 2009
Senior Member
Mohamed,

Comments below.

Mohamed wrote:
> Hi all,
> I have a java code generated from an xsd definition with EMF to parse
> an xml document.
> In this code we find XMLProcessor class giving us the possibility to
> save an xml with : save(OutputStream outputStream, Resource resource,
> Map<?, ?> options)
> My question is if we can use only an outputStream to save this xml
> document without the resource object. Thank you.
No. A Resource implementation does all the work of serialization.


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:[CDO/Net4j]java.nio.BufferUnderflowException
Next Topic:Multipage editor - diplay different page as a different element type is selected
Goto Forum:
  


Current Time: Wed Sep 25 08:29:05 GMT 2024

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

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

Back to the top