org.equanda.util.xml
Class XMLSerializer
java.lang.Object
  
org.equanda.util.xml.XMLSerializer
public class XMLSerializer
- extends Object
 
An XMLSerializer, used to serialize a DOM tree
 simplistic version which does not allow output formatting.
 The serializer supresses redundant namespace declarations.
- Author:
 
  - Joachim Van der Auwera
 
 
| 
Constructor Summary | 
XMLSerializer(Writer writer)
 
          Constructs a new serializer that writes to the specified writer. | 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
writer
protected Writer writer
XMLSerializer
public XMLSerializer(Writer writer)
- Constructs a new serializer that writes to the specified writer.
- Parameters:
 writer - The writer to use
 
serialize
public void serialize(Document document)
               throws IOException
- Throws:
 IOException
 
serialize
public void serialize(Node node)
               throws IOException
- Throws:
 IOException
 
serialize
public void serialize(Element element)
               throws IOException
- Throws:
 IOException
 
serialize
public void serialize(Element element,
                      Map namespaces)
               throws IOException
- Throws:
 IOException
 
Copyright © 2007-2009. All Rights Reserved.