users@jaxb.java.net

Re: UTF-8 charcter in tag name

From: Noxi <noxilim2_at_web.de>
Date: Tue, 2 Feb 2010 01:37:24 -0800 (PST)

Wolfgang Laun-2 wrote:
>
> Use this code to unmarshal:
>
> import org.xml.sax.InputSource;
> import org.apache.xerces.parsers.SAXParser;
> import javax.xml.transform.sax.SAXSource;
>
> InputSource inpsrc = new InputSource( "some.xml" );
> SAXParser parser = new SAXParser();
> SAXSource theSource = new SAXSource( parser, inpsrc );
> Object obj = m.unmarshal( theSource );
>
>

This code worked well but after an update from JDK 1.6.0_16 to 1.6.0_18 now
I get:

java.lang.UnsupportedOperationException: Cannot create XMLStreamReader or
XMLEventReader from a javax.xml.transform.sax.SAXSource
        at
com.sun.xml.internal.stream.XMLInputFactoryImpl.jaxpSourcetoXMLInputSource(XMLInputFactoryImpl.java:302)
        at
com.sun.xml.internal.stream.XMLInputFactoryImpl.createXMLStreamReader(XMLInputFactoryImpl.java:145)

How to fix this one?
Going back to 1.6.0_16 works but an update will be needed sooner or later.

Thanks for any idea.
Noxi
-- 
View this message in context: http://old.nabble.com/UTF-8-charcter-in-tag-name-tp26302584p27417663.html
Sent from the java.net - jaxb users mailing list archive at Nabble.com.