29.2 Parsing XML Documents - Parser example
- Create a helper function for each XML element
- description, price, and quantity simple,
so parsed inline
- main calls XMLPlatformUtils::Initialize; necessary
to use Xerces
- Program:
- Parses
items.xml,
description of a list of product items
- Produces a vector of Item objects
- Uses item.h,
item.cpp,
product.h, and
product.cpp
from (chptr 13)
prev
|top
|next