I am trying to do this:
- Read html document "myDocument.html" with Node
- Insert contents of another html document named "foo.html" immediately after the open body tag of myDocument.html.
- Insert contents of yet another html document named "bar.html" immediately before the close body tag of myDocument.html.
- Save the modified version of "myDocument.html".
To do the above, I would need to search the DOM with Node to find the open and closing body tags. How can this be done?