Error loading ultra-edit XML files and line numbers

Victor Morilla Padial <[email protected]> Thu, 14 Sep 2006 23:49:58 +0200
Newsgroups gmane.lisp.scheme.ssax-sxml
Message-ID <[email protected]>
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