public void loadExampleStatementsFromXMLString(String xmlString) 
    		throws JSONException, IllegalArgumentException, JsonParseException, JsonMappingException, IOException
    {
    	if (LOGGER.isTraceEnabled()) {
    		LOGGER.trace("Receiving json string: " + xmlString);
    	}
    	JSONObject jsonobject = XML.toJSONObject(xmlString);
    	String[] root = JSONObject.getNames(jsonobject);
    	if (null == root) {
    		throw new IllegalArgumentException("no root object in xml found");
    	}
    	if (root.length > 1) {
    		throw new IllegalArgumentException("more than one root objects found");
    	}
    	JSONObject statement = jsonobject.getJSONObject(root[0]);
    	loadExampleStatementsFromJsonString(statement.toString());
    }
public void loadExampleStatementsFromXMLString ( String xmlString ) throws JSONException , IllegalArgumentException , JsonParseException , JsonMappingException , IOException { if ( LOGGER . isTraceEnabled ( ) ) { LOGGER . trace ( "Receiving json string: " + xmlString ) ; } JSONObject jsonobject = XML . toJSONObject ( xmlString ) ; String [ ] root = JSONObject . getNames ( jsonobject ) ; if ( null == root ) { throw new IllegalArgumentException ( "no root object in xml found" ) ; } if ( root . length > 1 ) { throw new IllegalArgumentException ( "more than one root objects found" ) ; } JSONObject statement = jsonobject . getJSONObject ( root [ 0 ] ) ; loadExampleStatementsFromJsonString ( statement . toString ( ) ) ; }
vendor must be set and a type of {@link Vendor}
@param xmlString
@throws JSONException
@throws IllegalArgumentException
@throws IOException
@throws JsonMappingException
@throws JsonParseException
@see ExampleStatements