Not a direct answer, but....
$ find . -name "*.xml" | xargs perl -i.bak \
-p -e "s/?>/ encoding='iso-8859-1'?>/"
will do the bulk change for you.
On Tue, Dec 10, 2002 at 12:14:19PM +0100, [EMAIL PROTECTED] wrote:
> Hello,
>
> I have a problem with lot's of XML-files I want to parse with the
> SAXReader object. They all start with this heading:
>
> <?xml version = "1.0" standalone = "no"?>
> <!DOCTYPE configData SYSTEM "configFile.dtd">
>
> Even if the attribute
>
> 'encoding="UTF-8"'
>
> is not there in the preamble, it seems that my parser implements
> this as default, since norwegian charcters are not recognized as
> valid.
>
> Is there anyway I can override this default? Guess I need to
> enforce the setting 'encoding="ISO-8859-1"', but it
> would be reeealy neat if I could do this in the code, not having
> to edit all the files manually...
>
> Best regards,
> Helge Fredriksen
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> dom4j-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/dom4j-user
--
Fergus Gallagher Tel: +44 (20) 8742 1600
Orbis Fax: +44 (20) 8742 2649
414 Chiswick High Street email: [EMAIL PROTECTED]
London W4 5TL Web: http://www.orbisuk.com
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user