RE: [xsl] process instruction declaration

Subject: RE: [xsl] process instruction declaration
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 29 Mar 2005 23:28:56 +0100
Your documents can contain an XML declaration, but the rules of XML say that
it can only appear right at the start of the document. XQuery is an XML
query language, it's no use with non-XML documents.

Michael Kay
http://www.saxonica.com/ 

> -----Original Message-----
> From: 04083259@xxxxxxxxxxxxx [mailto:04083259@xxxxxxxxxxxxx] 
> Sent: 29 March 2005 22:45
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] process instruction declaration 
> 
> hi
> 
> i have xml declaration for every soap messages , so do i have 
> to delete
> them  in order to get a well form xml when ever i send query
> 
> thanks
> 
> 
> 
> 
> 
> 
> 
> -----Original Message-----
> This error message is coming from the XML parser, not from 
> Saxon itself.
> 
> It probably means that there is an XML declaration such as <?xml
> version="1.0"?> somewhere other than at the start of your XML 
> file, which
> means the XML is not well-formed.
> 
> Michael Kay
> Saxonica Limited
> 
> 
> 
> 
> -----Original Message-----
> 
> 
>  the following error message occure every time try to submite
>  xquery usining
>  saxon 7.9
>  the program is client server application impleminting using java
> 
>  thanks
> 
> 
> 
> 
> 
>  [Fatal Error] :7:6: The processing instruction target matching
>  "[xX][mM][lL]" is
>   not allowed.
>  Parsing failure: org.xml.sax.SAXParseException: The
>  processing instruction
>  targe
>  t matching "[xX][mM][lL]" is not allowed.

Current Thread