As the message says, there is a parser problem within your xml file.
Try to open it within a xml-parser (not a text editor) and use the encoding "utf-8".

Look where there is the problem.
You may also want to delete the first encoding attribute as xml files which have no encoding are automatically treated as utf-8.

Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com

----- Original Message ----- From: "Jeffrey Sambells" <[EMAIL PROTECTED]>
To: "fw-general Zend Framework" <[email protected]>
Sent: Monday, June 16, 2008 9:36 PM
Subject: [fw-general] Translate error


Hi All,

I'm suddenly getting:
exception 'Zend_Translate_Exception' with message 'XML error: XML
declaration not finished at line 1' in /library/Zend/Translate/Adapter/
Tmx.php:100

my TMX file hasn't changed in weeks and begins with...

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE tmx PUBLIC "-//LISA OSCAR:1998//DTD for Translation Memory
eXchange//EN" "tmx14.dtd"><tmx version="1.4">
<header adminlang="en-us" creationtool="Hand Coded"
creationtoolversion="1.0.0" datatype="winres" o-tmf="abc"
segtype="sentence" srclang="en-ca"></header>
<body>
  <tu... etc


If I delete the contents of the file the error goes away, but then
obviously all my text is missing. I can't seem to figure out what's
wrong with the XML. Any ideas?

Thanks,

- Jeff

Reply via email to