Xerces / DOM Serializer questions

C

CB

In the 2.5 distribution there is a sample called DOM3.
It imports a package org.w3c.dom.bootstrap.DOMImplementationRegistry.
Where can I find the bootstrap package?


Using XMLSerializer

org.apache.xml.serialize.XMLSerializer serializer =
new org.apache.xml.serialize.XMLSerializer( os, format );

I get a serialized document with the following header;

<?xml version="1.0" encoding="UTF-8"?>
<myDocument> ....


what I wanted was;

<?xml version="1.0" encoding="UTF-8"?>
<myDocument xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="mySchema.xsd">

How do I do that?

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top