if (child.getNodeType() != org.w3c.dom.Node.TEXT_NODE)
{
Node newTarget = target.create(child.getNodeName());
if (onlyTextChildren(child))
{
newTarget.text(child.getTextContent());
readAttributes(newTarget, child);
}
else
{
readRecursive(newTarget, child);