How to use ast_xml?

Hello everyone,

I have a question concerning the Asterisk integrated libxml2 functioning:

The first two functions to call are

  • ast_xml_init(); which calls LIBXML_TEST_VERSION
  • *struct ast_xml_doc xmldoc = ast_xml_open("./filename.xml");

ast_xml_init(); seems to work, at least it doesn’t return 1.
ast_xml_open("./filename.xml"); does not return NULL but the thread stops after this line.

Are there any prerequirements that must be fulfilled I do not know of?
libxml2 is installed on my system. Libs are where they should be I suppose. The xml file is valid and correct. I also tried to give the absolute filepath but it didn’t change anything.

Thanks for any suggestions in advance!