--- On Mon, 8/3/09, Minjal Shah <shahminjal_at_yahoo.co.in> wrote:
...
> Above is the request that has leading spaces in the xml
> body without XMLDecl and works fine.
Yes, because spaces outside element content (before or after root element) are perfectly fine. It's just that XML Declaration must be the very first thing in document, if it is to exist at all. If there are spaces, it can not be xml declaration; but it does look like a processing instruction.
And processing instructions are explicitly forbidden to have target names starting with prefix 'xml' (case insensitive).
-+ Tatu +-