"Re: [xml] XML Schema and SOAP question"



Hi,

on 5/26/2004 10:39 PM George Nachman wrote:
Hi all...sorry for the possibly redundant question, but the search feature
for the archives is busted and I couldn't find it by hand.

I'm trying to validate a SOAP-wrapped document, but the schema parser dies
in trying to parse SOAP's schema (it's
http://www.w3.org/2003/05/soap-envelope). Looks like it's dying at the
<any> element which shows up in a few places.

The specific error is "Unimplemented block at xmlschemas.c:4185".

The relevant code seems to be in xmlSchemaBuildAContentModel():

        case XML_SCHEMA_TYPE_ANY:
            /* TODO : handle the namespace too */
            /* TODO : make that a specific transition type */
            TODO ctxt->state =
                xmlAutomataNewTransition(ctxt->am, ctxt->state, NULL,
                                         BAD_CAST "*", NULL);

I can't imagine I'm the first one to have this problem. What is the normal
solution/workaround?

The implementation of XML Schemas Part 1 is work in progress.

AKAIK there is no workaround for this issue. The schema processor does 
not handle <any> and <anyAttribute> yet. I'm currently working on 
<anyAttribute>. This will introduce handling of wildcards, so I hope it 
will be of some use for validation and derivation (this is the annoying 
part of the whole story) of <any> as well.
If you don't need it urgently: you could wait or help implementing, if 
you have resources left; if you need it urgently: I can only repeat 
Igor's words: you could use an other processor like Xerces, or, if you 
want to stay with libxml2, you could use Relax NG as the schema type.


Greetings,

Kasimier




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]