stringreader & xml parser utilities