lib/src/main/java/edu/berkeley/boinc/rpc/ProjectConfigReplyParser.java
public static ProjectConfig parse(String rpcResult) {
		try {
			ProjectConfigReplyParser parser = new ProjectConfigReplyParser();
			//TODO report malformated XML to BOINC and remove String.replace here...
			//<boinc_gui_rpc_reply>
			//<?xml version="1.0" encoding="ISO-8859-1" ?>
			//<project_config>
			Xml.parse(rpcResult.replace("<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>", ""), parser);
			return parser.getProjectConfig();
		}
		catch (SAXException e) {
			return null;
		}		

	}
/**
	 * Parse the RPC result (state) and generate vector of projects info
	 * @param rpcResult String returned by RPC call of core client
	 * @return connected client state
	 */
Parse the RPC result (state) and generate vector of projects info
@param rpcResult String returned by RPC call of core client
@return connected client state
Parse the RPC result ( state ) and generate vector of projects info @param rpcResult String returned by RPC call of core client @return connected client state
public static ProjectConfig parse(String rpcResult) {
		try {
			ProjectConfigReplyParser parser = new ProjectConfigReplyParser();
			Xml.parse(rpcResult.replace("<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>", ""), parser);
			return parser.getProjectConfig();
		}
		catch (SAXException e) {
			return null;
		}		
	}
public static ProjectConfig parse ( String rpcResult ) { try { ProjectConfigReplyParser parser = new ProjectConfigReplyParser ( ) ; Xml . parse ( rpcResult . replace ( "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>" , "" ) , parser ) ; return parser . getProjectConfig ( ) ; } catch ( SAXException e ) { return null ; } }
Parse the RPC result (state) and generate vector of projects info
 @param rpcResult String returned by RPC call of core client
 @return connected client state
Parse the RPC result ( state ) and generate vector of projects info @param rpcResult String returned by RPC call of core client @return connected client state
//TODO report malformated XML to BOINC and remove String.replace here... //<boinc_gui_rpc_reply> //<?xml version="1.0" encoding="ISO-8859-1" ?> //<project_config>