Re: Error loading ultra-edit XML files and line numbers

"Noah Evans" <[email protected]> Thu, 9 Nov 2006 09:12:37 +0900
Newsgroups gmane.lisp.scheme.ssax-sxml
Message-ID <[email protected]>
You're getting an UTF preamble. IIRC it's to determine the byte order
for UTF-16 and up. It's entirely unecessary in UTF-8(it can't have
byte order problems) but some text editors(notepad for one) and
programming languages insert the preamble anyway.

Noah

>From: Victor Morilla Padial <vmorilla@...>
>Subject: Error loading ultra-edit XML files and line numbers
>Newsgroups: gmane.lisp.scheme.ssax-sxml
>Date: 2006-09-14 21:49:58 GMT
>
>Hi,
>
>When I try to load an xml file edited with ultra-edit using
>sxml:document, I get the following error:
>
>Error at position 0
>(XML [22], char ' =EF=BB=BF ' unexpected)
>uncaught exception: -1
>
>The problem seems to be related to three characters that ultra-edit
>includes at the beginning of the file. However, other parsers (xerces
>for instance) work fine.
>The file looks like this:
>
>=EF=BB=BF<?xml version=3D"1.0" encoding=3D"UTF-8"?>
><book>
></book>
>
>The three characters can only be seen using some editors (emacs, for
>instance)
>
>Another question is, once parsed a file using sxml:document, is it
>possible to obtain the line number at the XML file that corresponds to a
>(sxml) node ?
>
>Thanks a lot

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easi=
er
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D1=
21642