Question: In c++ for beginners please, using basic libraries 13. The XML (eXtensible Markup Language) is a common format used to struc- ture and store data

In c++ for beginners please, using basic libraries

In c++ for beginners please, using basic libraries 13. The XML (eXtensible

Markup Language) is a common format used to struc- ture and store

13. The XML (eXtensible Markup Language) is a common format used to struc- ture 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 usinga text editor and save it to a file named address. xm1 (or find it at the ac- companying website). sname>George Clooney 1042 E1 Camino Real city>Beverly Hillss/city> CA 90214 sname>Cathy Pearl 405 A St. Palmdalec/city> CA zip> 93352/z1ps ccontact> sname>Paris Hi1tonsame> 200 S. E1m St. city>Beverly Hi11s/city> CAk/state> zip>90212/zip> econtact> sname>Wendy Jones street>982 Boundary Ave. ccity Palmdalec/city> CA zip> 93354 book> The sample file contains four contacts. The tag denotes the start of a field and the > tag denotes the end of the field. a. You are hosting a party in Palmdale, CA. Write a program that reads in the address.xm1 file and outputs the names and addresses of everyone in Palmdale. Your program shouldn't output any of the tag informa- tion, 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. xm 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!