NdsBeisEsb/src/main/java/com/northgateps/nds/beis/esb/dashboard/DashboardUtils.java
/**
     * Takes xml as string and convert that string to a Document
     * 
     * @return Document xml document
     * @throws NdsApplicationException 
     */
Takes xml as string and convert that string to a Document

@return Document xml document
@throws NdsApplicationException
Takes xml as string and convert that string to a Document @return Document xml document @throws NdsApplicationException
public static Document convertStringToDocument(String xmlStr) throws NdsApplicationException {
        DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
        DocumentBuilder builder;
        try {
            builder = factory.newDocumentBuilder();
            Document doc = builder.parse(new InputSource(new StringReader(xmlStr)));
            return doc;
        } catch (Exception e) {
            throw new NdsApplicationException(e.getCause());
        }
    }
public static Document convertStringToDocument ( String xmlStr ) throws NdsApplicationException { DocumentBuilderFactory factory = DocumentBuilderFactory . newInstance ( ) ; DocumentBuilder builder ; try { builder = factory . newDocumentBuilder ( ) ; Document doc = builder . parse ( new InputSource ( new StringReader ( xmlStr ) ) ) ; return doc ; } catch ( Exception e ) { throw new NdsApplicationException ( e . getCause ( ) ) ; } }
Takes xml as string and convert that string to a Document
Takes xml as string and convert that string to a Document