Added getRootElementCount() and indexing to the getChildValue() method.