I'm trying to determine the correct way to get the serializer using the DOM Level 3 Load and Save functionality support by Xerces. I'm using version 2.8.1. According to the book "Java and XML" this is the appropriate way to get an LSSerializer:

DOMImplementationRegistry domRegistry = DOMImplementationRegistry.newInstance(); DOMImplementationLS domImpl = (DOMImplementationLS) domRegistry.getDOMImplementation("LS");

But when I do this the second call returns null. I'm trying to use this from a servlet that is deployed to Tomcat. The xerces jar is on my class path. Is there something I have to do to get the xerces versions of the load and save classes registered in the registry? Is there a more appropriate way to get the right LSSerializer from xerces?

Thanks,
Michael-

Reply via email to