Just another Perl shrine | |
PerlMonks |
Re: Issue with xml parsing using XML::Xercesby dHarry (Abbot) |
on Jan 07, 2011 at 10:58 UTC ( [id://881041]=note: print w/replies, xml ) | Need Help?? |
Indeed a strange issue. At first glance I can't see anything wrong with your code, but than again I'm not a regular XML::Xerces user. The corresponding xsd file has optional attributes having default values This is the correct way of doing things. In fact attributes are optional by default so the you could even leave the 'use="optional"' out. I tried to reproduce the error (with another parser) but your xsd is not complete/incorrect. You probably have another namespace containing the types missing, i.e. where does "ems:" come from? Right now I can only give some general hints like: (re)think your namespaces, (default namespace?) and qualifying. Doesn't the parser produce any error messages/warnings? Are you sure your schema is correct? Can you successfully validate a xml document? Maybe you can post more complete examples of your xsd and xml. Harry
In Section
Seekers of Perl Wisdom
|
|