I’ve got a simple XML document that I’m trying to parse (it’s my Last.fm weekly artist list, and unfortunately it’s not attribute based, and I’m having a lot of trouble getting it to work. Right now all I’m trying to do is read the text from each of the Artist elements, but getText() returns an empty string. I’ve done some debugging, and I’m sure I’m calling it on the right XmlElement, since the tag name is correct.
Furthermore, isTextElement() is apparently getting stuck in some kind of infinite loop when called on the Artist element, which terminates after about a minute with a breakpoint in malloc.c. When I use it on an element that isn’t a text element, it works fine.
What’s going on here? It’s a perfectly valid XML document as far as I can tell.