The behavior of the XML processor can be fine-tuned by passing the parser handle, the option and the desired value to xml_parser_set_option. Most often you will find yourself using this function to disable case folding (which oddly enough is enabled by default even though it goes against the XML specification).