views:

32

answers:

3

I don't need to parse the XML, or to decode it into an ActionScript object -- I'm only interested in loading both XSD and XML and tell whether the latter is legal XML according to the document definition in the former.

+1  A: 

There is no built in support for DTD/Schema validation and I'm not aware about any third party implementation, so I guess that you will have to rely on the server side for that.

Cornel Creanga
A: 

I couldn't find anything either, but I'd recommend Relax NG over a DTD (if you have the option). It's much cleaner and more flexible.

Matt
Thanks. I don't have any experience with RELAX NG, and the XML Schema is already written -- so I think I'll stick to that.
tripu
+2  A: 

Flex has runtime xml schema support in its mx.rpc.xml package which are hidden from the livedocs. Check out this post, you can find much more info there.

Dave
Thanks -- I already found that post and it seems that you're right: there's no official, documented way to do it.
tripu