[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] SAX InputSource and character streams
Quick and hopefully obvious question re: SAX.. and sorry for the lightweight content ;) When constructing a SAX InputSource from a character stream (java.io.Reader), is it correct to assume that any encoding declaration given in the document will be ignored? That is, should I worry about anything blowing up if I parse an InputSource constructed like this: new InputSource( new StringReader( "<?xml version=\"1.0\" encoding=\"foo\"?><bar/>" ) ); ...where foo is pretty much anything (an actual encoding supported by the system, or not) ? The encoding should be irrelevant at that point, yes? TIA, - Mike ____________________________________________________________________ Mike J. Brown, software engineer at My XML/XSL resources: webb.net in Denver, Colorado, USA http://skew.org/xml/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|