build method to use an already parsed document
Merge pull request #2 from LGMAM/master

Added a build method