## 29.2 Parsing XML Documents (cont.)

- If ASCII suffices, use following function to convert:

  >     string XMLCh_to_string(const XMLCh* in)
  >     {
  >        char* s = XMLString::transcode(in);
  >        string r(s);
  >        XMLString::release(&s);
  >        return r;
  >     }

  - `XMLString::transcode` converts `XMLCh` array into `char` array
  - `XMLString::release` recycles memory
- Localize library idiosyncrasies w/helper functions

prev |top |next