protected void parseresponse ( Node root ) throws ParseException { String elemname = root . getNodeName ( ) ; if ( elemname . equalsIgnoreCase ( "Error" ) ) { parseerror ( root ) ; } else if ( elemname . equalsIgnoreCase ( "Dataset" ) ) { parsedataset ( root ) ; } else throw new ParseException ( "Unexpected response root: " + elemname ) ; }
Recursive descent parser