RE: Get/Set Encoding value

2003-06-18 Thread Thomas Cox
Message- > From: Rob Outar [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 18, 2003 12:24 PM > To: [EMAIL PROTECTED] > Subject: RE: Get/Set Encoding value > > > Thanks for the information but I am a bit confused on to > actually get the encoding information. Do I need to &

RE: Get/Set Encoding value

2003-06-18 Thread Rob Outar
I was not using 2.4.. thought I was. Anyhow I can now fetch it. Thanks a lot. Thanks, Rob -Original Message- From: Rob Outar [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 12:24 PM To: [EMAIL PROTECTED] Subject: RE: Get/Set Encoding value Thanks for the information but I

RE: Get/Set Encoding value

2003-06-18 Thread Rob Outar
? :-) Thanks, Rob -Original Message- From: Michael Glavassevich [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 9:40 AM To: [EMAIL PROTECTED] Subject: Re: Get/Set Encoding value Hi Rob, If you're using the latest version of the parser (Xerces 2.4.0), you should be ab

Re: Get/Set Encoding value

2003-06-18 Thread Michael Glavassevich
Hi Rob, If you're using the latest version of the parser (Xerces 2.4.0), you should be able to retrieve the encoding using SAX. Have a look at: http://xml.apache.org/xerces2-j/faq-general.html#faq-8. The solution isn't particularly elegant, but SAX's Locator2 interface isn't available yet. Just t

Get/Set Encoding value

2003-06-18 Thread Rob Outar
I have to write a program that will fetch the encoding information from XML files:encoding="UTF-8"?>and verify that all encoding is set to UTF-8, my early trials using SAX has not worked, I thought it was a preprocessing instruction but I did not get the callback for my test files.  Is there