xml validator via xsd

,

can anyone code a routine for validating xml generated by grid application as per XSD (i have xsd).
(there is no macros for validating xml.)
awaiting some reply,thanks,
gmail kunjan@canaresh.com , skype kunjan.naresh.shah

In case of laziness just use xmlstartlet in a commandline…
Otherwise see here: http://php.net/manual/en/domdocument.schemavalidate.php