Processing 2.0 XML API compat

added listAttributes and getParent for Processing 2.0 XML API compatibility (plus unit tests)