## 29.3 Creating XML Documents (cont.)

- First, create elements:

  >     DOMElement* itemElement = create_element(doc, "item");
  >     DOMElement* product_element = create_element(doc, "product");
  >     DOMElement* description_element = create_text_element(doc,
  >        "description", "Ink Jet Refill Kit");
  >     DOMElement* price_element = create_text_element(doc,
  >        "price", "29.95");
  >     DOMElement* quantity_element
  >     	 = create_text_element(doc, "quantity", "8");

prev |top |next