cocoonParser.setContentHandler(handler); cocoonParser.parse(new InputSource(new StringReader(content)));
cocoonParser.parse(new InputSource(new StringReader(content)), handler);
	public void getContentAsSAX(ContentHandler handler) throws XMLDBException {		if (content == null)			getContent();		//		content can be a file		if (file != null)			getData();		if (cocoonParser == null) {			SAXParserFactory saxFactory = SAXParserFactory.newInstance();			saxFactory.setNamespaceAware(true);			saxFactory.setValidating(false);			try {				SAXParser sax = saxFactory.newSAXParser();				XMLReader reader = sax.getXMLReader();				reader.setContentHandler(handler);				reader.parse(new InputSource(new StringReader(content)));			} catch (SAXException saxe) {				throw new XMLDBException(ErrorCodes.VENDOR_ERROR, saxe.getMessage(), saxe);			} catch (ParserConfigurationException pce) {				throw new XMLDBException(ErrorCodes.VENDOR_ERROR, pce.getMessage(), pce);			} catch (IOException ioe) {				throw new XMLDBException(ErrorCodes.VENDOR_ERROR, ioe.getMessage(), ioe);			}		} else			try {				cocoonParser.setContentHandler(handler);				cocoonParser.parse(new InputSource(new StringReader(content)));			} catch (SAXException saxe) {				throw new XMLDBException(ErrorCodes.VENDOR_ERROR, saxe.getMessage(), saxe);			} catch (IOException ioe) {				throw new XMLDBException(ErrorCodes.VENDOR_ERROR, ioe.getMessage(), ioe);			}	}