Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Xerces / DOM Serializer questions

Reply
Thread Tools

Xerces / DOM Serializer questions

 
 
CB
Guest
Posts: n/a
 
      09-03-2003
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 xmlnssi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="mySchema.xsd">

How do I do that?

Thanks.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache SOAP on Tomcat complaining about serializer codehead Java 3 06-13-2005 07:28 AM
Upgrade of Xalan 1.2.2 and Xerces 1.4.4 to Xalan 2.6 and Xerces 2.6.2 cvissy XML 0 11-16-2004 07:06 AM
WBXML serializer for J2SE? Darryl L. Pierce Java 4 05-24-2004 12:08 PM
c++ sax serializer LEI Zhangyun XML 0 10-14-2003 08:21 PM
XML Object Serializer? Byron Lee Java 1 08-22-2003 08:58 AM



Advertisments