Where is the XML coming from?  Can you use server-side code to validate the
XML before sending it to Flex?  That's probably the simpler solution.

Sam
 

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of wayneposner
Sent: Friday, October 06, 2006 9:29 AM
To: [email protected]
Subject: [flexcoders] Validating XML with XSD Schema in Flex?

I've been scouring the web tyring to find information on XML validation
using an XSD file, but the only results I keep finding relate to the MXML
schema which is not what I'm looking for.

Has anyone written any code that validates an XML file against it's schema?
Or is this of of the coding practices that Flex does not implement?

The point being, if I want to explicity define what my input XML looks like
to my flex application, right now, the only way this seems possible to to
write code that defines the business logic of each node/attribute and
whether or not there is a value restrition.  
Should my business logic change, then I have to go and change my code. 

If there is some way to simply read the XSD and validate directly against
that, the only place I have to go to change my business logic is to the
XSD--no code changes/recompilations necessary.

Thanks,
Wayne



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to