Validating xml with perl
However, XML processors have to accept a lot on blind faith.If we try to build a document to meet some specific XML application's specifications, it doesn't do us any good if a content generator slips in a strange element we've never seen before and the parser lets it go by with nary a whimper. It can restrict the number and type of elements a document can use and control where they go.XML:: Xerces implements the vast majority of the Xerces-C API (if you notice any discrepancies please mail the list).The exception is some functions in the C API which either have better Perl counterparts (such as file I/O) or which manipulate internal C information that has no role in the Perl module.
Hopefully one of the Experts here will have an answer for you or some guidance.
However, if you knowingly generate or modify some flavor of XML that needs to stick to a defined standard, then taking the extra step or three necessary to perform document validation is probably wise.
A number of questions are still being worked on and will be added when they are complete.
The validator program is working fine with all modules installed correctly. But now I am using the "group" element of XML schema, in schema file, and I am getting error given below, unrecognized element ' Hi , I am using the perl validator program given at CPAN for validation of xml (.xml) against XML schema(.xsd).
The validator program is working fine with all modules installed correctly. But now I am using the "group" element of XML schema, in schema file, and I am getting error given below, unrecognized element ' '/xml2c/test1/test_1.xsd'); The error is written in file given below, package XML:: Validator:: Schema:: Parser; where there is no check for "group" element ..