apply parser to multiple top level nodes