legacy/src/main/java/thredds/catalog/InvCatalogFactory.java
public InvCatalogImpl readXML( String catAsString, URI baseUri )
  {
    return readXML( new StringReader( catAsString ), baseUri );
  }
public InvCatalogImpl readXML( String catAsString, URI baseUri )
  {
    return readXML( new StringReader( catAsString ), baseUri );
  }
Create an InvCatalog by reading catalog XML from a String.

Failures and exceptions are handled by causing validate() to
fail. Therefore, be sure to call validate() before trying to use
the InvCatalog object.

@param catAsString : the String from which to read the catalog.
@param baseUri : the base URI of the document, used for resolving reletive references.
@return an InvCatalogImpl object