Hi,
When i try to serialize a DOM document to an output stream i always get the
same error: when i create a DOMImplementatiosLS object it gets a null value
so, when i try to use this object to get a LSSerializer object i get a null
pointer exception.
I've tried everything, and i don´t know what to do....
Here is a snippet of the code, in fact, it´s copied from Xerces official
page:



import  org.w3c.dom.bootstrap.DOMImplementationRegistry;
import  org.w3c.dom.Document;
import  org.w3c.dom.ls.DOMImplementationLS;
import  org.w3c.dom.ls.LSSerializer;

        DOMImplementationRegistry registry =
DOMImplementationRegistry.newInstance(); 
(1)     DOMImplementation domImpl = registry.getDOMImplementation("LS");
(2)     DOMImplementationLS implLS = (DOMImplementationLS)domImpl;
        LSSerializer writer = implLS.createLSSerializer();


(1) At this point i get an object with a null value
(2) Here a null pointer exception


Any help would be appreciated, i´m stuck and desperate....
-- 
View this message in context: 
http://www.nabble.com/Problems-with-Serialization-tf2807098.html#a7831858
Sent from the Xerces - J - Users mailing list archive at Nabble.com.


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

Reply via email to