Lists Home |
Date Index |
Elliotte Rusty Harold wrote:
> You never know at compile time what documents you or may not
> encounter. Just because the spec says a SOAP request can't contain a
> processing instruction or a document type declaration doesn't mean
> one won't.
But if one does, then it's not a legal SOAP request, and
a SOAP processor should feel free to treat it the same as
any other illegal input. It can bail out as soon as it
sees '<' followed by anything other than a name start character.
Now a conformant XML processor can't do that, of course,
but a SOAP processor doesn't need to include a conformant
XML parser. A parser for the SOAP subset will do just fine.