simple xml parser to investigate structure of xml segments