Methods for both LibXml and NokoGiri. Not working correctly yet.