Modified handling of child nodes and added annotation to resolve the
content node.