XML validation with XSD (SXML Schema) validation in GWT

224 views
Skip to first unread message

Michaël

unread,
May 31, 2011, 11:52:04 AM5/31/11
to Google Web Toolkit
Hi,

After a lot of research on the web I don't find how to validate a XML
file with a XSD (XML Schema) in GWT (2.3.0).

I saw that on the JSE 6 there is a SchemaFactory class, but not in
GWT. So, how can I do this validation?

Best regards.

Jeff Chimene

unread,
May 31, 2011, 1:56:09 PM5/31/11
to google-we...@googlegroups.com

You won't be able to invoke a validating parser on the client side, You
can use GWT RPC to cause your server to perform that task, and return
the results to your client.

Michaël

unread,
Jun 3, 2011, 10:21:45 AM6/3/11
to Google Web Toolkit
Hi,

Thanks for your answer. But my problem is how to "implement" the
SchemaFactory class (javax.xml.validation.SchemaFactory) on GWT. I try
to put "import javax.xml.validation.SchemaFactory;" on my code, but
when I launch it, there are some errors :

Errors in 'file:/home/my_user/workspace/Test/src/com/exemple/projet/
client/Test.java'
Line 56: No source code is available for type
javax.xml.validation.SchemaFactory; did you forget to inherit a
required module?
...

I try to put (<inherits name='javax.xml.validation.SchemaFactory'/>)
on my src/com.exemple.projet/Test.gwt.xml file, but it doesn't work
too.
I understand that <inherits .../> must be done for framework classes.

PS : Sorry if I don't speak very good english, but my first language
is french.

Thanks for your answer.

Michaël

unread,
Jun 8, 2011, 8:17:02 AM6/8/11
to Google Web Toolkit
Up!
Reply all
Reply to author
Forward
0 new messages