org.apache.ws.commons.serialize

Class OrderedAttributeXMLWriter

Implemented Interfaces:
org.xml.sax.ContentHandler, XMLWriter

public class OrderedAttributeXMLWriter
extends XMLWriterImpl

A subclass of XMLWriterImpl, which writes the attributes ordered alphabetically. This is mainly useful for test purposes, when a canonical representation of the result is required for comparing against an expected value.

Method Summary

void
startElement(String pNamespaceURI, String pLocalName, String pQName, Attributes pAttrs)
Starts a new element.

Methods inherited from class org.apache.ws.commons.serialize.XMLWriterImpl

canEncode, characters, endDocument, endElement, endPrefixMapping, getDocumentLocator, getEncoding, getIndentString, getLineFeed, getWriter, ignorableWhitespace, isDeclarating, isFlushing, isIndenting, processingInstruction, setDeclarating, setDocumentLocator, setEncoding, setFlushing, setIndentString, setIndenting, setLineFeed, setWriter, skippedEntity, startDocument, startElement, startPrefixMapping

Method Details

startElement

public void startElement(String pNamespaceURI,
                         String pLocalName,
                         String pQName,
                         Attributes pAttrs)
            throws SAXException
Starts a new element.
Overrides:
startElement in interface XMLWriterImpl
Parameters: