[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug xml/23341] [XML] ClassCastException with javax.xml.transform.Transf
From: |
jlquinn at optonline dot net |
Subject: |
[Bug xml/23341] [XML] ClassCastException with javax.xml.transform.TransformerFactory |
Date: |
25 Oct 2006 14:44:46 -0000 |
------- Comment #5 from jlquinn at optonline dot net 2006-10-25 14:44 -------
(In reply to comment #3)
> However this code can be found in upstream projects. It may be wrong
> code (because they assume usage of Xerces - where always a
> SaxTransformerFactory implementation seems to be used) but its used.
>
> Beside that somehow it must be possible to obtain a SAXTransformerFactory.
> If not through casting than how else. All my textbooks about XML give me
> this way to obtain a SAXTransformerFactory:
>
> SAXTransformerFactory factory =
> (SAXTransformerFactory)TransformerFactory.newInstance();
You can use static SAXTransformerFactory.newInstance() to get what you need.
But you still have to test the result to see if it supports FEATURE before
casting to SAXTransformerFactory.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23341
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug xml/23341] [XML] ClassCastException with javax.xml.transform.TransformerFactory,
jlquinn at optonline dot net <=