Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Issue with xml parsing using XML::Xerces

by dHarry (Abbot)
on Jan 07, 2011 at 10:58 UTC ( [id://881041]=note: print w/replies, xml ) Need Help??


in reply to Issue with xml parsing using XML::Xerces

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://881041]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2024-03-28 12:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found