code: public static Document getDomFromString( String str )
      {
          DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
          factory.setNamespaceAware( true );
  
          try {
              DocumentBuilder builder = factory.newDocumentBuilder();
              return builder.parse( new InputSource( new StringReader( str ) ) );
          } catch ( Exception e ) {
              throw new CStorageException( "Error parsing the Xml response: " + str, e );
          }
      }
docs: Parses a string and build a DOM
  
  @return DOM