[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Mysterious 'invalid character'

Subject: Re: Mysterious 'invalid character'
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 30 Nov 2001 18:02:34 GMT
invalid character message ignored
> My file is well-formed and valid against the DTD when I check it (within
> XMLSpy). No error message there.

are you sure that isn't also using the same msxml parser with the same bug?

> What am I supposed to look for? 

a character in the ascii control range below space (32) that 
isn't a tab (9) carrage return or line feed (10 or 13).

Any reasonable editor will show these in some form or other.

Also try a different parser, for example the excellent (and free) rxp
parser says, if I try to add a control-B to a file:

   $ rxp -s bad.xml
   Error: illegal character <0x2> immediately before file offset 11
   I/O error on stream <file:///c:/tmp/bad.xml>, ignore further errors

which tells you what the bad character is (#x02) and where it is (11
characters into the file)

rxp is a trivial download/install or you can run it online (on small
examples, to be kind to their server:-)



This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.