1
0

XMLString.h 623 B

123456789101112131415161718192021
  1. #include "xml/ifc_xmlcallback.h"
  2. #include "nx/nxmutablestring.h"
  3. /* this one is an xml callback that just saves the last encountered string */
  4. class XMLString : public ifc_xmlcallback
  5. {
  6. public:
  7. XMLString();
  8. ~XMLString();
  9. void Reset();
  10. nx_string_t GetString();
  11. private:
  12. /* XML callbacks */
  13. void WASABICALL XMLCallback_OnStartElement(const nsxml_char_t *xmlpath, const nsxml_char_t *xmltag, ifc_xmlattributes *attributes);
  14. void WASABICALL XMLCallback_OnCharacterData(const nsxml_char_t *xmlpath, const nsxml_char_t *xmltag, const nsxml_char_t *characters, size_t num_characters);
  15. nx_mutable_string_t data;
  16. };