childname could be empty string when xpath has a single "/" at the end (should it be "Item" for this case?).