Question: Problem Solving With C++ The XML (eXtensible Markup Langugage) is a common format used to structure and store data on the Web. The following is
Problem Solving With C++
The XML (eXtensible Markup Langugage) is a common format used to structure and store data on the Web. The following is a small sample XML file that could be used to store names in an address book. Type it in using a text editor and save it to a file named address.xml (or find it on the accompanying CD).
George Clooney
1042 El Camino Real
Beverly Hills CA 90214
Cathy Pearl
405 A St.
Palmdale CA 93352
Paris Hilton
200 S. Elm St.90212
Beverly Hills CA 93354
Wendy Jones
982 Boundary Ave.Palmdale
a. You are hosting a party in Palmdale, CA. Write a program that reads in the address.xml file and outputs the names and addresses of everyone in Palmdale.Your program shouldn't output any of the tag information, just the address content.
b. You would like to send an advertising flyer to everyone in zip codes 90210 through 90214. Write a program that reads in the address.xml file and outputs the names and addresses of everyone whose zip code falls within the specified range.
You may assume that each contact in the address file has the same structure and the same fields. However, your solution should be able to handle an input file with any number of contacts and should not assume that the fields within each contact are in the same order.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
