Updated with latest schema
Added a $nodeAttribute var to express schema for main node