public void loadWorkspaceContents(String xml) throws BlocklyParserException {
  loadWorkspaceContents(new ByteArrayInputStream(xml.getBytes()));
}

public void loadWorkspaceContents ( String xml ) throws BlocklyParserException { loadWorkspaceContents ( new ByteArrayInputStream ( xml . getBytes ( ) ) ) ; }
reads the workspace in from a xml stream . this will clear the workspace and replace it with the contents of the xml .
