Added support for XMLLiterals

Applied to the code with the embedded node fixes.