basic functionality for parsing xml