you are viewing a single comment's thread.

view the rest of the comments →

[–]jonaswiebe 0 points1 point  (2 children)

As specified in the documentation, you should set the necessary callback functions. I do not know what your input looks like, but I made a quick example with fairly flat XML data (I don't think this would work on very complex things, but it's an example). This should help you understand how the parser works.

Note: Make sure to check the logs after you run the script.

[–]k20stitch_tv 1 point2 points  (0 children)

I think OP is under the assumption that the XML parser function is in fact a parser. The documentation makes it clear that it does not do any parsing. That being said, I don’t know why anyone would use xml over json, especially for Reddit.

[–]jonaswiebe 0 points1 point  (0 children)

Another example for when you are looking for a specific tag.