Are you actually changing the encoding of the document, or just changing the
value of the encoding attribute? If the document is ISO-8859-1 encoded and
has characters outside of the US-ASCII range, then you'd actually have to
convert the entire document encoding, not just changed the attribute value.

Does this happen with every XML document that you do this to, even a really
simple one?

One way to determine the version of Xerces is to open up the JAR and look at
the manifest.mf. I believe there's a class you can execute to get the info
too, but I'm not familiar with it, at least not off the top of my head.

-Nathan

-----Original Message-----
From: Jad Yazbeck [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 03, 2006 8:08 AM
To: [email protected]
Subject: Info about Xerces.

Dear Sirs,

I was surfing the web looking for some info about xerces, hoping to 
solve a problem:

I have an xml document which has:
<?xml version="1.0" encoding="ISO-8859-1"?>

I change it to:
<?xml version="1.0" encoding="UTF-8"?>
in order to support arabic characters, and when I am running the saxapp, 
I am getting the following error (which was not produced before changing 
the encoding):
"Document root element is missing."

Does this has to do with the xerces version? How do I know which version 
I have?
If not, do u have any idea about the problem?

Thanks for your help.

Regards,
Jad Yazbeck

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to