org.compass.core.converter.xsem
Interface XmlContentConverter

All Known Subinterfaces:
XmlContentConverterWrapper
All Known Implementing Classes:
AbstractXmlOutputterXmlContentConverter, AbstractXmlWriterXmlContentConverter, NodeXmlContentConverter, PoolXmlContentConverterWrapper, PrototypeXmlContentConverterWrapper, SAXBuilderXmlContentConverter, SAXReaderXmlContentConverter, SingletonXmlContentConverterWrapper, STAXBuilderXmlContentConverter, StaxNodeXmlContentConverter, STAXReaderXmlContentConverter, XPP3ReaderXmlContentConverter, XPPReaderXmlContentConverter

public interface XmlContentConverter

Converts an XmlObject to and from an xml string.

Author:
kimchy

Method Summary
 AliasedXmlObject fromXml(String alias, Reader xml)
          Converts an xml string into an AliasedXmlObject.
 String toXml(XmlObject xmlObject)
          Converts an XmlObject into an xml string.
 

Method Detail

toXml

String toXml(XmlObject xmlObject)
             throws ConversionException
Converts an XmlObject into an xml string.

Parameters:
xmlObject - The xml object to convert to an xml string
Returns:
An xml string representation of the xml object
Throws:
ConversionException - Failed to convert the xml object to an xml string

fromXml

AliasedXmlObject fromXml(String alias,
                         Reader xml)
                         throws ConversionException
Converts an xml string into an AliasedXmlObject.

Parameters:
alias - The alias the aliases xml object is associated with
xml - The xml string that will be converted into an aliases xml object
Returns:
The aliases xml object that is the restult of the xml parsed
Throws:
ConversionException


Copyright (c) 2004-2009 The Compass Project.