Added ability to get a child node by its index.
Added a helper method to make it easier to get the value for an attribute.