Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi, while validating the xml with XSD I am getting the following error Schemas parser error : Element decl. 'ELEMENT NAME', attribute 'type': The QName value {'', ''} does not resolve to a(n) type definition.

Replies are listed 'Best First'.
Re: xml validation
by Illuminatus (Curate) on Oct 28, 2008 at 18:46 UTC
Re: xml validation
by ikegami (Patriarch) on Oct 28, 2008 at 20:11 UTC

    So fix your schema.

    Is there a question you wanted to ask?

    Whatever your question is, we'll need to know what module gives the error. We'll probably need to know for what data the module gives the error. And we might even need to know how you use the module.

Re: xml validation
by dHarry (Abbot) on Oct 29, 2008 at 08:36 UTC

    It sounds (I’m guessing) like a SAX parser error coming out of LibXML? Anyway I am not convinced your XML Schema is bad:

    The value of a QName contains a Namespace URI, local part and prefix (see QName for details).

    It’s probably the data that you’re trying to validate that is bad, i.e. a "," sounds like a strange value for a QName.

    HTH