External entity ref bug?

Having trouble installing Oxygen? Got a bug to report? Post it all here.
vika

External entity ref bug?

Post by vika »

Dear users,

I've an XML file without a DTD. In the DOCTYPE at the top, I declare an entity:

<!ENTITY others SYSTEM "sofar.txt">

and then use it within the body:

&others;

sofar.txt is in the same directory as myfile.xml. When I check the XML file for well-formedness, I get the following error message:

UTFDataFormatException-Invalid byte 2 of 2-byte UTF-8 sequence.

If I replace &others; with the actual contents of sofar.txt, I no longer get this error message.

Any ideas?.. The original purpose behind this was to have all of the elements used so far in many different files available in the autocomplete menus of the newest file I'm working on. oXygen doesn't seem to be seeing the contents of sofar.txt at all, as far as that is concerned.

Thanks much for your help,

-vika (feel free to respond here or send mail to oxygen-at-wordsend-org)[/code]
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Hi,

Please send at support@oxygenxml.com a sample to reproduce the problem. I suspect it is an encoding problem, when you paste the text in there is no encoding involved, this is done at character level.

Best Regards,
George
vika
Posts: 1
Joined: Fri Apr 23, 2004 11:20 pm

Post by vika »

Thank you George, I did send a support mail and got an answer that fixed the problem. Unfortunately, although the file is now well-formed, oXygen still doesn't "learn" elements present in the externally referenced files. Is there any change that this will be a future feature?..

Regards,
-Vika
Post Reply