private Object readMetadataContentFromURL ( InvDataset dataset , String urlString ) throws java . net . MalformedURLException , java . io . IOException { // @todo This isn't used anywhere. Remove? Document doc ; try { SAXBuilder builder = new SAXBuilder ( true ) ; doc = builder . build ( urlString ) ; } catch ( JDOMException e ) { log . error ( "CatGenConfigMetadataFactory parsing error= \n" + e . getMessage ( ) ) ; throw new java . io . IOException ( "CatGenConfigMetadataFactory parsing error= " + e . getMessage ( ) ) ; } if ( showParsedXML ) { XMLOutputter xmlOut = new XMLOutputter ( Format . getPrettyFormat ( ) ) ; System . out . println ( "*** catalog/showParsedXML = \n" + xmlOut . outputString ( doc ) + "\n*******" ) ; } return ( readMetadataContentJdom ( dataset , doc . getRootElement ( ) ) ) ; }
Create an InvMetadata content object from an XML document at a named URL . The content object is an ArrayList of CatalogGenConfig instances .