partial XML validation against xsd
The scene: :o
I've a webservice defined in a wsdl. For each port, there is an xsd file defining its type. Ok, now I want to validate this xml against this xsd.
The problem: :confused:
My xsd's has no root element. They just define a type of node. for instance:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="..." xmlns:bons0="..." targetNamespace="...">
<xsd:element minOccurs="1" name="MyElement" type="xsd:string">
but my xml has a root element that is a "MyServiceRequest" node:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<MyElement>my element value</MyElement>
How can I validate just the "internal" part of the root node against my xsd? or my full xml against the wsdl, if there is a way...