This may be a simple question for most Perl programmers; I have used Perl for only two weeks and am very new to Perl packages.
I have a simple XSD file as shown below:
<?xml version="1.0" ?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sql="urn:schemas-microsoft-com:mapping-schema"> <xsd:element name="elementname"> <xsd:complexType> <xsd:sequence> <xsd:element name="field1" type="xsd:integer" minOccurs="0" maxOccurs="1"/> <xsd:element name="field2" type="xsd:string" minOccurs="0" maxOccurs="1"/> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:schema>
I would like to check the XML file with the above XSD to make sure that it is valid XML. Which Perl module should I use? I prefer the module available on both ActivePerl and Perl on * nix. It would be very helpful to post some code snippets.
thanks
xml perl xsd
John
source share