return cp.parseIntoBuilder( new StringReader( catalogXml ), docBaseUri );
}
public static void writeCatalogXml( Catalog cat )
{
ThreddsXmlWriter txw = ThreddsXmlWriterFactory.newInstance().createThreddsXmlWriter();
try {
txw.writeCatalog( cat, System.out );
}
catch ( ThreddsXmlWriterException e )
{
e.printStackTrace();
fail( "Failed writing catalog to sout: " + e.getMessage() );