## Productivity Hint 29.1 (cont.)

- If a child element doesn't contain text, call its `getChildElementName` function
- If it does, then read the element data:

  >     DOMText* text_node = dynamic_cast<DOMText*>(
  >        child_element->getFirstChild());
  >     string data = XMLCh_to_string(text_node->getData());

- Convert strings to numbers, as necessary
- Implement functions bottom-up

prev |top |next