Adapted to modifications in Macro and Comment nodes
Adapt to: Simplified Text and CDATASection nodes by using String instead of char[]