Advertisement
Guest User

Untitled

a guest
Feb 15th, 2016
436
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 252.05 KB | None | 0 0
  1.  
  2. cse156h Program Grade Checker - Grader Interface
  3.  
  4. This interface is for graders
  5. Grade A Student's Program
  6. CSE Login
  7. CSE Password
  8. Student CSE Login
  9. Assignment
  10.  
  11. Individual Grade Results
  12. Results for (Nathaniel Bauman) (nbauman)
  13. Homework 2
  14. [-] Test Suite CSCE 156H/RAIK 184H - Spring 2016 - Assignment 2 - EDI Phase - Grader Suite
  15.  
  16. This is a test suite for Assignment 2, XML/JSON output.
  17.  
  18. Note: random test cases are pulled from a larger pool. Different runs of the grader can result in different test cases; your program should be stable enough to handle any and all of them.
  19.  
  20. [-] Source Files
  21. [-] Equipment.java
  22.  
  23. package cse.unl.edu;
  24. public class Equipment extends Product {
  25. private double pricePerUnit;
  26. public Equipment(String code, char type, String name, double pricePerUnit) {
  27. super(code, type, name);
  28. this.pricePerUnit = pricePerUnit;
  29. }
  30.  
  31. @Override
  32. public String toString() {
  33. String eq = "Equipment [pricePerUnit=" + pricePerUnit + "]";
  34. return super.toString() + " " + eq;
  35. }
  36. public double getPricePerUnit() {
  37. return pricePerUnit;
  38. }
  39. public void setPricePerUnit(double pricePerUnit) {
  40. this.pricePerUnit = pricePerUnit;
  41. }
  42.  
  43. }
  44.  
  45. [-] Person.java
  46.  
  47. package cse.unl.edu;
  48. import java.util.Arrays;
  49. import com.thoughtworks.xstream.XStream;
  50. import com.thoughtworks.xstream.io.json.JsonHierarchicalStreamDriver;
  51. public class Person {
  52. @Override
  53. public String toString() {
  54. return "Person [" + (personCode != null ? "personCode=" + personCode + ", " : "")
  55. + (firstName != null ? "firstName=" + firstName + ", " : "")
  56. + (lastName != null ? "lastName=" + lastName + ", " : "")
  57. + (address != null ? "address=" + address + ", " : "")
  58. + (emails != null ? "emails=" + Arrays.toString(emails) : "") + "]";
  59. }
  60. private String personCode;
  61. private String firstName;
  62. private String lastName;
  63. private Address address;
  64. private String emails[];
  65.  
  66. public Person(String personCode, String firstName, String lastName, Address address, String[] emails) {
  67. this.personCode = personCode;
  68. this.firstName = firstName;
  69. this.lastName = lastName;
  70. this.address = address;
  71. this.emails = emails;
  72. }
  73. public Person(String personCode, String firstName, String lastName, Address address) {
  74. this.emails = null;
  75. this.personCode = personCode;
  76. this.firstName = firstName;
  77. this.lastName = lastName;
  78. this.address = address;
  79. }
  80. public String getPersonCode() {
  81. return personCode;
  82. }
  83. public void setPersonCode(String personCode) {
  84. this.personCode = personCode;
  85. }
  86. public String getFirstName() {
  87. return firstName;
  88. }
  89. public void setFirstName(String firstName) {
  90. this.firstName = firstName;
  91. }
  92. public String getLastName() {
  93. return lastName;
  94. }
  95. public void setLastName(String lastName) {
  96. this.lastName = lastName;
  97. }
  98. public Address getAddress() {
  99. return address;
  100. }
  101. public void setAddress(Address address) {
  102. this.address = address;
  103. }
  104. public String[] getEmails() {
  105. return emails;
  106. }
  107. public void setEmails(String[] emails) {
  108. this.emails = emails;
  109. }
  110.  
  111. //creates XML formatting for an individual Person
  112. public String toXML(){
  113. XStream xstream = new XStream();
  114. xstream.alias("person", Person.class);
  115. xstream.alias("address", Address.class);
  116. return xstream.toXML(this);
  117.  
  118. }
  119.  
  120. //creates XML formatting for an array of People
  121. public static String arrayToXML(Person[] people){
  122. String xml = "<persons>\n";
  123. for(Person p : people){
  124. xml += p.toXML() + "\n";
  125. }
  126. xml += "</persons>";
  127. xml = xml.replaceAll("string", "email");
  128. return xml;
  129. }
  130.  
  131. //uses xStream and replaces incorrect formatting to create JSON data from the Customer
  132. public String toJSON(){
  133. XStream xstream = new XStream(new JsonHierarchicalStreamDriver());
  134. xstream.setMode(XStream.NO_REFERENCES);
  135. xstream.alias("person", Person.class);
  136. xstream.alias("address", Address.class);
  137. String json = xstream.toXML(this);
  138. String json2 = json.replace("{\"person\": {", "{");
  139. String json3 = json2.replaceAll("}}","},");
  140. return json3;
  141. }
  142.  
  143. //indents all the lines in a String
  144. //used to correctly indent objects belonging to other objects when printing in JSON
  145. public static String addSpace(String s, int n) {
  146. String nLine,nnLine = "", str = "";
  147. String line[] = s.split("\n");
  148.  
  149. //adds n number of spaces
  150. for(int i=0; i<n; i++) {
  151. str += " ";
  152. }
  153.  
  154. //adds n number of spaces in front of each line
  155. for(int i=0; i<line.length; i++) {
  156. nLine = str + line[i];
  157. if(line[i] != line[line.length-1]) {
  158. nLine += "\n";
  159. }
  160. nnLine += nLine;
  161. }
  162. return nnLine;
  163. }
  164.  
  165. //creates JSON formatting for an array of People
  166. public static String arrayToJSON(Person[] people){
  167. String xml = "{\n \"persons\": {\n \"person\": [\n";
  168. for(Person p : people){
  169. xml += addSpace(p.toJSON(),4) + "\n";
  170. }
  171. xml += " ]\n }\n}\n";
  172. xml = xml.replaceAll("},\n ]","}\n ]");
  173. return xml;
  174. }
  175. }
  176.  
  177. [-] DataConverter.java
  178.  
  179. package cse.unl.edu;
  180. import java.io.File;
  181. import java.io.FileNotFoundException;
  182. import java.io.PrintWriter;
  183. import java.util.Scanner;
  184. public class DataConverter {
  185. public static void main(String[] args) throws FileNotFoundException{
  186.  
  187. int i = 0;
  188.  
  189. String line = "";
  190. //Scans and retrieves data from the persons file
  191. Scanner sc = new Scanner(new File("data/Persons.dat"));
  192. //retrieves the number of lines in the file
  193. int numberOfLines = Integer.parseInt(sc.nextLine());
  194. Person people[] = new Person[numberOfLines];
  195.  
  196. //tokenizes and organizes data
  197. while (i<numberOfLines) {
  198. line = sc.nextLine();
  199. String tokens[] = line.split(";");
  200.  
  201. String personCode = tokens[0].trim();
  202.  
  203. String name[] = tokens[1].split(",");
  204. String firstName = name[1].trim();
  205. String lastName = name[0].trim();
  206.  
  207. String add[] = tokens[2].split(",");
  208. String street = add[0].trim();
  209. String city = add[1].trim();
  210. String state = add[2].trim();
  211. String zip = add[3].trim();
  212. String country = add[4].trim();
  213. Address address = null;
  214. //zip may be empty, so check it before constructing Address using one of two constructors
  215. if(zip.isEmpty()){
  216. address = new Address(street, city, state, country);
  217. }else{
  218. address = new Address(street, city, state, zip, country);
  219. }
  220.  
  221. //constructing using fields above
  222. if(tokens.length <= 3){
  223. people[i] = new Person(personCode, firstName, lastName, address);
  224. }else{
  225. String emails[] = tokens[3].split(",");
  226. for(String email:emails){
  227. email = email.trim();
  228. }
  229. people[i] = new Person(personCode, firstName, lastName, address, emails);
  230. }
  231.  
  232. //System.out.println(people[i].toString());
  233. i++;
  234. }
  235. sc.close();
  236.  
  237. //reads in data from Customers file
  238. i = 0;
  239. String line2 = "";
  240. Scanner sc2 = new Scanner(new File("data/Customers.dat"));
  241. //retrieves the number of lines in the file
  242. int numberOfLines2 = Integer.parseInt(sc2.nextLine());
  243. Customer customers[] = new Customer[numberOfLines2];
  244.  
  245. //tokenizes and organizes data
  246. while (i<numberOfLines2) {
  247. line2 = sc2.nextLine();
  248. String tokens[] = line2.split(";", 5);
  249.  
  250. String customerCode = tokens[0].trim();
  251.  
  252. char type = tokens[1].charAt(0);
  253.  
  254. String personCode = tokens[3].trim();
  255. Person primaryContact = null;
  256. for(int j=0; j<people.length; j++){
  257. if(people[j].getPersonCode().equals(personCode)){
  258. primaryContact = people[j];
  259. }
  260. }
  261.  
  262. String company = tokens[3].trim();
  263.  
  264. String add[] = tokens[4].split(",", 5);
  265. String street = add[0].trim();
  266. String city = add[1].trim();
  267. String state = add[2].trim();
  268. String zip = add[3].trim();
  269. String country = add[4].trim();
  270. Address address = null;
  271. //test to see if there is a zip code
  272. if(zip.isEmpty()){
  273. address = new Address(street, city, state, country);
  274. }else{
  275. address = new Address(street, city, state, zip, country);
  276. }
  277.  
  278. //constructs Customer using fields
  279. customers[i] = new Customer(customerCode, type, primaryContact, company, address);
  280. System.out.println(customers[i].toString());
  281. i++;
  282. }
  283. sc2.close();
  284.  
  285. //Scans and retrieves data from the persons file
  286. i = 0;
  287. String line3 = "";
  288. Scanner sc3 = new Scanner(new File("data/Products.dat"));
  289. //retrieves the number of lines in the file
  290. int numberOfLines3 = Integer.parseInt(sc3.nextLine());
  291. Product products[] = new Product[numberOfLines3];
  292.  
  293. //tokenizes and organizes data
  294. while (i<numberOfLines3){
  295. line3 = sc3.nextLine();
  296.  
  297. String tokens[] = line3.split(";", 5);
  298.  
  299. String productCode = tokens[0].trim();
  300.  
  301. char type = tokens[1].charAt(0);
  302.  
  303. String companyName = tokens[2].trim();
  304.  
  305. //Tests to see which subclass of Product the object is and retrieves the object's unique variables and constructs the object
  306. if(type == 'E'){
  307. double pricePerUnit = Double.parseDouble(tokens[3].trim());
  308.  
  309. Product E = new Equipment(productCode, type, companyName, pricePerUnit);
  310. products[i] = E;
  311.  
  312. }else if(type == 'L'){
  313. double serviceFee = Double.parseDouble(tokens[3].trim());
  314.  
  315. double annualLicenseFee = Double.parseDouble(tokens[4].trim());
  316.  
  317. Product L = new License(productCode, type, companyName, serviceFee, annualLicenseFee);
  318. products[i] = L;
  319.  
  320. }else if(type == 'C'){
  321.  
  322. String personCode = tokens[3].trim();
  323. Person consultant = null;
  324. for(Person p : people){
  325. if(p.getPersonCode().equals(personCode)) {
  326. consultant = p;
  327. }
  328. }
  329.  
  330. double hourlyFee = Double.parseDouble(tokens[4].trim());
  331.  
  332. Product C = new Consultation(productCode, type, companyName, consultant, hourlyFee);
  333. products[i] = C;
  334.  
  335. }
  336. System.out.println(products[i].toString());
  337. i++;
  338. }
  339. sc3.close();
  340.  
  341. //writes the data to the respective file
  342. PrintWriter pw = new PrintWriter(new File("data/Persons.xml"));
  343. pw.print(Person.arrayToXML(people));
  344. pw.close();
  345.  
  346. PrintWriter pw2 = new PrintWriter(new File("data/Persons.json"));
  347. pw2.print(Person.arrayToJSON(people));
  348. pw2.close();
  349.  
  350. PrintWriter pw3 = new PrintWriter(new File("data/Customers.xml"));
  351. pw3.print(Customer.arrayToXML(customers));
  352. pw3.close();
  353.  
  354. PrintWriter pw4 = new PrintWriter(new File("data/Customers.json"));
  355. pw4.print(Customer.arrayToXML(customers));
  356. pw4.close();
  357.  
  358. PrintWriter pw5 = new PrintWriter(new File("data/Products.xml"));
  359. pw5.print(Product.arrayToXML(products));
  360. pw5.close();
  361.  
  362. PrintWriter pw6 = new PrintWriter(new File("data/Products.json"));
  363. pw6.print(Product.arrayToJSON(products));
  364. pw6.close();
  365. }
  366. }
  367.  
  368. [-] Product.java
  369.  
  370. package cse.unl.edu;
  371. import com.thoughtworks.xstream.XStream;
  372. import com.thoughtworks.xstream.io.json.JsonHierarchicalStreamDriver;
  373. public abstract class Product {
  374. private String code;
  375. private char type;
  376. private String name;
  377.  
  378.  
  379. public Product(String code, char type, String name) {
  380. this.code = code;
  381. this.type = type;
  382. this.name = name;
  383. }
  384.  
  385. @Override
  386. public String toString() {
  387. return "Product [" + (code != null ? "code=" + code + ", " : "") + "type=" + type + ", "
  388. + (name != null ? "name=" + name : "") + "]";
  389. }
  390. public String getCode() {
  391. return code;
  392. }
  393. public void setCode(String code) {
  394. this.code = code;
  395. }
  396. public char getType() {
  397. return type;
  398. }
  399. public void setType(char type) {
  400. this.type = type;
  401. }
  402. public String getName() {
  403. return name;
  404. }
  405. public void setName(String name) {
  406. this.name = name;
  407. }
  408.  
  409. //creates XML formatting for an individual Product
  410. public String toXML(){
  411. XStream xstream = new XStream();
  412. xstream.alias("person", Person.class);
  413. xstream.alias("address", Address.class);
  414. xstream.aliasField("productCode", Product.class, "code");
  415. xstream.alias("license", License.class);
  416. xstream.alias("equipment", Equipment.class);
  417. xstream.alias("consultation", Consultation.class);
  418. xstream.omitField(Product.class, "type");
  419. xstream.aliasField("fee", License.class, "serviceFee");
  420. xstream.aliasField("annualCost", License.class, "annualLicenseFee");
  421. xstream.aliasField("pricePerHour", Consultation.class, "hourlyFee");
  422. return xstream.toXML(this);
  423.  
  424. }
  425.  
  426. //creates XML formatting for an array of Products
  427. public static String arrayToXML(Product[] products){
  428. String xml = "<products>\n";
  429. for(Product p : products){
  430. xml += p.toXML() + "\n";
  431. }
  432. xml += "</products>";
  433. return xml;
  434. }
  435.  
  436. //uses xStream and replaces incorrect formatting to create JSON data from the Product
  437. public String toJSON(){
  438. XStream xstream = new XStream(new JsonHierarchicalStreamDriver());
  439. xstream.setMode(XStream.NO_REFERENCES);
  440. xstream.alias("x", License.class);
  441. xstream.alias("x", Equipment.class);
  442. xstream.alias("x", Consultation.class);
  443. xstream.omitField(Product.class, "type");
  444. String json = xstream.toXML(this);
  445. String json2 = json.replace("{\"x\": {", "{");
  446. String json3 = json2.replaceAll("}}", "},");
  447. return json3;
  448.  
  449. }
  450.  
  451.  
  452. //creates JSON formatting for an array of Products
  453. static String arrayToJSON(Product[] products){
  454. String xml = "{\n\"products\": [";
  455. for(Product p: products){
  456. xml += Person.addSpace(p.toJSON(), 2) + "\n";
  457. }
  458. xml += "]}";
  459. xml = xml.replaceAll("},\n]}", "}\n]}");
  460. return xml;
  461. }
  462. }
  463.  
  464. [-] Customer.java
  465.  
  466. package cse.unl.edu;
  467. import com.thoughtworks.xstream.XStream;
  468. import com.thoughtworks.xstream.io.json.JsonHierarchicalStreamDriver;
  469. public class Customer {
  470. private String customerCode;
  471. private String companyName;
  472. private Address address;
  473. private Person primaryContact;
  474. private char type;
  475.  
  476.  
  477.  
  478. public Customer(String customerCode, char type, Person primaryContact, String companyName, Address address) {
  479. this.customerCode = customerCode;
  480. this.type = type;
  481. this.primaryContact = primaryContact;
  482. this.companyName = companyName;
  483. this.address = address;
  484. }
  485. public String getCustomerCode() {
  486. return customerCode;
  487. }
  488. public void setCustomerCode(String customerCode) {
  489. this.customerCode = customerCode;
  490. }
  491. @Override
  492. public String toString() {
  493. return "Customer [" + (customerCode != null ? "customerCode=" + customerCode + ", " : "") + "type=" + type
  494. + ", " + (primaryContact != null ? "primaryContact=" + primaryContact + ", " : "")
  495. + (companyName != null ? "companyName=" + companyName + ", " : "")
  496. + (address != null ? "address=" + address : "") + "]";
  497. }
  498. public Address getAddress() {
  499. return address;
  500. }
  501. public void setAddress(Address address) {
  502. this.address = address;
  503. }
  504. public String getCompanyName() {
  505. return companyName;
  506. }
  507. public void setCompanyName(String companyName) {
  508. this.companyName = companyName;
  509. }
  510. public Person getPrimaryContact() {
  511. return primaryContact;
  512. }
  513. public void setPrimaryContact(Person primaryContact) {
  514. this.primaryContact = primaryContact;
  515. }
  516. public char getType() {
  517. return type;
  518. }
  519. public void setType(char type) {
  520. this.type = type;
  521. }
  522.  
  523. //creates XML formatting for an individual Customer
  524. public String toXML(){
  525. XStream xstream = new XStream();
  526. xstream.alias("person", Person.class);
  527. xstream.alias("address", Address.class);
  528. if(this.getType() == 'G'){
  529. xstream.alias("governmentCustomer", Customer.class);
  530. }else if(this.getType() == 'C'){
  531. xstream.alias("companyCustomer", Customer.class);
  532. }
  533. xstream.omitField(Customer.class, "type");
  534. return xstream.toXML(this);
  535. }
  536.  
  537. //creates XML formatting for an array of Customers
  538. public static String arrayToXML(Customer[] customer){
  539. String xml = "<customers>\n";
  540. for(Customer c : customer){
  541. xml += c.toXML() + "\n";
  542. }
  543. xml += "</customers>";
  544. xml = xml.replaceAll("string", "email");
  545. return xml;
  546. }
  547.  
  548. //uses xStream and replaces incorrect formatting to create JSON data from the Customer
  549. public String toJSON(){
  550. XStream xstream = new XStream(new JsonHierarchicalStreamDriver());
  551. xstream.setMode(XStream.NO_REFERENCES);
  552. xstream.alias("c", Customer.class);
  553. xstream.alias("address", Address.class);
  554. xstream.omitField(Customer.class, "type");
  555. String json = xstream.toXML(this);
  556. String json2 = json.replace("{\"c\": {", "{");
  557. String json3 = json2.replaceAll("}}", "},");
  558. return json3;
  559.  
  560. }
  561.  
  562. //creates JSON formatting for an array of Customers
  563. public static String arrayToJSON(Customer[] customers){
  564. String xml = "{\n\"customers\": [\n";
  565. for(Customer c: customers){
  566. xml += Person.addSpace(c.toJSON(), 2) + "\n";
  567. }
  568. xml += "]}";
  569. xml = xml.replaceAll("},\n]}","}\n]}");
  570. return xml;
  571. }
  572.  
  573. }
  574.  
  575. [-] License.java
  576.  
  577. package cse.unl.edu;
  578. public class License extends Product {
  579. private double serviceFee;
  580. private double annualLicenseFee;
  581.  
  582. public License(String code, char type, String name, double serviceFee, double annualLicenseFee) {
  583. super(code, type, name);
  584. this.serviceFee = serviceFee;
  585. this.annualLicenseFee = annualLicenseFee;
  586. }
  587.  
  588.  
  589.  
  590. @Override
  591. public String toString() {
  592. String li = "License [serviceFee=" + serviceFee + ", annualLicenseFee=" + annualLicenseFee + "]";
  593. return super.toString() + " " + li;
  594. }
  595. public double getServiceFee() {
  596. return serviceFee;
  597. }
  598. public void setServiceFee(double serviceFee) {
  599. this.serviceFee = serviceFee;
  600. }
  601. public double getAnnualLicenseFee() {
  602. return annualLicenseFee;
  603. }
  604. public void setAnnualLicenseFee(double annualLicenseFee) {
  605. this.annualLicenseFee = annualLicenseFee;
  606. }
  607.  
  608.  
  609. }
  610.  
  611. [-] Consultation.java
  612.  
  613. package cse.unl.edu;
  614. public class Consultation extends Product{
  615. private Person consultant;
  616. private double hourlyFee;
  617.  
  618.  
  619. public Consultation(String code, char type, String name, Person consultant, double hourlyFee) {
  620. super(code, type, name);
  621. this.consultant = consultant;
  622. this.hourlyFee = hourlyFee;
  623. }
  624. @Override
  625. public String toString() {
  626. String con = "Consultation [" + (consultant != null ? "consultant=" + consultant + ", " : "") + "hourlyFee="
  627. + hourlyFee + "]";
  628. return super.toString() + " " + con;
  629. }
  630. public Person getConsultant() {
  631. return consultant;
  632. }
  633. public void setConsultant(Person consultant) {
  634. this.consultant = consultant;
  635. }
  636. public double getHourlyFee() {
  637. return hourlyFee;
  638. }
  639. public void setHourlyFee(double hourlyFee) {
  640. this.hourlyFee = hourlyFee;
  641. }
  642.  
  643.  
  644. }
  645.  
  646. [-] Address.java
  647.  
  648. package cse.unl.edu;
  649. public class Address {
  650. private String street;
  651. private String city;
  652. private String state;
  653. private String zip;
  654. private String country;
  655. public Address(String street, String city, String state, String country) {
  656. this.zip = null;
  657. this.street = street;
  658. this.city = city;
  659. this.state = state;
  660. this.country = country;
  661. }
  662. public Address(String street, String city, String state, String zip, String country) {
  663. this.street = street;
  664. this.city = city;
  665. this.state = state;
  666. this.zip = zip;
  667. this.country = country;
  668. }
  669. public String getStreet() {
  670. return street;
  671. }
  672. public void setStreet(String street) {
  673. this.street = street;
  674. }
  675. public String getCity() {
  676. return city;
  677. }
  678. public void setCity(String city) {
  679. this.city = city;
  680. }
  681. public String getState() {
  682. return state;
  683. }
  684. public void setState(String state) {
  685. this.state = state;
  686. }
  687. @Override
  688. public String toString() {
  689. return "Address [street=" + street + ", city=" + city + ", state=" + state + ", zip=" + zip + ", country="
  690. + country + "]";
  691. }
  692. public String getZip() {
  693. return zip;
  694. }
  695. public void setZip(String zip) {
  696. this.zip = zip;
  697. }
  698. public String getCountry() {
  699. return country;
  700. }
  701. public void setCountry(String country) {
  702. this.country = country;
  703. }
  704.  
  705. }
  706.  
  707. Running Test Module Commands...
  708. [-] Test Module Cinco Invoice System
  709.  
  710. Checking for required files...
  711. [-] Pre Testing Commands
  712. [-] Zip Archive File Contents (did you build it right?)
  713.  
  714. Archive: DataConverter.zip
  715. Length Date Time Name
  716. --------- ---------- ----- ----
  717. 606 2016-02-09 17:51 Project/.classpath
  718. 383 2016-02-09 17:48 Project/.project
  719. 598 2016-02-09 17:48 Project/.settings/org.eclipse.jdt.core.prefs
  720. 2037 2016-02-09 17:51 Project/bin/cse/unl/edu/Address.class
  721. 1666 2016-02-09 17:54 Project/bin/cse/unl/edu/Consultation.class
  722. 4404 2016-02-11 17:57 Project/bin/cse/unl/edu/Customer.class
  723. 6103 2016-02-11 18:27 Project/bin/cse/unl/edu/DataConverter.class
  724. 1160 2016-02-09 17:51 Project/bin/cse/unl/edu/Equipment.class
  725. 1420 2016-02-09 17:51 Project/bin/cse/unl/edu/License.class
  726. 4963 2016-02-11 17:58 Project/bin/cse/unl/edu/Person.class
  727. 3753 2016-02-11 17:58 Project/bin/cse/unl/edu/Product.class
  728. 56702 2016-02-08 19:08 Project/lib/jettison-1.0.1.jar
  729. 48224 2016-02-08 19:52 Project/lib/json-20151123.jar
  730. 7188 2016-02-08 16:23 Project/lib/xmlpull-1.1.3.1.jar
  731. 24956 2016-02-08 16:22 Project/lib/xpp3_min-1.1.4c.jar
  732. 538830 2016-02-08 16:04 Project/lib/xstream-1.4.8.jar
  733. 1366 2016-02-08 15:32 Project/src/cse/unl/edu/Address.java
  734. 861 2016-02-09 17:54 Project/src/cse/unl/edu/Consultation.java
  735. 3321 2016-02-11 17:57 Project/src/cse/unl/edu/Customer.java
  736. 5788 2016-02-11 18:27 Project/src/cse/unl/edu/DataConverter.java
  737. 574 2016-02-05 15:45 Project/src/cse/unl/edu/Equipment.java
  738. 878 2016-02-05 15:43 Project/src/cse/unl/edu/License.java
  739. 3828 2016-02-11 17:58 Project/src/cse/unl/edu/Person.java
  740. 2710 2016-02-11 17:58 Project/src/cse/unl/edu/Product.java
  741. --------- -------
  742. 722319 24 files
  743.  
  744. [-] Jar File Contents
  745.  
  746. META-INF/MANIFEST.MF
  747. org/
  748. org/eclipse/
  749. org/eclipse/jdt/
  750. org/eclipse/jdt/internal/
  751. org/eclipse/jdt/internal/jarinjarloader/
  752. org/eclipse/jdt/internal/jarinjarloader/JIJConstants.class
  753. org/eclipse/jdt/internal/jarinjarloader/JarRsrcLoader$ManifestInfo.class
  754. org/eclipse/jdt/internal/jarinjarloader/JarRsrcLoader.class
  755. org/eclipse/jdt/internal/jarinjarloader/RsrcURLConnection.class
  756. org/eclipse/jdt/internal/jarinjarloader/RsrcURLStreamHandler.class
  757. org/eclipse/jdt/internal/jarinjarloader/RsrcURLStreamHandlerFactory.class
  758. cse/
  759. cse/unl/
  760. cse/unl/edu/
  761. cse/unl/edu/DataConverter.class
  762. cse/unl/edu/Equipment.class
  763. cse/unl/edu/Consultation.class
  764. cse/unl/edu/Person.class
  765. cse/unl/edu/License.class
  766. cse/unl/edu/Customer.class
  767. cse/unl/edu/Address.class
  768. cse/unl/edu/Product.class
  769. jettison-1.0.1.jar
  770. json-20151123.jar
  771. xmlpull-1.1.3.1.jar
  772. xpp3_min-1.1.4c.jar
  773. xstream-1.4.8.jar
  774.  
  775. Running Test Cases...
  776. [-] Test Case Test Case 0 (student's own test case)
  777. Expected Output
  778.  
  779. Data and output files handed in:
  780.  
  781.  
  782. Customers.dat:
  783. 6
  784. C001;G;Dept. of Wal-Mart;saslakdfj;6633 Thunder Panda Freeway, Judge Town, MB, R4D-5B5,CA
  785. C002;G;Dept. of Pizza Hut;sldkfje3;260 Bay Street,Smyrna,GA,30080,USA
  786. C003;C;Frito-Lay;flksd12;912 B Street,Philadelphia,OH,44663,USA
  787. C004;G;Dept. of Coca-Cola Co.;3lkjfds;6289 Silver Pines, Surprise Valley, MB, R2P-8B6,CA
  788. C005;C;Disney;lskdfj;400 Buttonwood Drive,Glendale Heights,IL,60139,USA
  789. C006;G;Dept. of Toys R Us;sldkf21;996 Cobblestone Court,New Berlin,WI,53151,USA
  790. Persons.dat:
  791. 20
  792. saslakdfj;Christensen, Hal;768 Main Street North,Fairborn,OH,45324,USA;awing-awang@balivision.com
  793. sldkfje3;Obrien, Minh;826 Tanglewood Drive,Bluffton,SC,29910,USA;balihai@q-net.net.id
  794. flksd12;Gallagher, Madelene;722 Durham Road,Hoboken,NJ,07030,USA;alampuri@resortgallery.com
  795. 3lkjfds;George, Joannie;996 Cobblestone Court,New Berlin,WI,53151,USA;info@baliadventuretours.com
  796. lskdfj;Saunders, Hiroko;716 West Street,Wadsworth,OH,44281,USA;jawi@dps.centrin.net.id
  797. sldkf21;Moss, Lyle;331 Arlington Avenue,Hackettstown,NJ,07840,USA;wisantaradps@yahoo.com
  798. 213dlkfj;Fox, Elliott;514 Park Place,Brownsburg,IN,46112,USA;sbtours@indosat.net.id,nbauman663@gmail.com
  799. 234dfkjd;Martinez, Hannelore;260 Bay Street,Smyrna,GA,30080,USA;evi@mas-travel.com
  800. 2342kljf;Hampton, Hubert;283 Woodland Avenue,Cambridge,MA,02138,USA;haryo.santoso@trac.astra.co.id
  801. 32kjlk2l;Lloyd, Mohammed;974 Lexington Drive,Kenosha,WI,53140,USA;marketing@balivisioncomputer.com
  802. dlkfjk32;Giles, Angie;400 Buttonwood Drive,Glendale Heights,IL,60139,USA;dsartika@internux.net.id
  803. sldkfjlk3;Lyons, Edelmira;565 Fawn Court,Winter Springs,FL,32708,USA;a6us_kurniawan@yahoo.co.id
  804. fkjslkj32;Mora, Carletta;561 Edgewood Road,Solon,OH,44139,USA;bernitha_widinansari@yahoo.co.id
  805. s123askfj;Arellano, Horacio;912 B Street,Philadelphia,OH,44663,USA;elkahiri@yahoo.co.id
  806. dklfjkkl3;Wong, Kand;621 East Avenue,Brownsburg,IN,46112,USA;faisal_silin@yahoo.com
  807. laskdfj;Marks, Ebonie;861 Jackson Avenue,Clemmons,NC,27012,USA;fauzantan@yahoo.com
  808. vnxcmvn8;Orr, Nobuko;6289 Silver Pines, Surprise Valley, MB, R2P-8B6,CA;fidiyono_bali@yahoo.com
  809. dlskfj24;Soto, Thi;6633 Thunder Panda Freeway, Judge Town, MB, R4D-5B5,CA;gdiezzmewth@yahoo.co.id
  810. slkdfjllj4;Campbell, Sharita;8807 Quiet Lane, Elephant Butte, YK, Y1O-8K0,CA;itha_ersita@yahoo.com
  811. slkdfjlk2;Gillespie, Wilber;9590 Dusty Orchard, Red Wash, SK, S1X-1H7,CA;waow_one@yahoo.co.id
  812.  
  813.  
  814.  
  815.  
  816.  
  817.  
  818.  
  819.  
  820.  
  821.  
  822.  
  823.  
  824.  
  825.  
  826.  
  827.  
  828.  
  829.  
  830.  
  831.  
  832.  
  833.  
  834.  
  835.  
  836.  
  837.  
  838.  
  839.  
  840.  
  841.  
  842.  
  843.  
  844.  
  845.  
  846.  
  847.  
  848.  
  849.  
  850.  
  851.  
  852.  
  853.  
  854.  
  855.  
  856.  
  857.  
  858.  
  859.  
  860.  
  861.  
  862.  
  863.  
  864.  
  865.  
  866.  
  867.  
  868.  
  869. Products.dat:
  870. 9
  871. b29e;E;Cinco MIDI Organizer;2500.0
  872. ff23;E;Cinco-Fone;124.99
  873. fp12;E;Internette Discs;14.99
  874. 1239;E;Cinco Video Cube Playback System;5000.00
  875. 90fa;L;Cinco Long Distance Service;2000.00;12000.00
  876. 3289;C;Cinco-Fone Training;aef1;25.00
  877. 782g;C;Server System Setup;321nd;150.00
  878. 3294;L;Cloud SQL Hosting;0.00;35000.00
  879. 3295;L;Domain registration;350.00;1200.00
  880. Customers.xml:
  881. <?xml version="1.0"?>
  882. <customers>
  883. <governmentCustomer>
  884. <customerCode>C001</customerCode>
  885. <name>Dept. of Wal-Mart</name>
  886. <address>
  887. <street>6633 Thunder Panda Freeway</street>
  888. <city>Judge Town</city>
  889. <state>MB</state>
  890. <zip>R4D-5B5</zip>
  891. <country>CA</country>
  892. </address>
  893. <primaryContact>
  894. <personCode>saslakdfj</personCode>
  895. <firstName>Hal</firstName>
  896. <lastName>Christensen</lastName>
  897. <address>
  898. <street>768 Main Street North</street>
  899. <city>Fairborn</city>
  900. <state>OH</state>
  901. <zip>45324</zip>
  902. <country>USA</country>
  903. </address>
  904. <emails>
  905. <email>awing-awang@balivision.com</email>
  906. </emails>
  907. </primaryContact>
  908. </governmentCustomer>
  909. <governmentCustomer>
  910. <customerCode>C002</customerCode>
  911. <name>Dept. of Pizza Hut</name>
  912. <address>
  913. <street>260 Bay Street</street>
  914. <city>Smyrna</city>
  915. <state>GA</state>
  916. <zip>30080</zip>
  917. <country>USA</country>
  918. </address>
  919. <primaryContact>
  920. <personCode>sldkfje3</personCode>
  921. <firstName>Minh</firstName>
  922. <lastName>Obrien</lastName>
  923. <address>
  924. <street>826 Tanglewood Drive</street>
  925. <city>Bluffton</city>
  926. <state>SC</state>
  927. <zip>29910</zip>
  928. <country>USA</country>
  929. </address>
  930. <emails>
  931. <email>balihai@q-net.net.id</email>
  932. </emails>
  933. </primaryContact>
  934. </governmentCustomer>
  935. <companyCustomer>
  936. <customerCode>C003</customerCode>
  937. <name>Frito-Lay</name>
  938. <address>
  939. <street>912 B Street</street>
  940. <city>Philadelphia</city>
  941. <state>OH</state>
  942. <zip>44663</zip>
  943. <country>USA</country>
  944. </address>
  945. <primaryContact>
  946. <personCode>flksd12</personCode>
  947. <firstName>Madelene</firstName>
  948. <lastName>Gallagher</lastName>
  949. <address>
  950. <street>722 Durham Road</street>
  951. <city>Hoboken</city>
  952. <state>NJ</state>
  953. <zip>07030</zip>
  954. <country>USA</country>
  955. </address>
  956. <emails>
  957. <email>alampuri@resortgallery.com</email>
  958. </emails>
  959. </primaryContact>
  960. </companyCustomer>
  961. <governmentCustomer>
  962. <customerCode>C004</customerCode>
  963. <name>Dept. of Coca-Cola</name>
  964. <address>
  965. <street>6289 Silver Pines</street>
  966. <city>Surprise Valley</city>
  967. <state>MB</state>
  968. <zip>R2P-8B6</zip>
  969. <country>CA</country>
  970. </address>
  971. <primaryContact>
  972. <personCode>3lkjfds</personCode>
  973. <firstName>Joannie</firstName>
  974. <lastName>George</lastName>
  975. <address>
  976. <street>996 Cobblestone Court</street>
  977. <city>New Berlin</city>
  978. <state>WI</state>
  979. <zip>53151</zip>
  980. <country>USA</country>
  981. </address>
  982. <emails>
  983. <email>info@baliadventuretours.com</email>
  984. </emails>
  985. </primaryContact>
  986. </governmentCustomer>
  987. <companyCustomer>
  988. <customerCode>C005</customerCode>
  989. <name>Disney</name>
  990. <address>
  991. <street>400 Buttonwood Drive</street>
  992. <city>Glendale Heights</city>
  993. <state>IL</state>
  994. <zip>60139</zip>
  995. <country>USA</country>
  996. </address>
  997. <primaryContact>
  998. <personCode>lskdfj</personCode>
  999. <firstName>Hiroko</firstName>
  1000. <lastName>Saunders</lastName>
  1001. <address>
  1002. <street>716 West Street</street>
  1003. <city>Wadsworth</city>
  1004. <state>OH</state>
  1005. <zip>44281</zip>
  1006. <country>USA</country>
  1007. </address>
  1008. <emails>
  1009. <email>jawi@dps.centrin.net.id</email>
  1010. </emails>
  1011. </primaryContact>
  1012. </companyCustomer>
  1013. <governmentCustomer>
  1014. <customerCode>C006</customerCode>
  1015. <name>Dept. Toys R Us</name>
  1016. <address>
  1017. <street>996 Cobblestone Court</street>
  1018. <city>New Berlin</city>
  1019. <state>WI</state>
  1020. <zip>53151</zip>
  1021. <country>USA</country>
  1022. </address>
  1023. <primaryContact>
  1024. <personCode>sldkf21</personCode>
  1025. <firstName>Lyle</firstName>
  1026. <lastName>Moss</lastName>
  1027. <address>
  1028. <street>331 Arlington Avenue</street>
  1029. <city>Hackettstown</city>
  1030. <state>NJ</state>
  1031. <zip>07840</zip>
  1032. <country>USA</country>
  1033. </address>
  1034. <emails>
  1035. <email>wisantaradps@yahoo.com</email>
  1036. </emails>
  1037. </primaryContact>
  1038. </governmentCustomer>
  1039. </customers>
  1040.  
  1041. Persons.xml:
  1042. <?xml version="1.0"?>
  1043. <persons>
  1044. <person>
  1045. <personCode>saslakdfj</personCode>
  1046. <firstName>Hal</firstName>
  1047. <lastName>Christensen</lastName>
  1048. <address>
  1049. <street>768 Main Street North</street>
  1050. <city>Fairborn</city>
  1051. <state>OH</state>
  1052. <zip>45324</zip>
  1053. <country>USA</country>
  1054. </address>
  1055. <emails>
  1056. <email>awing-awang@balivision.com</email>
  1057. </emails>
  1058. </person>
  1059. <person>
  1060. <personCode>sldkfje3</personCode>
  1061. <firstName>Minh</firstName>
  1062. <lastName>Obrien</lastName>
  1063. <address>
  1064. <street>826 Tanglewood Drive</street>
  1065. <city>Bluffton</city>
  1066. <state>SC</state>
  1067. <zip>29910</zip>
  1068. <country>USA</country>
  1069. </address>
  1070. <emails>
  1071. <email>balihai@q-net.net.id</email>
  1072. </emails>
  1073. </person>
  1074. <person>
  1075. <personCode>flksd12</personCode>
  1076. <firstName>Madelene</firstName>
  1077. <lastName>Gallagher</lastName>
  1078. <address>
  1079. <street>722 Durham Road</street>
  1080. <city>Hoboken</city>
  1081. <state>NJ</state>
  1082. <zip>07030</zip>
  1083. <country>USA</country>
  1084. </address>
  1085. <emails>
  1086. <email>alampuri@resortgallery.com</email>
  1087. </emails>
  1088. </person>
  1089. <person>
  1090. <personCode>3lkjfds</personCode>
  1091. <firstName>Joannie</firstName>
  1092. <lastName>George</lastName>
  1093. <address>
  1094. <street>996 Cobblestone Court</street>
  1095. <city>New Berlin</city>
  1096. <state>WI</state>
  1097. <zip>53151</zip>
  1098. <country>USA</country>
  1099. </address>
  1100. <emails>
  1101. <email>info@baliadventuretours.com</email>
  1102. </emails>
  1103. </person>
  1104. <person>
  1105. <personCode>lskdfj</personCode>
  1106. <firstName>Hiroko</firstName>
  1107. <lastName>Saunders</lastName>
  1108. <address>
  1109. <street>716 West Street</street>
  1110. <city>Wadsworth</city>
  1111. <state>OH</state>
  1112. <zip>44281</zip>
  1113. <country>USA</country>
  1114. </address>
  1115. <emails>
  1116. <email>jawi@dps.centrin.net.id</email>
  1117. </emails>
  1118. </person>
  1119. <person>
  1120. <personCode>sldkf21</personCode>
  1121. <firstName>Lyle</firstName>
  1122. <lastName>Moss</lastName>
  1123. <address>
  1124. <street>331 Arlington Avenue</street>
  1125. <city>Hackettstown</city>
  1126. <state>NJ</state>
  1127. <zip>07840</zip>
  1128. <country>USA</country>
  1129. </address>
  1130. <emails>
  1131. <email>wisantaradps@yahoo.com</email>
  1132. </emails>
  1133. </person>
  1134. <person>
  1135. <personCode>213dlkfj</personCode>
  1136. <firstName>Elliott</firstName>
  1137. <lastName>Fox</lastName>
  1138. <address>
  1139. <street>514 Park Place</street>
  1140. <city>Brownsburg</city>
  1141. <state>IN</state>
  1142. <zip>46112</zip>
  1143. <country>USA</country>
  1144. </address>
  1145. <emails>
  1146. <email>sbtours@indosat.net.id</email>
  1147. <email>nbauman663@gmail.com</email>
  1148. </emails>
  1149. </person>
  1150. <person>
  1151. <personCode>234dfkjd</personCode>
  1152. <firstName>Martinez</firstName>
  1153. <lastName>Hannelore</lastName>
  1154. <address>
  1155. <street>260 Bay Street</street>
  1156. <city>Smyrna</city>
  1157. <state>GA</state>
  1158. <zip>30080</zip>
  1159. <country>USA</country>
  1160. </address>
  1161. <emails>
  1162. <email>evi@mas-travel.com</email>
  1163. </emails>
  1164. </person>
  1165. <person>
  1166. <personCode>2342kljf</personCode>
  1167. <firstName>Hampton</firstName>
  1168. <lastName>Hubert</lastName>
  1169. <address>
  1170. <street>283 Woodland Avenue</street>
  1171. <city>Cambridge</city>
  1172. <state>MA</state>
  1173. <zip>02138</zip>
  1174. <country>USA</country>
  1175. </address>
  1176. <emails>
  1177. <email>haryo.santoso@trac.astra.co.id</email>
  1178. </emails>
  1179. </person>
  1180. <person>
  1181. <personCode>32kjlk2l</personCode>
  1182. <firstName>Mohammed</firstName>
  1183. <lastName>Lloyd</lastName>
  1184. <address>
  1185. <street>974 Lexington Drive</street>
  1186. <city>Kenosha</city>
  1187. <state>WI</state>
  1188. <zip>53140</zip>
  1189. <country>USA</country>
  1190. </address>
  1191. <emails>
  1192. <email>marketing@balivisioncomputer.com</email>
  1193. </emails>
  1194. </person>
  1195. <person>
  1196. <personCode>dlkfjk32</personCode>
  1197. <firstName>Angie</firstName>
  1198. <lastName>Giles</lastName>
  1199. <address>
  1200. <street>400 Buttonwood Drive</street>
  1201. <city>Glendale Heights</city>
  1202. <state>IL</state>
  1203. <zip>60139</zip>
  1204. <country>USA</country>
  1205. </address>
  1206. <emails>
  1207. <email>dsartika@internux.net.id</email>
  1208. </emails>
  1209. </person>
  1210. <person>
  1211. <personCode>sldkfjlk3</personCode>
  1212. <firstName>Lyons</firstName>
  1213. <lastName>Edelmira</lastName>
  1214. <address>
  1215. <street>565 Fawn Court</street>
  1216. <city>Winter Springs</city>
  1217. <state>FL</state>
  1218. <zip>32708</zip>
  1219. <country>USA</country>
  1220. </address>
  1221. <emails>
  1222. <email>a6us_kurniawan@yahoo.co.id</email>
  1223. </emails>
  1224. </person>
  1225. <person>
  1226. <personCode>fkjslkj32</personCode>
  1227. <firstName>Mora</firstName>
  1228. <lastName>Carletta</lastName>
  1229. <address>
  1230. <street>561 Edgewood Road</street>
  1231. <city>Solon</city>
  1232. <state>OH</state>
  1233. <zip>44139</zip>
  1234. <country>USA</country>
  1235. </address>
  1236. <emails>
  1237. <email>bernitha_widinansari@yahoo.co.id</email>
  1238. </emails>
  1239. </person>
  1240. <person>
  1241. <personCode>s123askfj</personCode>
  1242. <firstName>Horacio</firstName>
  1243. <lastName>Arellano</lastName>
  1244. <address>
  1245. <street>912 B Street</street>
  1246. <city>Philadelphia</city>
  1247. <state>OH</state>
  1248. <zip>44663</zip>
  1249. <country>USA</country>
  1250. </address>
  1251. <emails>
  1252. <email>elkahiri@yahoo.co.id</email>
  1253. </emails>
  1254. </person>
  1255. <person>
  1256. <personCode>dklfjkkl3</personCode>
  1257. <firstName>Kand</firstName>
  1258. <lastName>Wong</lastName>
  1259. <address>
  1260. <street>621 East Avenue</street>
  1261. <city>Brownsburg</city>
  1262. <state>IN</state>
  1263. <zip>46112</zip>
  1264. <country>USA</country>
  1265. </address>
  1266. <emails>
  1267. <email>faisal_silin@yahoo.com</email>
  1268. </emails>
  1269. </person>
  1270. <person>
  1271. <personCode>laskdfj</personCode>
  1272. <firstName>Ebonie</firstName>
  1273. <lastName>Marks</lastName>
  1274. <address>
  1275. <street>861 Jackson Avenue</street>
  1276. <city>Clemmons</city>
  1277. <state>NC</state>
  1278. <zip>27012</zip>
  1279. <country>USA</country>
  1280. </address>
  1281. <emails>
  1282. <email>fauzantan@yahoo.com</email>
  1283. </emails>
  1284. </person>
  1285. <person>
  1286. <personCode>vnxcmvn8</personCode>
  1287. <firstName>Nobuko</firstName>
  1288. <lastName>Orr</lastName>
  1289. <address>
  1290. <street>6289 Silver Pines</street>
  1291. <city>Surprise Valley</city>
  1292. <state>MB</state>
  1293. <zip>R2P-8B6</zip>
  1294. <country>CA</country>
  1295. </address>
  1296. <emails>
  1297. <email>fidiyono_bali@yahoo.com</email>
  1298. </emails>
  1299. </person>
  1300. <person>
  1301. <personCode>dlskfj24</personCode>
  1302. <firstName>Soto</firstName>
  1303. <lastName>Thi</lastName>
  1304. <address>
  1305. <street>6633 Thunder Panda Freeway</street>
  1306. <city>Judge Town</city>
  1307. <state>MB</state>
  1308. <zip>R4D-5B5</zip>
  1309. <country>CA</country>
  1310. </address>
  1311. <emails>
  1312. <email>gdiezzmewth@yahoo.co.id</email>
  1313. </emails>
  1314. </person>
  1315. <person>
  1316. <personCode>slkdfjllj4</personCode>
  1317. <firstName>Sharita</firstName>
  1318. <lastName>Campbell</lastName>
  1319. <address>
  1320. <street>8807 Quiet Lane</street>
  1321. <city>Elephant Butte</city>
  1322. <state>YK</state>
  1323. <zip>Y1O-8K0</zip>
  1324. <country>CA</country>
  1325. </address>
  1326. <emails>
  1327. <email>itha_ersita@yahoo.com</email>
  1328. </emails>
  1329. </person>
  1330. <person>
  1331. <personCode>slkdfjlk2</personCode>
  1332. <firstName>Wilber</firstName>
  1333. <lastName>Gillespie</lastName>
  1334. <address>
  1335. <street>9590 Dusty Orchard</street>
  1336. <city>Red Wash</city>
  1337. <state>SK</state>
  1338. <zip>S1X-1H7</zip>
  1339. <country>CA</country>
  1340. </address>
  1341. <emails>
  1342. <email>waow_one@yahoo.co.id</email>
  1343. </emails>
  1344. </person>
  1345. </persons>
  1346.  
  1347. Products.xml:
  1348. <?xml version="1.0"?>
  1349. <products>
  1350. <equipment>
  1351. <productCode>dm07</productCode>
  1352. <name>Devify</name>
  1353. <pricePerUnit>151.39</pricePerUnit>
  1354. </equipment>
  1355. <equipment>
  1356. <productCode>7mfy</productCode>
  1357. <name>Kare</name>
  1358. <pricePerUnit>143.64</pricePerUnit>
  1359. </equipment>
  1360. <equipment>
  1361. <productCode>157W</productCode>
  1362. <name>Yata</name>
  1363. <pricePerUnit>440.49</pricePerUnit>
  1364. </equipment>
  1365. <equipment>
  1366. <productCode>6ePC</productCode>
  1367. <name>Vipe</name>
  1368. <pricePerUnit>634.86</pricePerUnit>
  1369. </equipment>
  1370. <equipment>
  1371. <productCode>1KT8</productCode>
  1372. <name>Skynoodle</name>
  1373. <pricePerUnit>197.12</pricePerUnit>
  1374. </equipment>
  1375. <equipment>
  1376. <productCode>FV0W</productCode>
  1377. <name>Mita</name>
  1378. <pricePerUnit>211.56</pricePerUnit>
  1379. </equipment>
  1380. <equipment>
  1381. <productCode>356K</productCode>
  1382. <name>Quamba</name>
  1383. <pricePerUnit>28.35</pricePerUnit>
  1384. </equipment>
  1385. <license>
  1386. <productCode>1m5V</productCode>
  1387. <name>JumpXS</name>
  1388. <fee>265.11</fee>
  1389. <annualCost>1339.07</annualCost>
  1390. </license>
  1391. <license>
  1392. <productCode>326Z</productCode>
  1393. <name>Thoughtworks</name>
  1394. <fee>431.12</fee>
  1395. <annualCost>2023.84</annualCost>
  1396. </license>
  1397. <license>
  1398. <productCode>4rTE</productCode>
  1399. <name>Meemm</name>
  1400. <fee>719.51</fee>
  1401. <annualCost>702.99</annualCost>
  1402. </license>
  1403. <license>
  1404. <productCode>26uk</productCode>
  1405. <name>Minyx</name>
  1406. <fee>542.38</fee>
  1407. <annualCost>1818.2</annualCost>
  1408. </license>
  1409. <license>
  1410. <productCode>402G</productCode>
  1411. <name>Roombo</name>
  1412. <fee>534.12</fee>
  1413. <annualCost>400.79</annualCost>
  1414. </license>
  1415. <consultation>
  1416. <productCode>98TM</productCode>
  1417. <name>Oyoba</name>
  1418. <consultant>
  1419. <personCode>dlskfj24</personCode>
  1420. <firstName>Soto</firstName>
  1421. <lastName>Thi</lastName>
  1422. <address>
  1423. <street>6633 Thunder Panda Freeway</street>
  1424. <city>Judge Town</city>
  1425. <state>MB</state>
  1426. <zip>R4D-5B5</zip>
  1427. <country>CA</country>
  1428. </address>
  1429. <emails>
  1430. <email>gdiezzmewth@yahoo.co.id</email>
  1431. </emails>
  1432. </consultant>
  1433. <pricePerHour>63.39</pricePerHour>
  1434. </consultation>
  1435. <consultation>
  1436. <productCode>566S</productCode>
  1437. <name>Rhybox</name>
  1438. <consultant>
  1439. <personCode>slkdfjlk2</personCode>
  1440. <firstName>Wilber</firstName>
  1441. <lastName>Gillespie</lastName>
  1442. <address>
  1443. <street>9590 Dusty Orchard</street>
  1444. <city>Red Wash</city>
  1445. <state>SK</state>
  1446. <zip>S1X-1H7</zip>
  1447. <country>CA</country>
  1448. </address>
  1449. <emails>
  1450. <email>waow_one@yahoo.co.id</email>
  1451. </emails>
  1452. </consultant>
  1453. <pricePerHour>196.21</pricePerHour>
  1454. </consultation>
  1455. <consultation>
  1456. <productCode>2rg2</productCode>
  1457. <name>Chatterpoint</name>
  1458. <consultant>
  1459. <personCode>slkdfjllj4</personCode>
  1460. <firstName>Sharita</firstName>
  1461. <lastName>Campbell</lastName>
  1462. <address>
  1463. <street>8807 Quiet Lane</street>
  1464. <city>Elephant Butte</city>
  1465. <state>YK</state>
  1466. <zip>Y1O-8K0</zip>
  1467. <country>CA</country>
  1468. </address>
  1469. <emails>
  1470. <email>itha_ersita@yahoo.com</email>
  1471. </emails>
  1472. </consultant>
  1473. <pricePerHour>238.35</pricePerHour>
  1474. </consultation>
  1475. <consultation>
  1476. <productCode>gv4W</productCode>
  1477. <name>Yakidoo</name>
  1478. <consultant>
  1479. <personCode>vnxcmvn8</personCode>
  1480. <firstName>Nobuko</firstName>
  1481. <lastName>Orr</lastName>
  1482. <address>
  1483. <street>6289 Silver Pines</street>
  1484. <city>Surprise Valley</city>
  1485. <state>MB</state>
  1486. <zip>R2P-8B6</zip>
  1487. <country>CA</country>
  1488. </address>
  1489. <emails>
  1490. <email>fidiyono_bali@yahoo.com</email>
  1491. </emails>
  1492. </consultant>
  1493. <pricePerHour>54.03</pricePerHour>
  1494. </consultation>
  1495. <consultation>
  1496. <productCode>NV3U</productCode>
  1497. <name>Twitterbridge</name>
  1498. <consultant>
  1499. <personCode>laskdfj</personCode>
  1500. <firstName>Ebonie</firstName>
  1501. <lastName>Marks</lastName>
  1502. <address>
  1503. <street>861 Jackson Avenue</street>
  1504. <city>Clemmons</city>
  1505. <state>NC</state>
  1506. <zip>27012</zip>
  1507. <country>USA</country>
  1508. </address>
  1509. <emails>
  1510. <email>fauzantan@yahoo.com</email>
  1511. </emails>
  1512. </consultant>
  1513. <pricePerHour>406.45</pricePerHour>
  1514. </consultation>
  1515. <consultation>
  1516. <productCode>2O31</productCode>
  1517. <name>Feedfish</name>
  1518. <consultant>
  1519. <personCode>dklfjkkl3</personCode>
  1520. <firstName>Kand</firstName>
  1521. <lastName>Wong</lastName>
  1522. <address>
  1523. <street>621 East Avenue</street>
  1524. <city>Brownsburg</city>
  1525. <state>IN</state>
  1526. <zip>46112</zip>
  1527. <country>USA</country>
  1528. </address>
  1529. <emails>
  1530. <email>faisal_silin@yahoo.com</email>
  1531. </emails>
  1532. </consultant>
  1533. <pricePerHour>729.14</pricePerHour>
  1534. </consultation>
  1535. <consultation>
  1536. <productCode>n2m1</productCode>
  1537. <name>Youtags</name>
  1538. <consultant>
  1539. <personCode>s123askfj</personCode>
  1540. <firstName>Horacio</firstName>
  1541. <lastName>Arellano</lastName>
  1542. <address>
  1543. <street>912 B Street</street>
  1544. <city>Philadelphia</city>
  1545. <state>OH</state>
  1546. <zip>44663</zip>
  1547. <country>USA</country>
  1548. </address>
  1549. <emails>
  1550. <email>elkahiri@yahoo.co.id</email>
  1551. </emails>
  1552. </consultant>
  1553. <pricePerHour>584.15</pricePerHour>
  1554. </consultation>
  1555. </products>
  1556.  
  1557. Customers.json:
  1558. {
  1559. "customers": {
  1560. "governmentCustomer": [
  1561. {
  1562. "customerCode": "C001",
  1563. "name": "Dept. of Wal-Mart",
  1564. "address": {
  1565. "street": "6633 Thunder Panda Freeway",
  1566. "city": "Judge Town",
  1567. "state": "MB",
  1568. "zip": "R4D-5B5",
  1569. "country": "CA"
  1570. },
  1571. "primaryContact": {
  1572. "personCode": "saslakdfj",
  1573. "firstName": "Hal",
  1574. "lastName": "Christensen",
  1575. "address": {
  1576. "street": "768 Main Street North",
  1577. "city": "Fairborn",
  1578. "state": "OH",
  1579. "zip": "45324",
  1580. "country": "USA"
  1581. },
  1582. "emails": [
  1583. "awing-awang@balivision.com"
  1584. ]
  1585. }
  1586. },
  1587. {
  1588. "customerCode": "C002",
  1589. "name": "Dept. of Pizza Hut",
  1590. "address": {
  1591. "street": "260 Bay Street",
  1592. "city": "Smyrna",
  1593. "state": "GA",
  1594. "zip": "30080",
  1595. "country": "USA"
  1596. },
  1597. "primaryContact": {
  1598. "personCode": "sldkfje3",
  1599. "firstName": "Minh",
  1600. "lastName": "Obrien",
  1601. "address": {
  1602. "street": "826 Tanglewood Drive",
  1603. "city": "Bluffton",
  1604. "state": "SC",
  1605. "zip": "29910",
  1606. "country": "USA"
  1607. },
  1608. "emails": [
  1609. "balihai@q-net.net.id"
  1610. ]
  1611. }
  1612. },
  1613. {
  1614. "customerCode": "C004",
  1615. "name": "Dept. of Coca-Cola",
  1616. "address": {
  1617. "street": "6289 Silver Pines",
  1618. "city": "Surprise Valley",
  1619. "state": "MB",
  1620. "zip": "R2P-8B6",
  1621. "country": "CA"
  1622. },
  1623. "primaryContact": {
  1624. "personCode": "3lkjfds",
  1625. "firstName": "Joannie",
  1626. "lastName": "George",
  1627. "address": {
  1628. "street": "996 Cobblestone Court",
  1629. "city": "New Berlin",
  1630. "state": "WI",
  1631. "zip": "53151",
  1632. "country": "USA"
  1633. },
  1634. "emails": [
  1635. "info@baliadventuretours.com"
  1636. ]
  1637. }
  1638. },
  1639. {
  1640. "customerCode": "C006",
  1641. "name": "Dept. Toys R Us",
  1642. "address": {
  1643. "street": "996 Cobblestone Court",
  1644. "city": "New Berlin",
  1645. "state": "WI",
  1646. "zip": "53151",
  1647. "country": "USA"
  1648. },
  1649. "primaryContact": {
  1650. "personCode": "sldkf21",
  1651. "firstName": "Lyle",
  1652. "lastName": "Moss",
  1653. "address": {
  1654. "street": "331 Arlington Avenue",
  1655. "city": "Hackettstown",
  1656. "state": "NJ",
  1657. "zip": "07840",
  1658. "country": "USA"
  1659. },
  1660. "emails": [
  1661. "wisantaradps@yahoo.com"
  1662. ]
  1663. }
  1664. }
  1665. ],
  1666. "companyCustomer": [
  1667. {
  1668. "customerCode": "C003",
  1669. "name": "Frito-Lay",
  1670. "address": {
  1671. "street": "912 B Street",
  1672. "city": "Philadelphia",
  1673. "state": "OH",
  1674. "zip": "44663",
  1675. "country": "USA"
  1676. },
  1677. "primaryContact": {
  1678. "personCode": "flksd12",
  1679. "firstName": "Madelene",
  1680. "lastName": "Gallagher",
  1681. "address": {
  1682. "street": "722 Durham Road",
  1683. "city": "Hoboken",
  1684. "state": "NJ",
  1685. "zip": "07030",
  1686. "country": "USA"
  1687. },
  1688. "emails": [
  1689. "alampuri@resortgallery.com"
  1690. ]
  1691. }
  1692. },
  1693. {
  1694. "customerCode": "C005",
  1695. "name": "Disney",
  1696. "address": {
  1697. "street": "400 Buttonwood Drive",
  1698. "city": "Glendale Heights",
  1699. "state": "IL",
  1700. "zip": "60139",
  1701. "country": "USA"
  1702. },
  1703. "primaryContact": {
  1704. "personCode": "lskdfj",
  1705. "firstName": "Hiroko",
  1706. "lastName": "Saunders",
  1707. "address": {
  1708. "street": "716 West Street",
  1709. "city": "Wadsworth",
  1710. "state": "OH",
  1711. "zip": "44281",
  1712. "country": "USA"
  1713. },
  1714. "emails": [
  1715. "jawi@dps.centrin.net.id"
  1716. ]
  1717. }
  1718. }
  1719. ]
  1720. }
  1721. }
  1722. Persons.json:
  1723. {
  1724. "persons": {
  1725. "person": [
  1726. {
  1727. "personCode": "saslakdfj",
  1728. "firstName": "Hal",
  1729. "lastName": "Christensen",
  1730. "address": {
  1731. "street": "768 Main Street North",
  1732. "city": "Fairborn",
  1733. "state": "OH",
  1734. "zip": "45324",
  1735. "country": "USA"
  1736. },
  1737. "emails": [
  1738. "awing-awang@balivision.com"
  1739. ]
  1740. },
  1741. {
  1742. "personCode": "sldkfje3",
  1743. "firstName": "Minh",
  1744. "lastName": "Obrien",
  1745. "address": {
  1746. "street": "826 Tanglewood Drive",
  1747. "city": "Bluffton",
  1748. "state": "SC",
  1749. "zip": "29910",
  1750. "country": "USA"
  1751. },
  1752. "emails": [
  1753. "balihai@q-net.net.id"
  1754. ]
  1755. },
  1756. {
  1757. "personCode": "flksd12",
  1758. "firstName": "Madelene",
  1759. "lastName": "Gallagher",
  1760. "address": {
  1761. "street": "722 Durham Road",
  1762. "city": "Hoboken",
  1763. "state": "NJ",
  1764. "zip": "07030",
  1765. "country": "USA"
  1766. },
  1767. "emails": [
  1768. "alampuri@resortgallery.com"
  1769. ]
  1770. },
  1771. {
  1772. "personCode": "3lkjfds",
  1773. "firstName": "Joannie",
  1774. "lastName": "George",
  1775. "address": {
  1776. "street": "996 Cobblestone Court",
  1777. "city": "New Berlin",
  1778. "state": "WI",
  1779. "zip": "53151",
  1780. "country": "USA"
  1781. },
  1782. "emails": [
  1783. "info@baliadventuretours.com"
  1784. ]
  1785. },
  1786. {
  1787. "personCode": "lskdfj",
  1788. "firstName": "Hiroko",
  1789. "lastName": "Saunders",
  1790. "address": {
  1791. "street": "716 West Street",
  1792. "city": "Wadsworth",
  1793. "state": "OH",
  1794. "zip": "44281",
  1795. "country": "USA"
  1796. },
  1797. "emails": [
  1798. "jawi@dps.centrin.net.id"
  1799. ]
  1800. },
  1801. {
  1802. "personCode": "sldkf21",
  1803. "firstName": "Lyle",
  1804. "lastName": "Moss",
  1805. "address": {
  1806. "street": "331 Arlington Avenue",
  1807. "city": "Hackettstown",
  1808. "state": "NJ",
  1809. "zip": "07840",
  1810. "country": "USA"
  1811. },
  1812. "emails": [
  1813. "wisantaradps@yahoo.com"
  1814. ]
  1815. },
  1816. {
  1817. "personCode": "213dlkfj",
  1818. "firstName": "Elliott",
  1819. "lastName": "Fox",
  1820. "address": {
  1821. "street": "514 Park Place",
  1822. "city": "Brownsburg",
  1823. "state": "IN",
  1824. "zip": "46112",
  1825. "country": "USA"
  1826. },
  1827. "emails": [
  1828. "sbtours@indosat.net.id",
  1829. "nbauman663@gmail.com"
  1830. ]
  1831. },
  1832. {
  1833. "personCode": "234dfkjd",
  1834. "firstName": "Martinez",
  1835. "lastName": "Hannelore",
  1836. "address": {
  1837. "street": "260 Bay Street",
  1838. "city": "Smyrna",
  1839. "state": "GA",
  1840. "zip": "30080",
  1841. "country": "USA"
  1842. },
  1843. "emails": [
  1844. "evi@mas-travel.com"
  1845. ]
  1846. },
  1847. {
  1848. "personCode": "2342kljf",
  1849. "firstName": "Hampton",
  1850. "lastName": "Hubert",
  1851. "address": {
  1852. "street": "283 Woodland Avenue",
  1853. "city": "Cambridge",
  1854. "state": "MA",
  1855. "zip": "02138",
  1856. "country": "USA"
  1857. },
  1858. "emails": [
  1859. "haryo.santoso@trac.astra.co.id"
  1860. ]
  1861. },
  1862. {
  1863. "personCode": "32kjlk2l",
  1864. "firstName": "Mohammed",
  1865. "lastName": "Lloyd",
  1866. "address": {
  1867. "street": "974 Lexington Drive",
  1868. "city": "Kenosha",
  1869. "state": "WI",
  1870. "zip": "53140",
  1871. "country": "USA"
  1872. },
  1873. "emails": [
  1874. "marketing@balivisioncomputer.com"
  1875. ]
  1876. },
  1877. {
  1878. "personCode": "dlkfjk32",
  1879. "firstName": "Angie",
  1880. "lastName": "Giles",
  1881. "address": {
  1882. "street": "400 Buttonwood Drive",
  1883. "city": "Glendale Heights",
  1884. "state": "IL",
  1885. "zip": "60139",
  1886. "country": "USA"
  1887. },
  1888. "emails": [
  1889. "dsartika@internux.net.id"
  1890. ]
  1891. },
  1892. {
  1893. "personCode": "sldkfjlk3",
  1894. "firstName": "Lyons",
  1895. "lastName": "Edelmira",
  1896. "address": {
  1897. "street": "565 Fawn Court",
  1898. "city": "Winter Springs",
  1899. "state": "FL",
  1900. "zip": "32708",
  1901. "country": "USA"
  1902. },
  1903. "emails": [
  1904. "a6us_kurniawan@yahoo.co.id"
  1905. ]
  1906. },
  1907. {
  1908. "personCode": "fkjslkj32",
  1909. "firstName": "Mora",
  1910. "lastName": "Carletta",
  1911. "address": {
  1912. "street": "561 Edgewood Road",
  1913. "city": "Solon",
  1914. "state": "OH",
  1915. "zip": "44139",
  1916. "country": "USA"
  1917. },
  1918. "emails": [
  1919. "bernitha_widinansari@yahoo.co.id"
  1920. ]
  1921. },
  1922. {
  1923. "personCode": "s123askfj",
  1924. "firstName": "Horacio",
  1925. "lastName": "Arellano",
  1926. "address": {
  1927. "street": "912 B Street",
  1928. "city": "Philadelphia",
  1929. "state": "OH",
  1930. "zip": "44663",
  1931. "country": "USA"
  1932. },
  1933. "emails": [
  1934. "elkahiri@yahoo.co.id"
  1935. ]
  1936. },
  1937. {
  1938. "personCode": "dklfjkkl3",
  1939. "firstName": "Kand",
  1940. "lastName": "Wong",
  1941. "address": {
  1942. "street": "621 East Avenue",
  1943. "city": "Brownsburg",
  1944. "state": "IN",
  1945. "zip": "46112",
  1946. "country": "USA"
  1947. },
  1948. "emails": [
  1949. "faisal_silin@yahoo.com"
  1950. ]
  1951. },
  1952. {
  1953. "personCode": "laskdfj",
  1954. "firstName": "Ebonie",
  1955. "lastName": "Marks",
  1956. "address": {
  1957. "street": "861 Jackson Avenue",
  1958. "city": "Clemmons",
  1959. "state": "NC",
  1960. "zip": "27012",
  1961. "country": "USA"
  1962. },
  1963. "emails": [
  1964. "email": "fauzantan@yahoo.com"
  1965. ]
  1966. },
  1967. {
  1968. "personCode": "vnxcmvn8",
  1969. "firstName": "Nobuko",
  1970. "lastName": "Orr",
  1971. "address": {
  1972. "street": "6289 Silver Pines",
  1973. "city": "Surprise Valley",
  1974. "state": "MB",
  1975. "zip": "R2P-8B6",
  1976. "country": "CA"
  1977. },
  1978. "emails": [
  1979. "email": "fidiyono_bali@yahoo.com"
  1980. ]
  1981. },
  1982. {
  1983. "personCode": "dlskfj24",
  1984. "firstName": "Soto",
  1985. "lastName": "Thi",
  1986. "address": {
  1987. "street": "6633 Thunder Panda Freeway",
  1988. "city": "Judge Town",
  1989. "state": "MB",
  1990. "zip": "R4D-5B5",
  1991. "country": "CA"
  1992. },
  1993. "emails" [
  1994. "gdiezzmewth@yahoo.co.id"
  1995. ]
  1996. },
  1997. {
  1998. "personCode": "slkdfjllj4",
  1999. "firstName": "Sharita",
  2000. "lastName": "Campbell",
  2001. "address": {
  2002. "street": "8807 Quiet Lane",
  2003. "city": "Elephant Butte",
  2004. "state": "YK",
  2005. "zip": "Y1O-8K0",
  2006. "country": "CA"
  2007. },
  2008. "emails": [
  2009. "itha_ersita@yahoo.com"
  2010. ]
  2011. },
  2012. {
  2013. "personCode": "slkdfjlk2",
  2014. "firstName": "Wilber",
  2015. "lastName": "Gillespie",
  2016. "address": {
  2017. "street": "9590 Dusty Orchard",
  2018. "city": "Red Wash",
  2019. "state": "SK",
  2020. "zip": "S1X-1H7",
  2021. "country": "CA"
  2022. },
  2023. "emails": [
  2024. "email": "waow_one@yahoo.co.id"
  2025. ]
  2026. }
  2027. ]
  2028. }
  2029. }
  2030. Products.json:
  2031. {
  2032. "products": [
  2033. {
  2034. "pricePerUnit": 124.99,
  2035. "productCode": "ff23",
  2036. "name": "Cinco-Fone"
  2037. },
  2038. {
  2039. "consultant": {
  2040. "personCode": "aef1",
  2041. "firstName": "Gordon",
  2042. "lastName": "Gekko",
  2043. "address": {
  2044. "street": "1 Wall Street",
  2045. "city": "New York",
  2046. "state": "NY",
  2047. "zip": "10005-0012",
  2048. "country": "USA"
  2049. },
  2050. "emails": []
  2051. },
  2052. "pricePerHour": 25.0,
  2053. "productCode": "3289",
  2054. "name": "Cinco-Fone Training"
  2055. },
  2056. {
  2057. "consultant": {
  2058. "personCode": "321nd",
  2059. "firstName": "William",
  2060. "lastName": "Hartnell",
  2061. "address": {
  2062. "street": "1060 West Addison Street",
  2063. "city": "Chicago",
  2064. "state": "IL",
  2065. "zip": "60613",
  2066. "country": "USA"
  2067. },
  2068. "emails": [
  2069. "whartnell@doctors.com",
  2070. "dr@who.com"
  2071. ]
  2072. },
  2073. "pricePerHour": 150.0,
  2074. "productCode": "782g",
  2075. "name": "Server System Setup"
  2076. },
  2077. {
  2078. "fee": 2000.0,
  2079. "annualCost": 12000.0,
  2080. "productCode": "90fa",
  2081. "name": "Cinco Long Distance Service"
  2082. },
  2083. {
  2084. "pricePerUnit": 5000.0,
  2085. "productCode": "1239",
  2086. "name": "Cinco Video Cube Playback System"
  2087. },
  2088. {
  2089. "fee": 350.0,
  2090. "annualCost": 1200.0,
  2091. "productCode": "3295",
  2092. "name": "Domain registration"
  2093. },
  2094. {
  2095. "pricePerUnit": 14.99,
  2096. "productCode": "fp12",
  2097. "name": "Internette Discs"
  2098. },
  2099. {
  2100. "fee": 0.0,
  2101. "annualCost": 35000.0,
  2102. "productCode": "3294",
  2103. "name": "Cloud SQL Hosting"
  2104. },
  2105. {
  2106. "pricePerUnit": 2500.0,
  2107. "productCode": "b29e",
  2108. "name": "Cinco MIDI Organizer"
  2109. }
  2110. ]}
  2111.  
  2112. Program Output
  2113.  
  2114. Customer [customerCode=C001, type=G, primaryContact=Person [personCode=saslakdfj, firstName=Hal, lastName=Christensen, address=Address [street=768 Main Street North, city=Fairborn, state=OH, zip=45324, country=USA], emails=[awing-awang@balivision.com]], companyName=saslakdfj, address=Address [street=6633 Thunder Panda Freeway, city=Judge Town, state=MB, zip=R4D-5B5, country=CA]]
  2115. Customer [customerCode=C002, type=G, primaryContact=Person [personCode=sldkfje3, firstName=Minh, lastName=Obrien, address=Address [street=826 Tanglewood Drive, city=Bluffton, state=SC, zip=29910, country=USA], emails=[balihai@q-net.net.id]], companyName=sldkfje3, address=Address [street=260 Bay Street, city=Smyrna, state=GA, zip=30080, country=USA]]
  2116. Customer [customerCode=C003, type=C, primaryContact=Person [personCode=flksd12, firstName=Madelene, lastName=Gallagher, address=Address [street=722 Durham Road, city=Hoboken, state=NJ, zip=07030, country=USA], emails=[alampuri@resortgallery.com]], companyName=flksd12, address=Address [street=912 B Street, city=Philadelphia, state=OH, zip=44663, country=USA]]
  2117. Customer [customerCode=C004, type=G, primaryContact=Person [personCode=3lkjfds, firstName=Joannie, lastName=George, address=Address [street=996 Cobblestone Court, city=New Berlin, state=WI, zip=53151, country=USA], emails=[info@baliadventuretours.com]], companyName=3lkjfds, address=Address [street=6289 Silver Pines, city=Surprise Valley, state=MB, zip=R2P-8B6, country=CA]]
  2118. Customer [customerCode=C005, type=C, primaryContact=Person [personCode=lskdfj, firstName=Hiroko, lastName=Saunders, address=Address [street=716 West Street, city=Wadsworth, state=OH, zip=44281, country=USA], emails=[jawi@dps.centrin.net.id]], companyName=lskdfj, address=Address [street=400 Buttonwood Drive, city=Glendale Heights, state=IL, zip=60139, country=USA]]
  2119. Customer [customerCode=C006, type=G, primaryContact=Person [personCode=sldkf21, firstName=Lyle, lastName=Moss, address=Address [street=331 Arlington Avenue, city=Hackettstown, state=NJ, zip=07840, country=USA], emails=[wisantaradps@yahoo.com]], companyName=sldkf21, address=Address [street=996 Cobblestone Court, city=New Berlin, state=WI, zip=53151, country=USA]]
  2120. Product [code=b29e, type=E, name=Cinco MIDI Organizer] Equipment [pricePerUnit=2500.0]
  2121. Product [code=ff23, type=E, name=Cinco-Fone] Equipment [pricePerUnit=124.99]
  2122. Product [code=fp12, type=E, name=Internette Discs] Equipment [pricePerUnit=14.99]
  2123. Product [code=1239, type=E, name=Cinco Video Cube Playback System] Equipment [pricePerUnit=5000.0]
  2124. Product [code=90fa, type=L, name=Cinco Long Distance Service] License [serviceFee=2000.0, annualLicenseFee=12000.0]
  2125. Product [code=3289, type=C, name=Cinco-Fone Training] Consultation [hourlyFee=25.0]
  2126. Product [code=782g, type=C, name=Server System Setup] Consultation [hourlyFee=150.0]
  2127. Product [code=3294, type=L, name=Cloud SQL Hosting] License [serviceFee=0.0, annualLicenseFee=35000.0]
  2128. Product [code=3295, type=L, name=Domain registration] License [serviceFee=350.0, annualLicenseFee=1200.0]
  2129. ::::::::::::::
  2130. ./data/Customers.xml
  2131. ::::::::::::::
  2132. <customers>
  2133. <governmentCustomer>
  2134. <customerCode>C001</customerCode>
  2135. <companyName>saslakdfj</companyName>
  2136. <address>
  2137. <street>6633 Thunder Panda Freeway</street>
  2138. <city>Judge Town</city>
  2139. <state>MB</state>
  2140. <zip>R4D-5B5</zip>
  2141. <country>CA</country>
  2142. </address>
  2143. <primaryContact>
  2144. <personCode>saslakdfj</personCode>
  2145. <firstName>Hal</firstName>
  2146. <lastName>Christensen</lastName>
  2147. <address>
  2148. <street>768 Main Street North</street>
  2149. <city>Fairborn</city>
  2150. <state>OH</state>
  2151. <zip>45324</zip>
  2152. <country>USA</country>
  2153. </address>
  2154. <emails>
  2155. <email>awing-awang@balivision.com</email>
  2156. </emails>
  2157. </primaryContact>
  2158. </governmentCustomer>
  2159. <governmentCustomer>
  2160. <customerCode>C002</customerCode>
  2161. <companyName>sldkfje3</companyName>
  2162. <address>
  2163. <street>260 Bay Street</street>
  2164. <city>Smyrna</city>
  2165. <state>GA</state>
  2166. <zip>30080</zip>
  2167. <country>USA</country>
  2168. </address>
  2169. <primaryContact>
  2170. <personCode>sldkfje3</personCode>
  2171. <firstName>Minh</firstName>
  2172. <lastName>Obrien</lastName>
  2173. <address>
  2174. <street>826 Tanglewood Drive</street>
  2175. <city>Bluffton</city>
  2176. <state>SC</state>
  2177. <zip>29910</zip>
  2178. <country>USA</country>
  2179. </address>
  2180. <emails>
  2181. <email>balihai@q-net.net.id</email>
  2182. </emails>
  2183. </primaryContact>
  2184. </governmentCustomer>
  2185. <companyCustomer>
  2186. <customerCode>C003</customerCode>
  2187. <companyName>flksd12</companyName>
  2188. <address>
  2189. <street>912 B Street</street>
  2190. <city>Philadelphia</city>
  2191. <state>OH</state>
  2192. <zip>44663</zip>
  2193. <country>USA</country>
  2194. </address>
  2195. <primaryContact>
  2196. <personCode>flksd12</personCode>
  2197. <firstName>Madelene</firstName>
  2198. <lastName>Gallagher</lastName>
  2199. <address>
  2200. <street>722 Durham Road</street>
  2201. <city>Hoboken</city>
  2202. <state>NJ</state>
  2203. <zip>07030</zip>
  2204. <country>USA</country>
  2205. </address>
  2206. <emails>
  2207. <email>alampuri@resortgallery.com</email>
  2208. </emails>
  2209. </primaryContact>
  2210. </companyCustomer>
  2211. <governmentCustomer>
  2212. <customerCode>C004</customerCode>
  2213. <companyName>3lkjfds</companyName>
  2214. <address>
  2215. <street>6289 Silver Pines</street>
  2216. <city>Surprise Valley</city>
  2217. <state>MB</state>
  2218. <zip>R2P-8B6</zip>
  2219. <country>CA</country>
  2220. </address>
  2221. <primaryContact>
  2222. <personCode>3lkjfds</personCode>
  2223. <firstName>Joannie</firstName>
  2224. <lastName>George</lastName>
  2225. <address>
  2226. <street>996 Cobblestone Court</street>
  2227. <city>New Berlin</city>
  2228. <state>WI</state>
  2229. <zip>53151</zip>
  2230. <country>USA</country>
  2231. </address>
  2232. <emails>
  2233. <email>info@baliadventuretours.com</email>
  2234. </emails>
  2235. </primaryContact>
  2236. </governmentCustomer>
  2237. <companyCustomer>
  2238. <customerCode>C005</customerCode>
  2239. <companyName>lskdfj</companyName>
  2240. <address>
  2241. <street>400 Buttonwood Drive</street>
  2242. <city>Glendale Heights</city>
  2243. <state>IL</state>
  2244. <zip>60139</zip>
  2245. <country>USA</country>
  2246. </address>
  2247. <primaryContact>
  2248. <personCode>lskdfj</personCode>
  2249. <firstName>Hiroko</firstName>
  2250. <lastName>Saunders</lastName>
  2251. <address>
  2252. <street>716 West Street</street>
  2253. <city>Wadsworth</city>
  2254. <state>OH</state>
  2255. <zip>44281</zip>
  2256. <country>USA</country>
  2257. </address>
  2258. <emails>
  2259. <email>jawi@dps.centrin.net.id</email>
  2260. </emails>
  2261. </primaryContact>
  2262. </companyCustomer>
  2263. <governmentCustomer>
  2264. <customerCode>C006</customerCode>
  2265. <companyName>sldkf21</companyName>
  2266. <address>
  2267. <street>996 Cobblestone Court</street>
  2268. <city>New Berlin</city>
  2269. <state>WI</state>
  2270. <zip>53151</zip>
  2271. <country>USA</country>
  2272. </address>
  2273. <primaryContact>
  2274. <personCode>sldkf21</personCode>
  2275. <firstName>Lyle</firstName>
  2276. <lastName>Moss</lastName>
  2277. <address>
  2278. <street>331 Arlington Avenue</street>
  2279. <city>Hackettstown</city>
  2280. <state>NJ</state>
  2281. <zip>07840</zip>
  2282. <country>USA</country>
  2283. </address>
  2284. <emails>
  2285. <email>wisantaradps@yahoo.com</email>
  2286. </emails>
  2287. </primaryContact>
  2288. </governmentCustomer>
  2289. </customers>::::::::::::::
  2290. ./data/Persons.xml
  2291. ::::::::::::::
  2292. <persons>
  2293. <person>
  2294. <personCode>saslakdfj</personCode>
  2295. <firstName>Hal</firstName>
  2296. <lastName>Christensen</lastName>
  2297. <address>
  2298. <street>768 Main Street North</street>
  2299. <city>Fairborn</city>
  2300. <state>OH</state>
  2301. <zip>45324</zip>
  2302. <country>USA</country>
  2303. </address>
  2304. <emails>
  2305. <email>awing-awang@balivision.com</email>
  2306. </emails>
  2307. </person>
  2308. <person>
  2309. <personCode>sldkfje3</personCode>
  2310. <firstName>Minh</firstName>
  2311. <lastName>Obrien</lastName>
  2312. <address>
  2313. <street>826 Tanglewood Drive</street>
  2314. <city>Bluffton</city>
  2315. <state>SC</state>
  2316. <zip>29910</zip>
  2317. <country>USA</country>
  2318. </address>
  2319. <emails>
  2320. <email>balihai@q-net.net.id</email>
  2321. </emails>
  2322. </person>
  2323. <person>
  2324. <personCode>flksd12</personCode>
  2325. <firstName>Madelene</firstName>
  2326. <lastName>Gallagher</lastName>
  2327. <address>
  2328. <street>722 Durham Road</street>
  2329. <city>Hoboken</city>
  2330. <state>NJ</state>
  2331. <zip>07030</zip>
  2332. <country>USA</country>
  2333. </address>
  2334. <emails>
  2335. <email>alampuri@resortgallery.com</email>
  2336. </emails>
  2337. </person>
  2338. <person>
  2339. <personCode>3lkjfds</personCode>
  2340. <firstName>Joannie</firstName>
  2341. <lastName>George</lastName>
  2342. <address>
  2343. <street>996 Cobblestone Court</street>
  2344. <city>New Berlin</city>
  2345. <state>WI</state>
  2346. <zip>53151</zip>
  2347. <country>USA</country>
  2348. </address>
  2349. <emails>
  2350. <email>info@baliadventuretours.com</email>
  2351. </emails>
  2352. </person>
  2353. <person>
  2354. <personCode>lskdfj</personCode>
  2355. <firstName>Hiroko</firstName>
  2356. <lastName>Saunders</lastName>
  2357. <address>
  2358. <street>716 West Street</street>
  2359. <city>Wadsworth</city>
  2360. <state>OH</state>
  2361. <zip>44281</zip>
  2362. <country>USA</country>
  2363. </address>
  2364. <emails>
  2365. <email>jawi@dps.centrin.net.id</email>
  2366. </emails>
  2367. </person>
  2368. <person>
  2369. <personCode>sldkf21</personCode>
  2370. <firstName>Lyle</firstName>
  2371. <lastName>Moss</lastName>
  2372. <address>
  2373. <street>331 Arlington Avenue</street>
  2374. <city>Hackettstown</city>
  2375. <state>NJ</state>
  2376. <zip>07840</zip>
  2377. <country>USA</country>
  2378. </address>
  2379. <emails>
  2380. <email>wisantaradps@yahoo.com</email>
  2381. </emails>
  2382. </person>
  2383. <person>
  2384. <personCode>213dlkfj</personCode>
  2385. <firstName>Elliott</firstName>
  2386. <lastName>Fox</lastName>
  2387. <address>
  2388. <street>514 Park Place</street>
  2389. <city>Brownsburg</city>
  2390. <state>IN</state>
  2391. <zip>46112</zip>
  2392. <country>USA</country>
  2393. </address>
  2394. <emails>
  2395. <email>sbtours@indosat.net.id</email>
  2396. <email>nbauman663@gmail.com</email>
  2397. </emails>
  2398. </person>
  2399. <person>
  2400. <personCode>234dfkjd</personCode>
  2401. <firstName>Hannelore</firstName>
  2402. <lastName>Martinez</lastName>
  2403. <address>
  2404. <street>260 Bay Street</street>
  2405. <city>Smyrna</city>
  2406. <state>GA</state>
  2407. <zip>30080</zip>
  2408. <country>USA</country>
  2409. </address>
  2410. <emails>
  2411. <email>evi@mas-travel.com</email>
  2412. </emails>
  2413. </person>
  2414. <person>
  2415. <personCode>2342kljf</personCode>
  2416. <firstName>Hubert</firstName>
  2417. <lastName>Hampton</lastName>
  2418. <address>
  2419. <street>283 Woodland Avenue</street>
  2420. <city>Cambridge</city>
  2421. <state>MA</state>
  2422. <zip>02138</zip>
  2423. <country>USA</country>
  2424. </address>
  2425. <emails>
  2426. <email>haryo.santoso@trac.astra.co.id</email>
  2427. </emails>
  2428. </person>
  2429. <person>
  2430. <personCode>32kjlk2l</personCode>
  2431. <firstName>Mohammed</firstName>
  2432. <lastName>Lloyd</lastName>
  2433. <address>
  2434. <street>974 Lexington Drive</street>
  2435. <city>Kenosha</city>
  2436. <state>WI</state>
  2437. <zip>53140</zip>
  2438. <country>USA</country>
  2439. </address>
  2440. <emails>
  2441. <email>marketing@balivisioncomputer.com</email>
  2442. </emails>
  2443. </person>
  2444. <person>
  2445. <personCode>dlkfjk32</personCode>
  2446. <firstName>Angie</firstName>
  2447. <lastName>Giles</lastName>
  2448. <address>
  2449. <street>400 Buttonwood Drive</street>
  2450. <city>Glendale Heights</city>
  2451. <state>IL</state>
  2452. <zip>60139</zip>
  2453. <country>USA</country>
  2454. </address>
  2455. <emails>
  2456. <email>dsartika@internux.net.id</email>
  2457. </emails>
  2458. </person>
  2459. <person>
  2460. <personCode>sldkfjlk3</personCode>
  2461. <firstName>Edelmira</firstName>
  2462. <lastName>Lyons</lastName>
  2463. <address>
  2464. <street>565 Fawn Court</street>
  2465. <city>Winter Springs</city>
  2466. <state>FL</state>
  2467. <zip>32708</zip>
  2468. <country>USA</country>
  2469. </address>
  2470. <emails>
  2471. <email>a6us_kurniawan@yahoo.co.id</email>
  2472. </emails>
  2473. </person>
  2474. <person>
  2475. <personCode>fkjslkj32</personCode>
  2476. <firstName>Carletta</firstName>
  2477. <lastName>Mora</lastName>
  2478. <address>
  2479. <street>561 Edgewood Road</street>
  2480. <city>Solon</city>
  2481. <state>OH</state>
  2482. <zip>44139</zip>
  2483. <country>USA</country>
  2484. </address>
  2485. <emails>
  2486. <email>bernitha_widinansari@yahoo.co.id</email>
  2487. </emails>
  2488. </person>
  2489. <person>
  2490. <personCode>s123askfj</personCode>
  2491. <firstName>Horacio</firstName>
  2492. <lastName>Arellano</lastName>
  2493. <address>
  2494. <street>912 B Street</street>
  2495. <city>Philadelphia</city>
  2496. <state>OH</state>
  2497. <zip>44663</zip>
  2498. <country>USA</country>
  2499. </address>
  2500. <emails>
  2501. <email>elkahiri@yahoo.co.id</email>
  2502. </emails>
  2503. </person>
  2504. <person>
  2505. <personCode>dklfjkkl3</personCode>
  2506. <firstName>Kand</firstName>
  2507. <lastName>Wong</lastName>
  2508. <address>
  2509. <street>621 East Avenue</street>
  2510. <city>Brownsburg</city>
  2511. <state>IN</state>
  2512. <zip>46112</zip>
  2513. <country>USA</country>
  2514. </address>
  2515. <emails>
  2516. <email>faisal_silin@yahoo.com</email>
  2517. </emails>
  2518. </person>
  2519. <person>
  2520. <personCode>laskdfj</personCode>
  2521. <firstName>Ebonie</firstName>
  2522. <lastName>Marks</lastName>
  2523. <address>
  2524. <street>861 Jackson Avenue</street>
  2525. <city>Clemmons</city>
  2526. <state>NC</state>
  2527. <zip>27012</zip>
  2528. <country>USA</country>
  2529. </address>
  2530. <emails>
  2531. <email>fauzantan@yahoo.com</email>
  2532. </emails>
  2533. </person>
  2534. <person>
  2535. <personCode>vnxcmvn8</personCode>
  2536. <firstName>Nobuko</firstName>
  2537. <lastName>Orr</lastName>
  2538. <address>
  2539. <street>6289 Silver Pines</street>
  2540. <city>Surprise Valley</city>
  2541. <state>MB</state>
  2542. <zip>R2P-8B6</zip>
  2543. <country>CA</country>
  2544. </address>
  2545. <emails>
  2546. <email>fidiyono_bali@yahoo.com</email>
  2547. </emails>
  2548. </person>
  2549. <person>
  2550. <personCode>dlskfj24</personCode>
  2551. <firstName>Thi</firstName>
  2552. <lastName>Soto</lastName>
  2553. <address>
  2554. <street>6633 Thunder Panda Freeway</street>
  2555. <city>Judge Town</city>
  2556. <state>MB</state>
  2557. <zip>R4D-5B5</zip>
  2558. <country>CA</country>
  2559. </address>
  2560. <emails>
  2561. <email>gdiezzmewth@yahoo.co.id</email>
  2562. </emails>
  2563. </person>
  2564. <person>
  2565. <personCode>slkdfjllj4</personCode>
  2566. <firstName>Sharita</firstName>
  2567. <lastName>Campbell</lastName>
  2568. <address>
  2569. <street>8807 Quiet Lane</street>
  2570. <city>Elephant Butte</city>
  2571. <state>YK</state>
  2572. <zip>Y1O-8K0</zip>
  2573. <country>CA</country>
  2574. </address>
  2575. <emails>
  2576. <email>itha_ersita@yahoo.com</email>
  2577. </emails>
  2578. </person>
  2579. <person>
  2580. <personCode>slkdfjlk2</personCode>
  2581. <firstName>Wilber</firstName>
  2582. <lastName>Gillespie</lastName>
  2583. <address>
  2584. <street>9590 Dusty Orchard</street>
  2585. <city>Red Wash</city>
  2586. <state>SK</state>
  2587. <zip>S1X-1H7</zip>
  2588. <country>CA</country>
  2589. </address>
  2590. <emails>
  2591. <email>waow_one@yahoo.co.id</email>
  2592. </emails>
  2593. </person>
  2594. </persons>::::::::::::::
  2595. ./data/Products.xml
  2596. ::::::::::::::
  2597. <products>
  2598. <equipment>
  2599. <productCode>b29e</productCode>
  2600. <name>Cinco MIDI Organizer</name>
  2601. <pricePerUnit>2500.0</pricePerUnit>
  2602. </equipment>
  2603. <equipment>
  2604. <productCode>ff23</productCode>
  2605. <name>Cinco-Fone</name>
  2606. <pricePerUnit>124.99</pricePerUnit>
  2607. </equipment>
  2608. <equipment>
  2609. <productCode>fp12</productCode>
  2610. <name>Internette Discs</name>
  2611. <pricePerUnit>14.99</pricePerUnit>
  2612. </equipment>
  2613. <equipment>
  2614. <productCode>1239</productCode>
  2615. <name>Cinco Video Cube Playback System</name>
  2616. <pricePerUnit>5000.0</pricePerUnit>
  2617. </equipment>
  2618. <license>
  2619. <productCode>90fa</productCode>
  2620. <name>Cinco Long Distance Service</name>
  2621. <fee>2000.0</fee>
  2622. <annualCost>12000.0</annualCost>
  2623. </license>
  2624. <consultation>
  2625. <productCode>3289</productCode>
  2626. <name>Cinco-Fone Training</name>
  2627. <pricePerHour>25.0</pricePerHour>
  2628. </consultation>
  2629. <consultation>
  2630. <productCode>782g</productCode>
  2631. <name>Server System Setup</name>
  2632. <pricePerHour>150.0</pricePerHour>
  2633. </consultation>
  2634. <license>
  2635. <productCode>3294</productCode>
  2636. <name>Cloud SQL Hosting</name>
  2637. <fee>0.0</fee>
  2638. <annualCost>35000.0</annualCost>
  2639. </license>
  2640. <license>
  2641. <productCode>3295</productCode>
  2642. <name>Domain registration</name>
  2643. <fee>350.0</fee>
  2644. <annualCost>1200.0</annualCost>
  2645. </license>
  2646. </products>
  2647. ::::::::::::::
  2648. ./data/Customers.json
  2649. ::::::::::::::
  2650. <customers>
  2651. <governmentCustomer>
  2652. <customerCode>C001</customerCode>
  2653. <companyName>saslakdfj</companyName>
  2654. <address>
  2655. <street>6633 Thunder Panda Freeway</street>
  2656. <city>Judge Town</city>
  2657. <state>MB</state>
  2658. <zip>R4D-5B5</zip>
  2659. <country>CA</country>
  2660. </address>
  2661. <primaryContact>
  2662. <personCode>saslakdfj</personCode>
  2663. <firstName>Hal</firstName>
  2664. <lastName>Christensen</lastName>
  2665. <address>
  2666. <street>768 Main Street North</street>
  2667. <city>Fairborn</city>
  2668. <state>OH</state>
  2669. <zip>45324</zip>
  2670. <country>USA</country>
  2671. </address>
  2672. <emails>
  2673. <email>awing-awang@balivision.com</email>
  2674. </emails>
  2675. </primaryContact>
  2676. </governmentCustomer>
  2677. <governmentCustomer>
  2678. <customerCode>C002</customerCode>
  2679. <companyName>sldkfje3</companyName>
  2680. <address>
  2681. <street>260 Bay Street</street>
  2682. <city>Smyrna</city>
  2683. <state>GA</state>
  2684. <zip>30080</zip>
  2685. <country>USA</country>
  2686. </address>
  2687. <primaryContact>
  2688. <personCode>sldkfje3</personCode>
  2689. <firstName>Minh</firstName>
  2690. <lastName>Obrien</lastName>
  2691. <address>
  2692. <street>826 Tanglewood Drive</street>
  2693. <city>Bluffton</city>
  2694. <state>SC</state>
  2695. <zip>29910</zip>
  2696. <country>USA</country>
  2697. </address>
  2698. <emails>
  2699. <email>balihai@q-net.net.id</email>
  2700. </emails>
  2701. </primaryContact>
  2702. </governmentCustomer>
  2703. <companyCustomer>
  2704. <customerCode>C003</customerCode>
  2705. <companyName>flksd12</companyName>
  2706. <address>
  2707. <street>912 B Street</street>
  2708. <city>Philadelphia</city>
  2709. <state>OH</state>
  2710. <zip>44663</zip>
  2711. <country>USA</country>
  2712. </address>
  2713. <primaryContact>
  2714. <personCode>flksd12</personCode>
  2715. <firstName>Madelene</firstName>
  2716. <lastName>Gallagher</lastName>
  2717. <address>
  2718. <street>722 Durham Road</street>
  2719. <city>Hoboken</city>
  2720. <state>NJ</state>
  2721. <zip>07030</zip>
  2722. <country>USA</country>
  2723. </address>
  2724. <emails>
  2725. <email>alampuri@resortgallery.com</email>
  2726. </emails>
  2727. </primaryContact>
  2728. </companyCustomer>
  2729. <governmentCustomer>
  2730. <customerCode>C004</customerCode>
  2731. <companyName>3lkjfds</companyName>
  2732. <address>
  2733. <street>6289 Silver Pines</street>
  2734. <city>Surprise Valley</city>
  2735. <state>MB</state>
  2736. <zip>R2P-8B6</zip>
  2737. <country>CA</country>
  2738. </address>
  2739. <primaryContact>
  2740. <personCode>3lkjfds</personCode>
  2741. <firstName>Joannie</firstName>
  2742. <lastName>George</lastName>
  2743. <address>
  2744. <street>996 Cobblestone Court</street>
  2745. <city>New Berlin</city>
  2746. <state>WI</state>
  2747. <zip>53151</zip>
  2748. <country>USA</country>
  2749. </address>
  2750. <emails>
  2751. <email>info@baliadventuretours.com</email>
  2752. </emails>
  2753. </primaryContact>
  2754. </governmentCustomer>
  2755. <companyCustomer>
  2756. <customerCode>C005</customerCode>
  2757. <companyName>lskdfj</companyName>
  2758. <address>
  2759. <street>400 Buttonwood Drive</street>
  2760. <city>Glendale Heights</city>
  2761. <state>IL</state>
  2762. <zip>60139</zip>
  2763. <country>USA</country>
  2764. </address>
  2765. <primaryContact>
  2766. <personCode>lskdfj</personCode>
  2767. <firstName>Hiroko</firstName>
  2768. <lastName>Saunders</lastName>
  2769. <address>
  2770. <street>716 West Street</street>
  2771. <city>Wadsworth</city>
  2772. <state>OH</state>
  2773. <zip>44281</zip>
  2774. <country>USA</country>
  2775. </address>
  2776. <emails>
  2777. <email>jawi@dps.centrin.net.id</email>
  2778. </emails>
  2779. </primaryContact>
  2780. </companyCustomer>
  2781. <governmentCustomer>
  2782. <customerCode>C006</customerCode>
  2783. <companyName>sldkf21</companyName>
  2784. <address>
  2785. <street>996 Cobblestone Court</street>
  2786. <city>New Berlin</city>
  2787. <state>WI</state>
  2788. <zip>53151</zip>
  2789. <country>USA</country>
  2790. </address>
  2791. <primaryContact>
  2792. <personCode>sldkf21</personCode>
  2793. <firstName>Lyle</firstName>
  2794. <lastName>Moss</lastName>
  2795. <address>
  2796. <street>331 Arlington Avenue</street>
  2797. <city>Hackettstown</city>
  2798. <state>NJ</state>
  2799. <zip>07840</zip>
  2800. <country>USA</country>
  2801. </address>
  2802. <emails>
  2803. <email>wisantaradps@yahoo.com</email>
  2804. </emails>
  2805. </primaryContact>
  2806. </governmentCustomer>
  2807. </customers>::::::::::::::
  2808. ./data/Persons.json
  2809. ::::::::::::::
  2810. {
  2811. "persons": {
  2812. "person": [
  2813. {
  2814. "personCode": "saslakdfj",
  2815. "firstName": "Hal",
  2816. "lastName": "Christensen",
  2817. "address": {
  2818. "street": "768 Main Street North",
  2819. "city": "Fairborn",
  2820. "state": "OH",
  2821. "zip": "45324",
  2822. "country": "USA"
  2823. },
  2824. "emails": [
  2825. "awing-awang@balivision.com"
  2826. ]
  2827. },
  2828. {
  2829. "personCode": "sldkfje3",
  2830. "firstName": "Minh",
  2831. "lastName": "Obrien",
  2832. "address": {
  2833. "street": "826 Tanglewood Drive",
  2834. "city": "Bluffton",
  2835. "state": "SC",
  2836. "zip": "29910",
  2837. "country": "USA"
  2838. },
  2839. "emails": [
  2840. "balihai@q-net.net.id"
  2841. ]
  2842. },
  2843. {
  2844. "personCode": "flksd12",
  2845. "firstName": "Madelene",
  2846. "lastName": "Gallagher",
  2847. "address": {
  2848. "street": "722 Durham Road",
  2849. "city": "Hoboken",
  2850. "state": "NJ",
  2851. "zip": "07030",
  2852. "country": "USA"
  2853. },
  2854. "emails": [
  2855. "alampuri@resortgallery.com"
  2856. ]
  2857. },
  2858. {
  2859. "personCode": "3lkjfds",
  2860. "firstName": "Joannie",
  2861. "lastName": "George",
  2862. "address": {
  2863. "street": "996 Cobblestone Court",
  2864. "city": "New Berlin",
  2865. "state": "WI",
  2866. "zip": "53151",
  2867. "country": "USA"
  2868. },
  2869. "emails": [
  2870. "info@baliadventuretours.com"
  2871. ]
  2872. },
  2873. {
  2874. "personCode": "lskdfj",
  2875. "firstName": "Hiroko",
  2876. "lastName": "Saunders",
  2877. "address": {
  2878. "street": "716 West Street",
  2879. "city": "Wadsworth",
  2880. "state": "OH",
  2881. "zip": "44281",
  2882. "country": "USA"
  2883. },
  2884. "emails": [
  2885. "jawi@dps.centrin.net.id"
  2886. ]
  2887. },
  2888. {
  2889. "personCode": "sldkf21",
  2890. "firstName": "Lyle",
  2891. "lastName": "Moss",
  2892. "address": {
  2893. "street": "331 Arlington Avenue",
  2894. "city": "Hackettstown",
  2895. "state": "NJ",
  2896. "zip": "07840",
  2897. "country": "USA"
  2898. },
  2899. "emails": [
  2900. "wisantaradps@yahoo.com"
  2901. ]
  2902. },
  2903. {
  2904. "personCode": "213dlkfj",
  2905. "firstName": "Elliott",
  2906. "lastName": "Fox",
  2907. "address": {
  2908. "street": "514 Park Place",
  2909. "city": "Brownsburg",
  2910. "state": "IN",
  2911. "zip": "46112",
  2912. "country": "USA"
  2913. },
  2914. "emails": [
  2915. "sbtours@indosat.net.id",
  2916. "nbauman663@gmail.com"
  2917. ]
  2918. },
  2919. {
  2920. "personCode": "234dfkjd",
  2921. "firstName": "Hannelore",
  2922. "lastName": "Martinez",
  2923. "address": {
  2924. "street": "260 Bay Street",
  2925. "city": "Smyrna",
  2926. "state": "GA",
  2927. "zip": "30080",
  2928. "country": "USA"
  2929. },
  2930. "emails": [
  2931. "evi@mas-travel.com"
  2932. ]
  2933. },
  2934. {
  2935. "personCode": "2342kljf",
  2936. "firstName": "Hubert",
  2937. "lastName": "Hampton",
  2938. "address": {
  2939. "street": "283 Woodland Avenue",
  2940. "city": "Cambridge",
  2941. "state": "MA",
  2942. "zip": "02138",
  2943. "country": "USA"
  2944. },
  2945. "emails": [
  2946. "haryo.santoso@trac.astra.co.id"
  2947. ]
  2948. },
  2949. {
  2950. "personCode": "32kjlk2l",
  2951. "firstName": "Mohammed",
  2952. "lastName": "Lloyd",
  2953. "address": {
  2954. "street": "974 Lexington Drive",
  2955. "city": "Kenosha",
  2956. "state": "WI",
  2957. "zip": "53140",
  2958. "country": "USA"
  2959. },
  2960. "emails": [
  2961. "marketing@balivisioncomputer.com"
  2962. ]
  2963. },
  2964. {
  2965. "personCode": "dlkfjk32",
  2966. "firstName": "Angie",
  2967. "lastName": "Giles",
  2968. "address": {
  2969. "street": "400 Buttonwood Drive",
  2970. "city": "Glendale Heights",
  2971. "state": "IL",
  2972. "zip": "60139",
  2973. "country": "USA"
  2974. },
  2975. "emails": [
  2976. "dsartika@internux.net.id"
  2977. ]
  2978. },
  2979. {
  2980. "personCode": "sldkfjlk3",
  2981. "firstName": "Edelmira",
  2982. "lastName": "Lyons",
  2983. "address": {
  2984. "street": "565 Fawn Court",
  2985. "city": "Winter Springs",
  2986. "state": "FL",
  2987. "zip": "32708",
  2988. "country": "USA"
  2989. },
  2990. "emails": [
  2991. "a6us_kurniawan@yahoo.co.id"
  2992. ]
  2993. },
  2994. {
  2995. "personCode": "fkjslkj32",
  2996. "firstName": "Carletta",
  2997. "lastName": "Mora",
  2998. "address": {
  2999. "street": "561 Edgewood Road",
  3000. "city": "Solon",
  3001. "state": "OH",
  3002. "zip": "44139",
  3003. "country": "USA"
  3004. },
  3005. "emails": [
  3006. "bernitha_widinansari@yahoo.co.id"
  3007. ]
  3008. },
  3009. {
  3010. "personCode": "s123askfj",
  3011. "firstName": "Horacio",
  3012. "lastName": "Arellano",
  3013. "address": {
  3014. "street": "912 B Street",
  3015. "city": "Philadelphia",
  3016. "state": "OH",
  3017. "zip": "44663",
  3018. "country": "USA"
  3019. },
  3020. "emails": [
  3021. "elkahiri@yahoo.co.id"
  3022. ]
  3023. },
  3024. {
  3025. "personCode": "dklfjkkl3",
  3026. "firstName": "Kand",
  3027. "lastName": "Wong",
  3028. "address": {
  3029. "street": "621 East Avenue",
  3030. "city": "Brownsburg",
  3031. "state": "IN",
  3032. "zip": "46112",
  3033. "country": "USA"
  3034. },
  3035. "emails": [
  3036. "faisal_silin@yahoo.com"
  3037. ]
  3038. },
  3039. {
  3040. "personCode": "laskdfj",
  3041. "firstName": "Ebonie",
  3042. "lastName": "Marks",
  3043. "address": {
  3044. "street": "861 Jackson Avenue",
  3045. "city": "Clemmons",
  3046. "state": "NC",
  3047. "zip": "27012",
  3048. "country": "USA"
  3049. },
  3050. "emails": [
  3051. "fauzantan@yahoo.com"
  3052. ]
  3053. },
  3054. {
  3055. "personCode": "vnxcmvn8",
  3056. "firstName": "Nobuko",
  3057. "lastName": "Orr",
  3058. "address": {
  3059. "street": "6289 Silver Pines",
  3060. "city": "Surprise Valley",
  3061. "state": "MB",
  3062. "zip": "R2P-8B6",
  3063. "country": "CA"
  3064. },
  3065. "emails": [
  3066. "fidiyono_bali@yahoo.com"
  3067. ]
  3068. },
  3069. {
  3070. "personCode": "dlskfj24",
  3071. "firstName": "Thi",
  3072. "lastName": "Soto",
  3073. "address": {
  3074. "street": "6633 Thunder Panda Freeway",
  3075. "city": "Judge Town",
  3076. "state": "MB",
  3077. "zip": "R4D-5B5",
  3078. "country": "CA"
  3079. },
  3080. "emails": [
  3081. "gdiezzmewth@yahoo.co.id"
  3082. ]
  3083. },
  3084. {
  3085. "personCode": "slkdfjllj4",
  3086. "firstName": "Sharita",
  3087. "lastName": "Campbell",
  3088. "address": {
  3089. "street": "8807 Quiet Lane",
  3090. "city": "Elephant Butte",
  3091. "state": "YK",
  3092. "zip": "Y1O-8K0",
  3093. "country": "CA"
  3094. },
  3095. "emails": [
  3096. "itha_ersita@yahoo.com"
  3097. ]
  3098. },
  3099. {
  3100. "personCode": "slkdfjlk2",
  3101. "firstName": "Wilber",
  3102. "lastName": "Gillespie",
  3103. "address": {
  3104. "street": "9590 Dusty Orchard",
  3105. "city": "Red Wash",
  3106. "state": "SK",
  3107. "zip": "S1X-1H7",
  3108. "country": "CA"
  3109. },
  3110. "emails": [
  3111. "waow_one@yahoo.co.id"
  3112. ]
  3113. }
  3114. ]
  3115. }
  3116. }
  3117. ::::::::::::::
  3118. ./data/Products.json
  3119. ::::::::::::::
  3120. {
  3121. "products": [ {
  3122. "code": "b29e",
  3123. "name": "Cinco MIDI Organizer",
  3124. "pricePerUnit": 2500.0
  3125. },
  3126. {
  3127. "code": "ff23",
  3128. "name": "Cinco-Fone",
  3129. "pricePerUnit": 124.99
  3130. },
  3131. {
  3132. "code": "fp12",
  3133. "name": "Internette Discs",
  3134. "pricePerUnit": 14.99
  3135. },
  3136. {
  3137. "code": "1239",
  3138. "name": "Cinco Video Cube Playback System",
  3139. "pricePerUnit": 5000.0
  3140. },
  3141. {
  3142. "code": "90fa",
  3143. "name": "Cinco Long Distance Service",
  3144. "serviceFee": 2000.0,
  3145. "annualLicenseFee": 12000.0
  3146. },
  3147. {
  3148. "code": "3289",
  3149. "name": "Cinco-Fone Training",
  3150. "hourlyFee": 25.0
  3151. },
  3152. {
  3153. "code": "782g",
  3154. "name": "Server System Setup",
  3155. "hourlyFee": 150.0
  3156. },
  3157. {
  3158. "code": "3294",
  3159. "name": "Cloud SQL Hosting",
  3160. "serviceFee": 0.0,
  3161. "annualLicenseFee": 35000.0
  3162. },
  3163. {
  3164. "code": "3295",
  3165. "name": "Domain registration",
  3166. "serviceFee": 350.0,
  3167. "annualLicenseFee": 1200.0
  3168. }
  3169. ]}
  3170.  
  3171. [-] Test Case 1 (case03)
  3172. Expected Output
  3173.  
  3174. Data and output files:
  3175.  
  3176.  
  3177. Customers.dat:
  3178. 6
  3179. C501;G;af1;University of Nebraska-Lincoln;Harper Hall,Lincoln,NE,68588,USA
  3180. C202;C;af1;James Stark Industries;Packer Drive,Green Bay,WI,54301,USA
  3181. C002;C;af1;Ventura Industry;1234 Ventura Way,San Francisco,CA,90200,USA
  3182. C009;G;af1;NSA;980 Savager Rd,Kansas City,MO,66111,USA
  3183. C015;C;af1;Van Industries;1060 North Madison,Chicago,IL,60602,USA
  3184. C006;C;af1;DR. Dre Inc.;2nd South Street,Lincoln,NE,67500,USA
  3185.  
  3186.  
  3187.  
  3188. Persons.dat:
  3189. 20
  3190. 94c;Cast, Star;1060 South Maddison Ave,Sayreville,NY,122,USA;scast@cubs.com,starcasto13@gmail.com
  3191. 06a;Sam, Brockel;123 N ,Lincoln,NE,68116,USA;brocysam@gmail.com,bsam@venture.com
  3192. 55b;Brien, Mile;8753 West 8th St,Housten,TX,75305,USA;brien@ds9.com,brien@enterprise.gov
  3193. 42;OCyrus, Miley;123 Rude Street,Oklahoma City,OK,57011,USA;
  3194. af1;Geo, Gordo;2 Wall Street,New York,NY,10005-0012,USA;
  3195. 3f;Foxeyy, Budeeyyy;32 Bron Street,New York City,NY,10004,USA;bfo@gmail.com,heen@crazy.net
  3196. ma1;Sve, Dalley;1 West Maddison Dr,Kansas City,MO,66111,USA;sve@cubs.com
  3197. 31f;Hart, Willi;11 West Maddison Street,Chicago,IL,60613,USA;hart@doctors.com,drmoo@who.com
  3198. nf3;Trow, Patty;100 SW Maddison St,Chicago,IL,60613,USA;p@cse.unl.edu,ptou32@unl.edu
  3199. 121eu;Pewee, Johny;3rd Front St, FairBanks, AK, 74849, USA;jetwee@whofan.com
  3200. 2;Boy,Tommy;2 Red Hawks Run, Kearny, MO, 64099, USA;famodoc@who.com,er@cse.unl.edu,mostifamous@whovian.com,thedocr@bbc.com
  3201. 6dc;Hurndel, Dick;South West,Pheonix, AR, 00321,USA;Shmeh@cse.unl.edu,DICKY@unl.edu
  3202. 31d;Baka, C.J.;Nebraska Hall,Lincoln,NE,68503,USA;r@baker.com
  3203. 1svndr;Coy,Salle;12th Roosevelt Ave, Mushing, MN,78294,USA;slycoy@hotmail.com,coy@whofan.com
  3204. 12t;Gann, Pauly;MetLife Stadium Drive, East Rutherford, NJ,07073,USA;pcgann@mlb.com,fo@bar.com,mc@unl.edu
  3205. swdoc2;Kilkeny, Christopher;10 North 11th Rd, Brooklyn, NY,10451,USA;oldguy@whovian.com
  3206. 2estd;Ten, Davey;70022 N Dull Ave, St. Louis, MO, 60111,USA;natc@shakespeare.com,tdavey@unl.edu
  3207. wroc;Smity, Matty;333 Weast 35th St, Princeton, NY,20496,USA;msmithy@who.com,thedocy@cse.unl.edu
  3208. bar;Traut, Kayle;3 North, St. Louis, MO, 65935,USA;
  3209. doyc05;Dave, Petey;12 Cabob Lucas, Los Cabos, BCS, , Mexico;
  3210.  
  3211. Products.dat:
  3212. 9
  3213. b2e;E;Uno PID Suplier;500.0
  3214. ff1;E;Cuatro-Pone;12.20
  3215. f12;E;Noternet Things;12.59
  3216. 139;E;Ocho Video Cubix;5000.00
  3217. 90f;L;Ocho Services;200.00;2400.00
  3218. 329;C;Cuatro-Pone Training;af1;20.00
  3219. 72g;C;Server System Meltdown;31f;53.10
  3220. 329;L;Your SQL Host;2.00;55000.00
  3221. 329;L;Yoname Registration;210.00;2000.00
  3222.  
  3223. Customers.xml:
  3224. <?xml version="1.0"?>
  3225. <customers>
  3226. <companyCustomer>
  3227. <customerCode>C006</customerCode>
  3228. <name>DR. Dre Inc.</name>
  3229. <address>
  3230. <street>2nd South Street</street>
  3231. <city>Lincoln</city>
  3232. <state>NE</state>
  3233. <zip>67500</zip>
  3234. <country>USA</country>
  3235. </address>
  3236. </companyCustomer>
  3237. <companyCustomer>
  3238. <customerCode>C015</customerCode>
  3239. <name>Van Industries</name>
  3240. <address>
  3241. <street>1060 North Madison</street>
  3242. <city>Chicago</city>
  3243. <state>IL</state>
  3244. <zip>60602</zip>
  3245. <country>USA</country>
  3246. </address>
  3247. </companyCustomer>
  3248. <governmentCustomer>
  3249. <customerCode>C501</customerCode>
  3250. <name>University of Nebraska-Lincoln</name>
  3251. <address>
  3252. <street>Harper Hall</street>
  3253. <city>Lincoln</city>
  3254. <state>NE</state>
  3255. <zip>68588</zip>
  3256. <country>USA</country>
  3257. </address>
  3258. </governmentCustomer>
  3259. <governmentCustomer>
  3260. <customerCode>C009</customerCode>
  3261. <name>NSA</name>
  3262. <address>
  3263. <street>980 Savager Rd</street>
  3264. <city>Kansas City</city>
  3265. <state>MO</state>
  3266. <zip>66111</zip>
  3267. <country>USA</country>
  3268. </address>
  3269. </governmentCustomer>
  3270. <companyCustomer>
  3271. <customerCode>C202</customerCode>
  3272. <name>James Stark Industries</name>
  3273. <address>
  3274. <street>Packer Drive</street>
  3275. <city>Green Bay</city>
  3276. <state>WI</state>
  3277. <zip>54301</zip>
  3278. <country>USA</country>
  3279. </address>
  3280. </companyCustomer>
  3281. <companyCustomer>
  3282. <customerCode>C002</customerCode>
  3283. <name>Ventura Industry</name>
  3284. <address>
  3285. <street>1234 Ventura Way</street>
  3286. <city>San Francisco</city>
  3287. <state>CA</state>
  3288. <zip>90200</zip>
  3289. <country>USA</country>
  3290. </address>
  3291. </companyCustomer>
  3292. </customers>
  3293.  
  3294. Persons.xml:
  3295. <?xml version="1.0"?>
  3296. <persons>
  3297. <person>
  3298. <personCode>2estd</personCode>
  3299. <firstName>Davey</firstName>
  3300. <lastName>Ten</lastName>
  3301. <address>
  3302. <street>70022 N Dull Ave</street>
  3303. <city>St. Louis</city>
  3304. <state>MO</state>
  3305. <zip>60111</zip>
  3306. <country>USA</country>
  3307. </address>
  3308. <emails>
  3309. <email>tdavey@unl.edu</email>
  3310. <email>natc@shakespeare.com</email>
  3311. </emails>
  3312. </person>
  3313. <person>
  3314. <personCode>af1</personCode>
  3315. <firstName>Gordo</firstName>
  3316. <lastName>Geo</lastName>
  3317. <address>
  3318. <street>2 Wall Street</street>
  3319. <city>New York</city>
  3320. <state>NY</state>
  3321. <zip>10005-0012</zip>
  3322. <country>USA</country>
  3323. </address>
  3324. <emails/>
  3325. </person>
  3326. <person>
  3327. <personCode>12t</personCode>
  3328. <firstName>Pauly</firstName>
  3329. <lastName>Gann</lastName>
  3330. <address>
  3331. <street>MetLife Stadium Drive</street>
  3332. <city>East Rutherford</city>
  3333. <state>NJ</state>
  3334. <zip>07073</zip>
  3335. <country>USA</country>
  3336. </address>
  3337. <emails>
  3338. <email>mc@unl.edu</email>
  3339. <email>fo@bar.com</email>
  3340. <email>pcgann@mlb.com</email>
  3341. </emails>
  3342. </person>
  3343. <person>
  3344. <personCode>nf3</personCode>
  3345. <firstName>Patty</firstName>
  3346. <lastName>Trow</lastName>
  3347. <address>
  3348. <street>100 SW Maddison St</street>
  3349. <city>Chicago</city>
  3350. <state>IL</state>
  3351. <zip>60613</zip>
  3352. <country>USA</country>
  3353. </address>
  3354. <emails>
  3355. <email>ptou32@unl.edu</email>
  3356. <email>p@cse.unl.edu</email>
  3357. </emails>
  3358. </person>
  3359. <person>
  3360. <personCode>6dc</personCode>
  3361. <firstName>Dick</firstName>
  3362. <lastName>Hurndel</lastName>
  3363. <address>
  3364. <street>South West</street>
  3365. <city>Pheonix</city>
  3366. <state>AR</state>
  3367. <zip>00321</zip>
  3368. <country>USA</country>
  3369. </address>
  3370. <emails>
  3371. <email>DICKY@unl.edu</email>
  3372. <email>Shmeh@cse.unl.edu</email>
  3373. </emails>
  3374. </person>
  3375. <person>
  3376. <personCode>swdoc2</personCode>
  3377. <firstName>Christopher</firstName>
  3378. <lastName>Kilkeny</lastName>
  3379. <address>
  3380. <street>10 North 11th Rd</street>
  3381. <city>Brooklyn</city>
  3382. <state>NY</state>
  3383. <zip>10451</zip>
  3384. <country>USA</country>
  3385. </address>
  3386. <emails>
  3387. <email>oldguy@whovian.com</email>
  3388. </emails>
  3389. </person>
  3390. <person>
  3391. <personCode>55b</personCode>
  3392. <firstName>Mile</firstName>
  3393. <lastName>Brien</lastName>
  3394. <address>
  3395. <street>8753 West 8th St</street>
  3396. <city>Housten</city>
  3397. <state>TX</state>
  3398. <zip>75305</zip>
  3399. <country>USA</country>
  3400. </address>
  3401. <emails>
  3402. <email>brien@enterprise.gov</email>
  3403. <email>brien@ds9.com</email>
  3404. </emails>
  3405. </person>
  3406. <person>
  3407. <personCode>doyc05</personCode>
  3408. <firstName>Petey</firstName>
  3409. <lastName>Dave</lastName>
  3410. <address>
  3411. <street>12 Cabob Lucas</street>
  3412. <city>Los Cabos</city>
  3413. <state>BCS</state>
  3414. <zip></zip>
  3415. <country>Mexico</country>
  3416. </address>
  3417. <emails/>
  3418. </person>
  3419. <person>
  3420. <personCode>1svndr</personCode>
  3421. <firstName>Salle</firstName>
  3422. <lastName>Coy</lastName>
  3423. <address>
  3424. <street>12th Roosevelt Ave</street>
  3425. <city>Mushing</city>
  3426. <state>MN</state>
  3427. <zip>78294</zip>
  3428. <country>USA</country>
  3429. </address>
  3430. <emails>
  3431. <email>coy@whofan.com</email>
  3432. <email>slycoy@hotmail.com</email>
  3433. </emails>
  3434. </person>
  3435. <person>
  3436. <personCode>2</personCode>
  3437. <firstName>Tommy</firstName>
  3438. <lastName>Boy</lastName>
  3439. <address>
  3440. <street>2 Red Hawks Run</street>
  3441. <city>Kearny</city>
  3442. <state>MO</state>
  3443. <zip>64099</zip>
  3444. <country>USA</country>
  3445. </address>
  3446. <emails>
  3447. <email>famodoc@who.com</email>
  3448. <email>thedocr@bbc.com</email>
  3449. <email>er@cse.unl.edu</email>
  3450. <email>mostifamous@whovian.com</email>
  3451. </emails>
  3452. </person>
  3453. <person>
  3454. <personCode>121eu</personCode>
  3455. <firstName>Johny</firstName>
  3456. <lastName>Pewee</lastName>
  3457. <address>
  3458. <street>3rd Front St</street>
  3459. <city>FairBanks</city>
  3460. <state>AK</state>
  3461. <zip>74849</zip>
  3462. <country>USA</country>
  3463. </address>
  3464. <emails>
  3465. <email>jetwee@whofan.com</email>
  3466. </emails>
  3467. </person>
  3468. <person>
  3469. <personCode>31f</personCode>
  3470. <firstName>Willi</firstName>
  3471. <lastName>Hart</lastName>
  3472. <address>
  3473. <street>11 West Maddison Street</street>
  3474. <city>Chicago</city>
  3475. <state>IL</state>
  3476. <zip>60613</zip>
  3477. <country>USA</country>
  3478. </address>
  3479. <emails>
  3480. <email>drmoo@who.com</email>
  3481. <email>hart@doctors.com</email>
  3482. </emails>
  3483. </person>
  3484. <person>
  3485. <personCode>42</personCode>
  3486. <firstName>Miley</firstName>
  3487. <lastName>OCyrus</lastName>
  3488. <address>
  3489. <street>123 Rude Street</street>
  3490. <city>Oklahoma City</city>
  3491. <state>OK</state>
  3492. <zip>57011</zip>
  3493. <country>USA</country>
  3494. </address>
  3495. <emails/>
  3496. </person>
  3497. <person>
  3498. <personCode>94c</personCode>
  3499. <firstName>Star</firstName>
  3500. <lastName>Cast</lastName>
  3501. <address>
  3502. <street>1060 South Maddison Ave</street>
  3503. <city>Sayreville</city>
  3504. <state>NY</state>
  3505. <zip>122</zip>
  3506. <country>USA</country>
  3507. </address>
  3508. <emails>
  3509. <email>starcasto13@gmail.com</email>
  3510. <email>scast@cubs.com</email>
  3511. </emails>
  3512. </person>
  3513. <person>
  3514. <personCode>06a</personCode>
  3515. <firstName>Brockel</firstName>
  3516. <lastName>Sam</lastName>
  3517. <address>
  3518. <street>123 N</street>
  3519. <city>Lincoln</city>
  3520. <state>NE</state>
  3521. <zip>68116</zip>
  3522. <country>USA</country>
  3523. </address>
  3524. <emails>
  3525. <email>bsam@venture.com</email>
  3526. <email>brocysam@gmail.com</email>
  3527. </emails>
  3528. </person>
  3529. <person>
  3530. <personCode>3f</personCode>
  3531. <firstName>Budeeyyy</firstName>
  3532. <lastName>Foxeyy</lastName>
  3533. <address>
  3534. <street>32 Bron Street</street>
  3535. <city>New York City</city>
  3536. <state>NY</state>
  3537. <zip>10004</zip>
  3538. <country>USA</country>
  3539. </address>
  3540. <emails>
  3541. <email>bfo@gmail.com</email>
  3542. <email>heen@crazy.net</email>
  3543. </emails>
  3544. </person>
  3545. <person>
  3546. <personCode>bar</personCode>
  3547. <firstName>Kayle</firstName>
  3548. <lastName>Traut</lastName>
  3549. <address>
  3550. <street>3 North</street>
  3551. <city>St. Louis</city>
  3552. <state>MO</state>
  3553. <zip>65935</zip>
  3554. <country>USA</country>
  3555. </address>
  3556. <emails/>
  3557. </person>
  3558. <person>
  3559. <personCode>wroc</personCode>
  3560. <firstName>Matty</firstName>
  3561. <lastName>Smity</lastName>
  3562. <address>
  3563. <street>333 Weast 35th St</street>
  3564. <city>Princeton</city>
  3565. <state>NY</state>
  3566. <zip>20496</zip>
  3567. <country>USA</country>
  3568. </address>
  3569. <emails>
  3570. <email>thedocy@cse.unl.edu</email>
  3571. <email>msmithy@who.com</email>
  3572. </emails>
  3573. </person>
  3574. <person>
  3575. <personCode>31d</personCode>
  3576. <firstName>C.J.</firstName>
  3577. <lastName>Baka</lastName>
  3578. <address>
  3579. <street>Nebraska Hall</street>
  3580. <city>Lincoln</city>
  3581. <state>NE</state>
  3582. <zip>68503</zip>
  3583. <country>USA</country>
  3584. </address>
  3585. <emails>
  3586. <email>r@baker.com</email>
  3587. </emails>
  3588. </person>
  3589. <person>
  3590. <personCode>ma1</personCode>
  3591. <firstName>Dalley</firstName>
  3592. <lastName>Sve</lastName>
  3593. <address>
  3594. <street>1 West Maddison Dr</street>
  3595. <city>Kansas City</city>
  3596. <state>MO</state>
  3597. <zip>66111</zip>
  3598. <country>USA</country>
  3599. </address>
  3600. <emails>
  3601. <email>sve@cubs.com</email>
  3602. </emails>
  3603. </person>
  3604. </persons>
  3605.  
  3606. Products.xml:
  3607. <?xml version="1.0"?>
  3608. <products>
  3609. <equipment>
  3610. <productCode>f12</productCode>
  3611. <name>Noternet Things</name>
  3612. <pricePerUnit>12.59</pricePerUnit>
  3613. </equipment>
  3614. <equipment>
  3615. <productCode>139</productCode>
  3616. <name>Ocho Video Cubix</name>
  3617. <pricePerUnit>5000.0</pricePerUnit>
  3618. </equipment>
  3619. <consultation>
  3620. <productCode>72g</productCode>
  3621. <name>Server System Meltdown</name>
  3622. <pricePerHour>53.1</pricePerHour>
  3623. </consultation>
  3624. <license>
  3625. <productCode>329</productCode>
  3626. <name>Yoname Registration</name>
  3627. <fee>210.0</fee>
  3628. <annualCost>2000.0</annualCost>
  3629. </license>
  3630. <license>
  3631. <productCode>90f</productCode>
  3632. <name>Ocho Services</name>
  3633. <fee>200.0</fee>
  3634. <annualCost>2400.0</annualCost>
  3635. </license>
  3636. <equipment>
  3637. <productCode>ff1</productCode>
  3638. <name>Cuatro-Pone</name>
  3639. <pricePerUnit>12.2</pricePerUnit>
  3640. </equipment>
  3641. <equipment>
  3642. <productCode>b2e</productCode>
  3643. <name>Uno PID Suplier</name>
  3644. <pricePerUnit>500.0</pricePerUnit>
  3645. </equipment>
  3646. </products>
  3647.  
  3648. Customers.json:
  3649. {
  3650. "customers": [
  3651. {
  3652. "customerCode": "C006",
  3653. "name": "DR. Dre Inc.",
  3654. "address": {
  3655. "street": "2nd South Street",
  3656. "city": "Lincoln",
  3657. "state": "NE",
  3658. "zip": "67500",
  3659. "country": "USA"
  3660. }
  3661. },
  3662. {
  3663. "customerCode": "C015",
  3664. "name": "Van Industries",
  3665. "address": {
  3666. "street": "1060 North Madison",
  3667. "city": "Chicago",
  3668. "state": "IL",
  3669. "zip": "60602",
  3670. "country": "USA"
  3671. }
  3672. },
  3673. {
  3674. "customerCode": "C501",
  3675. "name": "University of Nebraska-Lincoln",
  3676. "address": {
  3677. "street": "Harper Hall",
  3678. "city": "Lincoln",
  3679. "state": "NE",
  3680. "zip": "68588",
  3681. "country": "USA"
  3682. }
  3683. },
  3684. {
  3685. "customerCode": "C009",
  3686. "name": "NSA",
  3687. "address": {
  3688. "street": "980 Savager Rd",
  3689. "city": "Kansas City",
  3690. "state": "MO",
  3691. "zip": "66111",
  3692. "country": "USA"
  3693. }
  3694. },
  3695. {
  3696. "customerCode": "C202",
  3697. "name": "James Stark Industries",
  3698. "address": {
  3699. "street": "Packer Drive",
  3700. "city": "Green Bay",
  3701. "state": "WI",
  3702. "zip": "54301",
  3703. "country": "USA"
  3704. }
  3705. },
  3706. {
  3707. "customerCode": "C002",
  3708. "name": "Ventura Industry",
  3709. "address": {
  3710. "street": "1234 Ventura Way",
  3711. "city": "San Francisco",
  3712. "state": "CA",
  3713. "zip": "90200",
  3714. "country": "USA"
  3715. }
  3716. }
  3717. ]}
  3718.  
  3719. Persons.json:
  3720. {
  3721. "persons": [
  3722. {
  3723. "personCode": "2estd",
  3724. "firstName": "Davey",
  3725. "lastName": "Ten",
  3726. "address": {
  3727. "street": "70022 N Dull Ave",
  3728. "city": "St. Louis",
  3729. "state": "MO",
  3730. "zip": "60111",
  3731. "country": "USA"
  3732. },
  3733. "emails": [
  3734. "tdavey@unl.edu",
  3735. "natc@shakespeare.com"
  3736. ]
  3737. },
  3738. {
  3739. "personCode": "af1",
  3740. "firstName": "Gordo",
  3741. "lastName": "Geo",
  3742. "address": {
  3743. "street": "2 Wall Street",
  3744. "city": "New York",
  3745. "state": "NY",
  3746. "zip": "10005-0012",
  3747. "country": "USA"
  3748. },
  3749. "emails": []
  3750. },
  3751. {
  3752. "personCode": "12t",
  3753. "firstName": "Pauly",
  3754. "lastName": "Gann",
  3755. "address": {
  3756. "street": "MetLife Stadium Drive",
  3757. "city": "East Rutherford",
  3758. "state": "NJ",
  3759. "zip": "07073",
  3760. "country": "USA"
  3761. },
  3762. "emails": [
  3763. "mc@unl.edu",
  3764. "fo@bar.com",
  3765. "pcgann@mlb.com"
  3766. ]
  3767. },
  3768. {
  3769. "personCode": "nf3",
  3770. "firstName": "Patty",
  3771. "lastName": "Trow",
  3772. "address": {
  3773. "street": "100 SW Maddison St",
  3774. "city": "Chicago",
  3775. "state": "IL",
  3776. "zip": "60613",
  3777. "country": "USA"
  3778. },
  3779. "emails": [
  3780. "ptou32@unl.edu",
  3781. "p@cse.unl.edu"
  3782. ]
  3783. },
  3784. {
  3785. "personCode": "6dc",
  3786. "firstName": "Dick",
  3787. "lastName": "Hurndel",
  3788. "address": {
  3789. "street": "South West",
  3790. "city": "Pheonix",
  3791. "state": "AR",
  3792. "zip": "00321",
  3793. "country": "USA"
  3794. },
  3795. "emails": [
  3796. "DICKY@unl.edu",
  3797. "Shmeh@cse.unl.edu"
  3798. ]
  3799. },
  3800. {
  3801. "personCode": "swdoc2",
  3802. "firstName": "Christopher",
  3803. "lastName": "Kilkeny",
  3804. "address": {
  3805. "street": "10 North 11th Rd",
  3806. "city": "Brooklyn",
  3807. "state": "NY",
  3808. "zip": "10451",
  3809. "country": "USA"
  3810. },
  3811. "emails": [
  3812. "oldguy@whovian.com"
  3813. ]
  3814. },
  3815. {
  3816. "personCode": "55b",
  3817. "firstName": "Mile",
  3818. "lastName": "Brien",
  3819. "address": {
  3820. "street": "8753 West 8th St",
  3821. "city": "Housten",
  3822. "state": "TX",
  3823. "zip": "75305",
  3824. "country": "USA"
  3825. },
  3826. "emails": [
  3827. "brien@enterprise.gov",
  3828. "brien@ds9.com"
  3829. ]
  3830. },
  3831. {
  3832. "personCode": "doyc05",
  3833. "firstName": "Petey",
  3834. "lastName": "Dave",
  3835. "address": {
  3836. "street": "12 Cabob Lucas",
  3837. "city": "Los Cabos",
  3838. "state": "BCS",
  3839. "zip": "",
  3840. "country": "Mexico"
  3841. },
  3842. "emails": []
  3843. },
  3844. {
  3845. "personCode": "1svndr",
  3846. "firstName": "Salle",
  3847. "lastName": "Coy",
  3848. "address": {
  3849. "street": "12th Roosevelt Ave",
  3850. "city": "Mushing",
  3851. "state": "MN",
  3852. "zip": "78294",
  3853. "country": "USA"
  3854. },
  3855. "emails": [
  3856. "coy@whofan.com",
  3857. "slycoy@hotmail.com"
  3858. ]
  3859. },
  3860. {
  3861. "personCode": "2",
  3862. "firstName": "Tommy",
  3863. "lastName": "Boy",
  3864. "address": {
  3865. "street": "2 Red Hawks Run",
  3866. "city": "Kearny",
  3867. "state": "MO",
  3868. "zip": "64099",
  3869. "country": "USA"
  3870. },
  3871. "emails": [
  3872. "famodoc@who.com",
  3873. "thedocr@bbc.com",
  3874. "er@cse.unl.edu",
  3875. "mostifamous@whovian.com"
  3876. ]
  3877. },
  3878. {
  3879. "personCode": "121eu",
  3880. "firstName": "Johny",
  3881. "lastName": "Pewee",
  3882. "address": {
  3883. "street": "3rd Front St",
  3884. "city": "FairBanks",
  3885. "state": "AK",
  3886. "zip": "74849",
  3887. "country": "USA"
  3888. },
  3889. "emails": [
  3890. "jetwee@whofan.com"
  3891. ]
  3892. },
  3893. {
  3894. "personCode": "31f",
  3895. "firstName": "Willi",
  3896. "lastName": "Hart",
  3897. "address": {
  3898. "street": "11 West Maddison Street",
  3899. "city": "Chicago",
  3900. "state": "IL",
  3901. "zip": "60613",
  3902. "country": "USA"
  3903. },
  3904. "emails": [
  3905. "drmoo@who.com",
  3906. "hart@doctors.com"
  3907. ]
  3908. },
  3909. {
  3910. "personCode": "42",
  3911. "firstName": "Miley",
  3912. "lastName": "OCyrus",
  3913. "address": {
  3914. "street": "123 Rude Street",
  3915. "city": "Oklahoma City",
  3916. "state": "OK",
  3917. "zip": "57011",
  3918. "country": "USA"
  3919. },
  3920. "emails": []
  3921. },
  3922. {
  3923. "personCode": "94c",
  3924. "firstName": "Star",
  3925. "lastName": "Cast",
  3926. "address": {
  3927. "street": "1060 South Maddison Ave",
  3928. "city": "Sayreville",
  3929. "state": "NY",
  3930. "zip": "122",
  3931. "country": "USA"
  3932. },
  3933. "emails": [
  3934. "starcasto13@gmail.com",
  3935. "scast@cubs.com"
  3936. ]
  3937. },
  3938. {
  3939. "personCode": "06a",
  3940. "firstName": "Brockel",
  3941. "lastName": "Sam",
  3942. "address": {
  3943. "street": "123 N",
  3944. "city": "Lincoln",
  3945. "state": "NE",
  3946. "zip": "68116",
  3947. "country": "USA"
  3948. },
  3949. "emails": [
  3950. "bsam@venture.com",
  3951. "brocysam@gmail.com"
  3952. ]
  3953. },
  3954. {
  3955. "personCode": "3f",
  3956. "firstName": "Budeeyyy",
  3957. "lastName": "Foxeyy",
  3958. "address": {
  3959. "street": "32 Bron Street",
  3960. "city": "New York City",
  3961. "state": "NY",
  3962. "zip": "10004",
  3963. "country": "USA"
  3964. },
  3965. "emails": [
  3966. "bfo@gmail.com",
  3967. "heen@crazy.net"
  3968. ]
  3969. },
  3970. {
  3971. "personCode": "bar",
  3972. "firstName": "Kayle",
  3973. "lastName": "Traut",
  3974. "address": {
  3975. "street": "3 North",
  3976. "city": "St. Louis",
  3977. "state": "MO",
  3978. "zip": "65935",
  3979. "country": "USA"
  3980. },
  3981. "emails": []
  3982. },
  3983. {
  3984. "personCode": "wroc",
  3985. "firstName": "Matty",
  3986. "lastName": "Smity",
  3987. "address": {
  3988. "street": "333 Weast 35th St",
  3989. "city": "Princeton",
  3990. "state": "NY",
  3991. "zip": "20496",
  3992. "country": "USA"
  3993. },
  3994. "emails": [
  3995. "thedocy@cse.unl.edu",
  3996. "msmithy@who.com"
  3997. ]
  3998. },
  3999. {
  4000. "personCode": "31d",
  4001. "firstName": "C.J.",
  4002. "lastName": "Baka",
  4003. "address": {
  4004. "street": "Nebraska Hall",
  4005. "city": "Lincoln",
  4006. "state": "NE",
  4007. "zip": "68503",
  4008. "country": "USA"
  4009. },
  4010. "emails": [
  4011. "r@baker.com"
  4012. ]
  4013. },
  4014. {
  4015. "personCode": "ma1",
  4016. "firstName": "Dalley",
  4017. "lastName": "Sve",
  4018. "address": {
  4019. "street": "1 West Maddison Dr",
  4020. "city": "Kansas City",
  4021. "state": "MO",
  4022. "zip": "66111",
  4023. "country": "USA"
  4024. },
  4025. "emails": [
  4026. "sve@cubs.com"
  4027. ]
  4028. }
  4029. ]}
  4030.  
  4031. Products.json:
  4032. {
  4033. "products": [
  4034. {
  4035. "pricePerUnit": 12.59,
  4036. "productCode": "f12",
  4037. "name": "Noternet Things"
  4038. },
  4039. {
  4040. "pricePerUnit": 5000.0,
  4041. "productCode": "139",
  4042. "name": "Ocho Video Cubix"
  4043. },
  4044. {
  4045. "pricePerHour": 53.1,
  4046. "productCode": "72g",
  4047. "name": "Server System Meltdown"
  4048. },
  4049. {
  4050. "fee": 210.0,
  4051. "annualCost": 2000.0,
  4052. "productCode": "329",
  4053. "name": "Yoname Registration"
  4054. },
  4055. {
  4056. "fee": 200.0,
  4057. "annualCost": 2400.0,
  4058. "productCode": "90f",
  4059. "name": "Ocho Services"
  4060. },
  4061. {
  4062. "pricePerUnit": 12.2,
  4063. "productCode": "ff1",
  4064. "name": "Cuatro-Pone"
  4065. },
  4066. {
  4067. "pricePerUnit": 500.0,
  4068. "productCode": "b2e",
  4069. "name": "Uno PID Suplier"
  4070. }
  4071. ]}
  4072.  
  4073. Program Output
  4074.  
  4075. Customer [customerCode=C501, type=G, companyName=University of Nebraska-Lincoln, address=Address [street=Harper Hall, city=Lincoln, state=NE, zip=68588, country=USA]]
  4076. Customer [customerCode=C202, type=C, companyName=James Stark Industries, address=Address [street=Packer Drive, city=Green Bay, state=WI, zip=54301, country=USA]]
  4077. Customer [customerCode=C002, type=C, companyName=Ventura Industry, address=Address [street=1234 Ventura Way, city=San Francisco, state=CA, zip=90200, country=USA]]
  4078. Customer [customerCode=C009, type=G, companyName=NSA, address=Address [street=980 Savager Rd, city=Kansas City, state=MO, zip=66111, country=USA]]
  4079. Customer [customerCode=C015, type=C, companyName=Van Industries, address=Address [street=1060 North Madison, city=Chicago, state=IL, zip=60602, country=USA]]
  4080. Customer [customerCode=C006, type=C, companyName=DR. Dre Inc., address=Address [street=2nd South Street, city=Lincoln, state=NE, zip=67500, country=USA]]
  4081. Product [code=b2e, type=E, name=Uno PID Suplier] Equipment [pricePerUnit=500.0]
  4082. Product [code=ff1, type=E, name=Cuatro-Pone] Equipment [pricePerUnit=12.2]
  4083. Product [code=f12, type=E, name=Noternet Things] Equipment [pricePerUnit=12.59]
  4084. Product [code=139, type=E, name=Ocho Video Cubix] Equipment [pricePerUnit=5000.0]
  4085. Product [code=90f, type=L, name=Ocho Services] License [serviceFee=200.0, annualLicenseFee=2400.0]
  4086. Product [code=329, type=C, name=Cuatro-Pone Training] Consultation [consultant=Person [personCode=af1, firstName=Gordo, lastName=Geo, address=Address [street=2 Wall Street, city=New York, state=NY, zip=10005-0012, country=USA], ], hourlyFee=20.0]
  4087. Product [code=72g, type=C, name=Server System Meltdown] Consultation [consultant=Person [personCode=31f, firstName=Willi, lastName=Hart, address=Address [street=11 West Maddison Street, city=Chicago, state=IL, zip=60613, country=USA], emails=[hart@doctors.com, drmoo@who.com]], hourlyFee=53.1]
  4088. Product [code=329, type=L, name=Your SQL Host] License [serviceFee=2.0, annualLicenseFee=55000.0]
  4089. Product [code=329, type=L, name=Yoname Registration] License [serviceFee=210.0, annualLicenseFee=2000.0]
  4090. ::::::::::::::
  4091. ./data/Customers.xml
  4092. ::::::::::::::
  4093. <customers>
  4094. <governmentCustomer>
  4095. <customerCode>C501</customerCode>
  4096. <companyName>University of Nebraska-Lincoln</companyName>
  4097. <address>
  4098. <street>Harper Hall</street>
  4099. <city>Lincoln</city>
  4100. <state>NE</state>
  4101. <zip>68588</zip>
  4102. <country>USA</country>
  4103. </address>
  4104. </governmentCustomer>
  4105. <companyCustomer>
  4106. <customerCode>C202</customerCode>
  4107. <companyName>James Stark Industries</companyName>
  4108. <address>
  4109. <street>Packer Drive</street>
  4110. <city>Green Bay</city>
  4111. <state>WI</state>
  4112. <zip>54301</zip>
  4113. <country>USA</country>
  4114. </address>
  4115. </companyCustomer>
  4116. <companyCustomer>
  4117. <customerCode>C002</customerCode>
  4118. <companyName>Ventura Industry</companyName>
  4119. <address>
  4120. <street>1234 Ventura Way</street>
  4121. <city>San Francisco</city>
  4122. <state>CA</state>
  4123. <zip>90200</zip>
  4124. <country>USA</country>
  4125. </address>
  4126. </companyCustomer>
  4127. <governmentCustomer>
  4128. <customerCode>C009</customerCode>
  4129. <companyName>NSA</companyName>
  4130. <address>
  4131. <street>980 Savager Rd</street>
  4132. <city>Kansas City</city>
  4133. <state>MO</state>
  4134. <zip>66111</zip>
  4135. <country>USA</country>
  4136. </address>
  4137. </governmentCustomer>
  4138. <companyCustomer>
  4139. <customerCode>C015</customerCode>
  4140. <companyName>Van Industries</companyName>
  4141. <address>
  4142. <street>1060 North Madison</street>
  4143. <city>Chicago</city>
  4144. <state>IL</state>
  4145. <zip>60602</zip>
  4146. <country>USA</country>
  4147. </address>
  4148. </companyCustomer>
  4149. <companyCustomer>
  4150. <customerCode>C006</customerCode>
  4151. <companyName>DR. Dre Inc.</companyName>
  4152. <address>
  4153. <street>2nd South Street</street>
  4154. <city>Lincoln</city>
  4155. <state>NE</state>
  4156. <zip>67500</zip>
  4157. <country>USA</country>
  4158. </address>
  4159. </companyCustomer>
  4160. </customers>::::::::::::::
  4161. ./data/Persons.xml
  4162. ::::::::::::::
  4163. <persons>
  4164. <person>
  4165. <personCode>94c</personCode>
  4166. <firstName>Star</firstName>
  4167. <lastName>Cast</lastName>
  4168. <address>
  4169. <street>1060 South Maddison Ave</street>
  4170. <city>Sayreville</city>
  4171. <state>NY</state>
  4172. <zip>122</zip>
  4173. <country>USA</country>
  4174. </address>
  4175. <emails>
  4176. <email>scast@cubs.com</email>
  4177. <email>starcasto13@gmail.com</email>
  4178. </emails>
  4179. </person>
  4180. <person>
  4181. <personCode>06a</personCode>
  4182. <firstName>Brockel</firstName>
  4183. <lastName>Sam</lastName>
  4184. <address>
  4185. <street>123 N</street>
  4186. <city>Lincoln</city>
  4187. <state>NE</state>
  4188. <zip>68116</zip>
  4189. <country>USA</country>
  4190. </address>
  4191. <emails>
  4192. <email>brocysam@gmail.com</email>
  4193. <email>bsam@venture.com</email>
  4194. </emails>
  4195. </person>
  4196. <person>
  4197. <personCode>55b</personCode>
  4198. <firstName>Mile</firstName>
  4199. <lastName>Brien</lastName>
  4200. <address>
  4201. <street>8753 West 8th St</street>
  4202. <city>Housten</city>
  4203. <state>TX</state>
  4204. <zip>75305</zip>
  4205. <country>USA</country>
  4206. </address>
  4207. <emails>
  4208. <email>brien@ds9.com</email>
  4209. <email>brien@enterprise.gov</email>
  4210. </emails>
  4211. </person>
  4212. <person>
  4213. <personCode>42</personCode>
  4214. <firstName>Miley</firstName>
  4215. <lastName>OCyrus</lastName>
  4216. <address>
  4217. <street>123 Rude Street</street>
  4218. <city>Oklahoma City</city>
  4219. <state>OK</state>
  4220. <zip>57011</zip>
  4221. <country>USA</country>
  4222. </address>
  4223. </person>
  4224. <person>
  4225. <personCode>af1</personCode>
  4226. <firstName>Gordo</firstName>
  4227. <lastName>Geo</lastName>
  4228. <address>
  4229. <street>2 Wall Street</street>
  4230. <city>New York</city>
  4231. <state>NY</state>
  4232. <zip>10005-0012</zip>
  4233. <country>USA</country>
  4234. </address>
  4235. </person>
  4236. <person>
  4237. <personCode>3f</personCode>
  4238. <firstName>Budeeyyy</firstName>
  4239. <lastName>Foxeyy</lastName>
  4240. <address>
  4241. <street>32 Bron Street</street>
  4242. <city>New York City</city>
  4243. <state>NY</state>
  4244. <zip>10004</zip>
  4245. <country>USA</country>
  4246. </address>
  4247. <emails>
  4248. <email>bfo@gmail.com</email>
  4249. <email>heen@crazy.net</email>
  4250. </emails>
  4251. </person>
  4252. <person>
  4253. <personCode>ma1</personCode>
  4254. <firstName>Dalley</firstName>
  4255. <lastName>Sve</lastName>
  4256. <address>
  4257. <street>1 West Maddison Dr</street>
  4258. <city>Kansas City</city>
  4259. <state>MO</state>
  4260. <zip>66111</zip>
  4261. <country>USA</country>
  4262. </address>
  4263. <emails>
  4264. <email>sve@cubs.com</email>
  4265. </emails>
  4266. </person>
  4267. <person>
  4268. <personCode>31f</personCode>
  4269. <firstName>Willi</firstName>
  4270. <lastName>Hart</lastName>
  4271. <address>
  4272. <street>11 West Maddison Street</street>
  4273. <city>Chicago</city>
  4274. <state>IL</state>
  4275. <zip>60613</zip>
  4276. <country>USA</country>
  4277. </address>
  4278. <emails>
  4279. <email>hart@doctors.com</email>
  4280. <email>drmoo@who.com</email>
  4281. </emails>
  4282. </person>
  4283. <person>
  4284. <personCode>nf3</personCode>
  4285. <firstName>Patty</firstName>
  4286. <lastName>Trow</lastName>
  4287. <address>
  4288. <street>100 SW Maddison St</street>
  4289. <city>Chicago</city>
  4290. <state>IL</state>
  4291. <zip>60613</zip>
  4292. <country>USA</country>
  4293. </address>
  4294. <emails>
  4295. <email>p@cse.unl.edu</email>
  4296. <email>ptou32@unl.edu</email>
  4297. </emails>
  4298. </person>
  4299. <person>
  4300. <personCode>121eu</personCode>
  4301. <firstName>Johny</firstName>
  4302. <lastName>Pewee</lastName>
  4303. <address>
  4304. <street>3rd Front St</street>
  4305. <city>FairBanks</city>
  4306. <state>AK</state>
  4307. <zip>74849</zip>
  4308. <country>USA</country>
  4309. </address>
  4310. <emails>
  4311. <email>jetwee@whofan.com</email>
  4312. </emails>
  4313. </person>
  4314. <person>
  4315. <personCode>2</personCode>
  4316. <firstName>Tommy</firstName>
  4317. <lastName>Boy</lastName>
  4318. <address>
  4319. <street>2 Red Hawks Run</street>
  4320. <city>Kearny</city>
  4321. <state>MO</state>
  4322. <zip>64099</zip>
  4323. <country>USA</country>
  4324. </address>
  4325. <emails>
  4326. <email>famodoc@who.com</email>
  4327. <email>er@cse.unl.edu</email>
  4328. <email>mostifamous@whovian.com</email>
  4329. <email>thedocr@bbc.com</email>
  4330. </emails>
  4331. </person>
  4332. <person>
  4333. <personCode>6dc</personCode>
  4334. <firstName>Dick</firstName>
  4335. <lastName>Hurndel</lastName>
  4336. <address>
  4337. <street>South West</street>
  4338. <city>Pheonix</city>
  4339. <state>AR</state>
  4340. <zip>00321</zip>
  4341. <country>USA</country>
  4342. </address>
  4343. <emails>
  4344. <email>Shmeh@cse.unl.edu</email>
  4345. <email>DICKY@unl.edu</email>
  4346. </emails>
  4347. </person>
  4348. <person>
  4349. <personCode>31d</personCode>
  4350. <firstName>C.J.</firstName>
  4351. <lastName>Baka</lastName>
  4352. <address>
  4353. <street>Nebraska Hall</street>
  4354. <city>Lincoln</city>
  4355. <state>NE</state>
  4356. <zip>68503</zip>
  4357. <country>USA</country>
  4358. </address>
  4359. <emails>
  4360. <email>r@baker.com</email>
  4361. </emails>
  4362. </person>
  4363. <person>
  4364. <personCode>1svndr</personCode>
  4365. <firstName>Salle</firstName>
  4366. <lastName>Coy</lastName>
  4367. <address>
  4368. <street>12th Roosevelt Ave</street>
  4369. <city>Mushing</city>
  4370. <state>MN</state>
  4371. <zip>78294</zip>
  4372. <country>USA</country>
  4373. </address>
  4374. <emails>
  4375. <email>slycoy@hotmail.com</email>
  4376. <email>coy@whofan.com</email>
  4377. </emails>
  4378. </person>
  4379. <person>
  4380. <personCode>12t</personCode>
  4381. <firstName>Pauly</firstName>
  4382. <lastName>Gann</lastName>
  4383. <address>
  4384. <street>MetLife Stadium Drive</street>
  4385. <city>East Rutherford</city>
  4386. <state>NJ</state>
  4387. <zip>07073</zip>
  4388. <country>USA</country>
  4389. </address>
  4390. <emails>
  4391. <email>pcgann@mlb.com</email>
  4392. <email>fo@bar.com</email>
  4393. <email>mc@unl.edu</email>
  4394. </emails>
  4395. </person>
  4396. <person>
  4397. <personCode>swdoc2</personCode>
  4398. <firstName>Christopher</firstName>
  4399. <lastName>Kilkeny</lastName>
  4400. <address>
  4401. <street>10 North 11th Rd</street>
  4402. <city>Brooklyn</city>
  4403. <state>NY</state>
  4404. <zip>10451</zip>
  4405. <country>USA</country>
  4406. </address>
  4407. <emails>
  4408. <email>oldguy@whovian.com</email>
  4409. </emails>
  4410. </person>
  4411. <person>
  4412. <personCode>2estd</personCode>
  4413. <firstName>Davey</firstName>
  4414. <lastName>Ten</lastName>
  4415. <address>
  4416. <street>70022 N Dull Ave</street>
  4417. <city>St. Louis</city>
  4418. <state>MO</state>
  4419. <zip>60111</zip>
  4420. <country>USA</country>
  4421. </address>
  4422. <emails>
  4423. <email>natc@shakespeare.com</email>
  4424. <email>tdavey@unl.edu</email>
  4425. </emails>
  4426. </person>
  4427. <person>
  4428. <personCode>wroc</personCode>
  4429. <firstName>Matty</firstName>
  4430. <lastName>Smity</lastName>
  4431. <address>
  4432. <street>333 Weast 35th St</street>
  4433. <city>Princeton</city>
  4434. <state>NY</state>
  4435. <zip>20496</zip>
  4436. <country>USA</country>
  4437. </address>
  4438. <emails>
  4439. <email>msmithy@who.com</email>
  4440. <email>thedocy@cse.unl.edu</email>
  4441. </emails>
  4442. </person>
  4443. <person>
  4444. <personCode>bar</personCode>
  4445. <firstName>Kayle</firstName>
  4446. <lastName>Traut</lastName>
  4447. <address>
  4448. <street>3 North</street>
  4449. <city>St. Louis</city>
  4450. <state>MO</state>
  4451. <zip>65935</zip>
  4452. <country>USA</country>
  4453. </address>
  4454. </person>
  4455. <person>
  4456. <personCode>doyc05</personCode>
  4457. <firstName>Petey</firstName>
  4458. <lastName>Dave</lastName>
  4459. <address>
  4460. <street>12 Cabob Lucas</street>
  4461. <city>Los Cabos</city>
  4462. <state>BCS</state>
  4463. <country>Mexico</country>
  4464. </address>
  4465. </person>
  4466. </persons>::::::::::::::
  4467. ./data/Products.xml
  4468. ::::::::::::::
  4469. <products>
  4470. <equipment>
  4471. <productCode>b2e</productCode>
  4472. <name>Uno PID Suplier</name>
  4473. <pricePerUnit>500.0</pricePerUnit>
  4474. </equipment>
  4475. <equipment>
  4476. <productCode>ff1</productCode>
  4477. <name>Cuatro-Pone</name>
  4478. <pricePerUnit>12.2</pricePerUnit>
  4479. </equipment>
  4480. <equipment>
  4481. <productCode>f12</productCode>
  4482. <name>Noternet Things</name>
  4483. <pricePerUnit>12.59</pricePerUnit>
  4484. </equipment>
  4485. <equipment>
  4486. <productCode>139</productCode>
  4487. <name>Ocho Video Cubix</name>
  4488. <pricePerUnit>5000.0</pricePerUnit>
  4489. </equipment>
  4490. <license>
  4491. <productCode>90f</productCode>
  4492. <name>Ocho Services</name>
  4493. <fee>200.0</fee>
  4494. <annualCost>2400.0</annualCost>
  4495. </license>
  4496. <consultation>
  4497. <productCode>329</productCode>
  4498. <name>Cuatro-Pone Training</name>
  4499. <consultant>
  4500. <personCode>af1</personCode>
  4501. <firstName>Gordo</firstName>
  4502. <lastName>Geo</lastName>
  4503. <address>
  4504. <street>2 Wall Street</street>
  4505. <city>New York</city>
  4506. <state>NY</state>
  4507. <zip>10005-0012</zip>
  4508. <country>USA</country>
  4509. </address>
  4510. </consultant>
  4511. <pricePerHour>20.0</pricePerHour>
  4512. </consultation>
  4513. <consultation>
  4514. <productCode>72g</productCode>
  4515. <name>Server System Meltdown</name>
  4516. <consultant>
  4517. <personCode>31f</personCode>
  4518. <firstName>Willi</firstName>
  4519. <lastName>Hart</lastName>
  4520. <address>
  4521. <street>11 West Maddison Street</street>
  4522. <city>Chicago</city>
  4523. <state>IL</state>
  4524. <zip>60613</zip>
  4525. <country>USA</country>
  4526. </address>
  4527. <emails>
  4528. <string>hart@doctors.com</string>
  4529. <string>drmoo@who.com</string>
  4530. </emails>
  4531. </consultant>
  4532. <pricePerHour>53.1</pricePerHour>
  4533. </consultation>
  4534. <license>
  4535. <productCode>329</productCode>
  4536. <name>Your SQL Host</name>
  4537. <fee>2.0</fee>
  4538. <annualCost>55000.0</annualCost>
  4539. </license>
  4540. <license>
  4541. <productCode>329</productCode>
  4542. <name>Yoname Registration</name>
  4543. <fee>210.0</fee>
  4544. <annualCost>2000.0</annualCost>
  4545. </license>
  4546. </products>
  4547. ::::::::::::::
  4548. ./data/Customers.json
  4549. ::::::::::::::
  4550. <customers>
  4551. <governmentCustomer>
  4552. <customerCode>C501</customerCode>
  4553. <companyName>University of Nebraska-Lincoln</companyName>
  4554. <address>
  4555. <street>Harper Hall</street>
  4556. <city>Lincoln</city>
  4557. <state>NE</state>
  4558. <zip>68588</zip>
  4559. <country>USA</country>
  4560. </address>
  4561. </governmentCustomer>
  4562. <companyCustomer>
  4563. <customerCode>C202</customerCode>
  4564. <companyName>James Stark Industries</companyName>
  4565. <address>
  4566. <street>Packer Drive</street>
  4567. <city>Green Bay</city>
  4568. <state>WI</state>
  4569. <zip>54301</zip>
  4570. <country>USA</country>
  4571. </address>
  4572. </companyCustomer>
  4573. <companyCustomer>
  4574. <customerCode>C002</customerCode>
  4575. <companyName>Ventura Industry</companyName>
  4576. <address>
  4577. <street>1234 Ventura Way</street>
  4578. <city>San Francisco</city>
  4579. <state>CA</state>
  4580. <zip>90200</zip>
  4581. <country>USA</country>
  4582. </address>
  4583. </companyCustomer>
  4584. <governmentCustomer>
  4585. <customerCode>C009</customerCode>
  4586. <companyName>NSA</companyName>
  4587. <address>
  4588. <street>980 Savager Rd</street>
  4589. <city>Kansas City</city>
  4590. <state>MO</state>
  4591. <zip>66111</zip>
  4592. <country>USA</country>
  4593. </address>
  4594. </governmentCustomer>
  4595. <companyCustomer>
  4596. <customerCode>C015</customerCode>
  4597. <companyName>Van Industries</companyName>
  4598. <address>
  4599. <street>1060 North Madison</street>
  4600. <city>Chicago</city>
  4601. <state>IL</state>
  4602. <zip>60602</zip>
  4603. <country>USA</country>
  4604. </address>
  4605. </companyCustomer>
  4606. <companyCustomer>
  4607. <customerCode>C006</customerCode>
  4608. <companyName>DR. Dre Inc.</companyName>
  4609. <address>
  4610. <street>2nd South Street</street>
  4611. <city>Lincoln</city>
  4612. <state>NE</state>
  4613. <zip>67500</zip>
  4614. <country>USA</country>
  4615. </address>
  4616. </companyCustomer>
  4617. </customers>::::::::::::::
  4618. ./data/Persons.json
  4619. ::::::::::::::
  4620. {
  4621. "persons": {
  4622. "person": [
  4623. {
  4624. "personCode": "94c",
  4625. "firstName": "Star",
  4626. "lastName": "Cast",
  4627. "address": {
  4628. "street": "1060 South Maddison Ave",
  4629. "city": "Sayreville",
  4630. "state": "NY",
  4631. "zip": "122",
  4632. "country": "USA"
  4633. },
  4634. "emails": [
  4635. "scast@cubs.com",
  4636. "starcasto13@gmail.com"
  4637. ]
  4638. },
  4639. {
  4640. "personCode": "06a",
  4641. "firstName": "Brockel",
  4642. "lastName": "Sam",
  4643. "address": {
  4644. "street": "123 N",
  4645. "city": "Lincoln",
  4646. "state": "NE",
  4647. "zip": "68116",
  4648. "country": "USA"
  4649. },
  4650. "emails": [
  4651. "brocysam@gmail.com",
  4652. "bsam@venture.com"
  4653. ]
  4654. },
  4655. {
  4656. "personCode": "55b",
  4657. "firstName": "Mile",
  4658. "lastName": "Brien",
  4659. "address": {
  4660. "street": "8753 West 8th St",
  4661. "city": "Housten",
  4662. "state": "TX",
  4663. "zip": "75305",
  4664. "country": "USA"
  4665. },
  4666. "emails": [
  4667. "brien@ds9.com",
  4668. "brien@enterprise.gov"
  4669. ]
  4670. },
  4671. {
  4672. "personCode": "42",
  4673. "firstName": "Miley",
  4674. "lastName": "OCyrus",
  4675. "address": {
  4676. "street": "123 Rude Street",
  4677. "city": "Oklahoma City",
  4678. "state": "OK",
  4679. "zip": "57011",
  4680. "country": "USA"
  4681. }
  4682. },
  4683. {
  4684. "personCode": "af1",
  4685. "firstName": "Gordo",
  4686. "lastName": "Geo",
  4687. "address": {
  4688. "street": "2 Wall Street",
  4689. "city": "New York",
  4690. "state": "NY",
  4691. "zip": "10005-0012",
  4692. "country": "USA"
  4693. }
  4694. },
  4695. {
  4696. "personCode": "3f",
  4697. "firstName": "Budeeyyy",
  4698. "lastName": "Foxeyy",
  4699. "address": {
  4700. "street": "32 Bron Street",
  4701. "city": "New York City",
  4702. "state": "NY",
  4703. "zip": "10004",
  4704. "country": "USA"
  4705. },
  4706. "emails": [
  4707. "bfo@gmail.com",
  4708. "heen@crazy.net"
  4709. ]
  4710. },
  4711. {
  4712. "personCode": "ma1",
  4713. "firstName": "Dalley",
  4714. "lastName": "Sve",
  4715. "address": {
  4716. "street": "1 West Maddison Dr",
  4717. "city": "Kansas City",
  4718. "state": "MO",
  4719. "zip": "66111",
  4720. "country": "USA"
  4721. },
  4722. "emails": [
  4723. "sve@cubs.com"
  4724. ]
  4725. },
  4726. {
  4727. "personCode": "31f",
  4728. "firstName": "Willi",
  4729. "lastName": "Hart",
  4730. "address": {
  4731. "street": "11 West Maddison Street",
  4732. "city": "Chicago",
  4733. "state": "IL",
  4734. "zip": "60613",
  4735. "country": "USA"
  4736. },
  4737. "emails": [
  4738. "hart@doctors.com",
  4739. "drmoo@who.com"
  4740. ]
  4741. },
  4742. {
  4743. "personCode": "nf3",
  4744. "firstName": "Patty",
  4745. "lastName": "Trow",
  4746. "address": {
  4747. "street": "100 SW Maddison St",
  4748. "city": "Chicago",
  4749. "state": "IL",
  4750. "zip": "60613",
  4751. "country": "USA"
  4752. },
  4753. "emails": [
  4754. "p@cse.unl.edu",
  4755. "ptou32@unl.edu"
  4756. ]
  4757. },
  4758. {
  4759. "personCode": "121eu",
  4760. "firstName": "Johny",
  4761. "lastName": "Pewee",
  4762. "address": {
  4763. "street": "3rd Front St",
  4764. "city": "FairBanks",
  4765. "state": "AK",
  4766. "zip": "74849",
  4767. "country": "USA"
  4768. },
  4769. "emails": [
  4770. "jetwee@whofan.com"
  4771. ]
  4772. },
  4773. {
  4774. "personCode": "2",
  4775. "firstName": "Tommy",
  4776. "lastName": "Boy",
  4777. "address": {
  4778. "street": "2 Red Hawks Run",
  4779. "city": "Kearny",
  4780. "state": "MO",
  4781. "zip": "64099",
  4782. "country": "USA"
  4783. },
  4784. "emails": [
  4785. "famodoc@who.com",
  4786. "er@cse.unl.edu",
  4787. "mostifamous@whovian.com",
  4788. "thedocr@bbc.com"
  4789. ]
  4790. },
  4791. {
  4792. "personCode": "6dc",
  4793. "firstName": "Dick",
  4794. "lastName": "Hurndel",
  4795. "address": {
  4796. "street": "South West",
  4797. "city": "Pheonix",
  4798. "state": "AR",
  4799. "zip": "00321",
  4800. "country": "USA"
  4801. },
  4802. "emails": [
  4803. "Shmeh@cse.unl.edu",
  4804. "DICKY@unl.edu"
  4805. ]
  4806. },
  4807. {
  4808. "personCode": "31d",
  4809. "firstName": "C.J.",
  4810. "lastName": "Baka",
  4811. "address": {
  4812. "street": "Nebraska Hall",
  4813. "city": "Lincoln",
  4814. "state": "NE",
  4815. "zip": "68503",
  4816. "country": "USA"
  4817. },
  4818. "emails": [
  4819. "r@baker.com"
  4820. ]
  4821. },
  4822. {
  4823. "personCode": "1svndr",
  4824. "firstName": "Salle",
  4825. "lastName": "Coy",
  4826. "address": {
  4827. "street": "12th Roosevelt Ave",
  4828. "city": "Mushing",
  4829. "state": "MN",
  4830. "zip": "78294",
  4831. "country": "USA"
  4832. },
  4833. "emails": [
  4834. "slycoy@hotmail.com",
  4835. "coy@whofan.com"
  4836. ]
  4837. },
  4838. {
  4839. "personCode": "12t",
  4840. "firstName": "Pauly",
  4841. "lastName": "Gann",
  4842. "address": {
  4843. "street": "MetLife Stadium Drive",
  4844. "city": "East Rutherford",
  4845. "state": "NJ",
  4846. "zip": "07073",
  4847. "country": "USA"
  4848. },
  4849. "emails": [
  4850. "pcgann@mlb.com",
  4851. "fo@bar.com",
  4852. "mc@unl.edu"
  4853. ]
  4854. },
  4855. {
  4856. "personCode": "swdoc2",
  4857. "firstName": "Christopher",
  4858. "lastName": "Kilkeny",
  4859. "address": {
  4860. "street": "10 North 11th Rd",
  4861. "city": "Brooklyn",
  4862. "state": "NY",
  4863. "zip": "10451",
  4864. "country": "USA"
  4865. },
  4866. "emails": [
  4867. "oldguy@whovian.com"
  4868. ]
  4869. },
  4870. {
  4871. "personCode": "2estd",
  4872. "firstName": "Davey",
  4873. "lastName": "Ten",
  4874. "address": {
  4875. "street": "70022 N Dull Ave",
  4876. "city": "St. Louis",
  4877. "state": "MO",
  4878. "zip": "60111",
  4879. "country": "USA"
  4880. },
  4881. "emails": [
  4882. "natc@shakespeare.com",
  4883. "tdavey@unl.edu"
  4884. ]
  4885. },
  4886. {
  4887. "personCode": "wroc",
  4888. "firstName": "Matty",
  4889. "lastName": "Smity",
  4890. "address": {
  4891. "street": "333 Weast 35th St",
  4892. "city": "Princeton",
  4893. "state": "NY",
  4894. "zip": "20496",
  4895. "country": "USA"
  4896. },
  4897. "emails": [
  4898. "msmithy@who.com",
  4899. "thedocy@cse.unl.edu"
  4900. ]
  4901. },
  4902. {
  4903. "personCode": "bar",
  4904. "firstName": "Kayle",
  4905. "lastName": "Traut",
  4906. "address": {
  4907. "street": "3 North",
  4908. "city": "St. Louis",
  4909. "state": "MO",
  4910. "zip": "65935",
  4911. "country": "USA"
  4912. }
  4913. },
  4914. {
  4915. "personCode": "doyc05",
  4916. "firstName": "Petey",
  4917. "lastName": "Dave",
  4918. "address": {
  4919. "street": "12 Cabob Lucas",
  4920. "city": "Los Cabos",
  4921. "state": "BCS",
  4922. "country": "Mexico"
  4923. }
  4924. }
  4925. ]
  4926. }
  4927. }
  4928. ::::::::::::::
  4929. ./data/Products.json
  4930. ::::::::::::::
  4931. {
  4932. "products": [ {
  4933. "code": "b2e",
  4934. "name": "Uno PID Suplier",
  4935. "pricePerUnit": 500.0
  4936. },
  4937. {
  4938. "code": "ff1",
  4939. "name": "Cuatro-Pone",
  4940. "pricePerUnit": 12.2
  4941. },
  4942. {
  4943. "code": "f12",
  4944. "name": "Noternet Things",
  4945. "pricePerUnit": 12.59
  4946. },
  4947. {
  4948. "code": "139",
  4949. "name": "Ocho Video Cubix",
  4950. "pricePerUnit": 5000.0
  4951. },
  4952. {
  4953. "code": "90f",
  4954. "name": "Ocho Services",
  4955. "serviceFee": 200.0,
  4956. "annualLicenseFee": 2400.0
  4957. },
  4958. {
  4959. "code": "329",
  4960. "name": "Cuatro-Pone Training",
  4961. "consultant": {
  4962. "personCode": "af1",
  4963. "firstName": "Gordo",
  4964. "lastName": "Geo",
  4965. "address": {
  4966. "street": "2 Wall Street",
  4967. "city": "New York",
  4968. "state": "NY",
  4969. "zip": "10005-0012",
  4970. "country": "USA"
  4971. }
  4972. },
  4973. "hourlyFee": 20.0
  4974. },
  4975. {
  4976. "code": "72g",
  4977. "name": "Server System Meltdown",
  4978. "consultant": {
  4979. "personCode": "31f",
  4980. "firstName": "Willi",
  4981. "lastName": "Hart",
  4982. "address": {
  4983. "street": "11 West Maddison Street",
  4984. "city": "Chicago",
  4985. "state": "IL",
  4986. "zip": "60613",
  4987. "country": "USA"
  4988. },
  4989. "emails": [
  4990. "hart@doctors.com",
  4991. "drmoo@who.com"
  4992. ]
  4993. },
  4994. "hourlyFee": 53.1
  4995. },
  4996. {
  4997. "code": "329",
  4998. "name": "Your SQL Host",
  4999. "serviceFee": 2.0,
  5000. "annualLicenseFee": 55000.0
  5001. },
  5002. {
  5003. "code": "329",
  5004. "name": "Yoname Registration",
  5005. "serviceFee": 210.0,
  5006. "annualLicenseFee": 2000.0
  5007. }
  5008. ]}
  5009.  
  5010. [-] Test Case 2 (case11)
  5011. Expected Output
  5012.  
  5013. Data and output files:
  5014.  
  5015.  
  5016. Customers.dat:
  5017. 7
  5018. AB15;C;bfab;Madalay Industries;1060 West Addison,Springfield,IL,60601,USA
  5019. AB11;G;144a;University of Nebraska-Lincoln;420 University Terrace,Lincoln,NE,68588,USA
  5020. AB13;C;149ba;Dunder Mifflin Paper Company;123 Venture Way,Stranton,PA,10456,USA
  5021. AB16;C; ms42;Rockfort Inc.;456 West 7th St.,Rockfort,CA,98500,USA
  5022. AB12;C;499c;Stark Industries;184 Marvel Way,New York,NY,10453,USA
  5023. AB17;G;267a;Department of Motor Vehicles;625 N 46th St.,Lincoln,NE,68503,USA
  5024. AB14;G;344d;National Security Administration;9800 Savage Rd,Fort Meade,MD,20755,USA
  5025.  
  5026. Persons.dat:
  5027. 15
  5028. 144a;Reidesel,Charles;459 N 34th St, Lincoln, NE,68302, USA;creidesel@who.com,chuckreidesel@cse.unl.edu,chuckr@bbc.com
  5029. 55bb;Davis, Miles;8753 West 3rd Ave.,Dallas,TX,75001,USA;davis12@ds9.com,mdav@rockfort.gov
  5030. 321nd;Enders, William;1165 West Madison Street,Chicago,IL,60613,USA;wenders@doctors.com,dr@who.com
  5031. 149ba;Williams, Darren;142 N 14th Street,Omaha,NE,68116,USA;darren_f_williams@gmail.com,dwillaims@venture.com
  5032. ma12;Rediger, Tyler;435 N 51st Street,Lincoln,NE,68502,USA;tred@pubs.com
  5033. 499c;Sonford, Harry;1467 Addison Street,Stillwater,OK,60613,USA;harrysonford@cubs.com,sonford_harry13@gmail.com
  5034. bfab;Hanten, Mathias;320 West 6th Street, South Sioux city, NE, 68776,USA;mhanten@gmail.com
  5035. aef1;Monterroso, Richard;1 Wall Street,Indio,CA,9221-0012,USA;rmont12@yahoo.com
  5036. 267a;Enders, Ryan;1162 West Madison Street,Chicago,IL,60613,USA;render@cse.unl.edu,renders32@unl.edu
  5037. 321na;Lenz, Matthew;301 Front St W, Toronto, ON, M5V 2T6, Canada;jpet@whofan.com
  5038. 344d;Connor, Bryan;344 Lincoln Street,New York,NY,10023,USA;bconnor@gmail.com,cbryan@aol.com
  5039. 1svndr;McCoy,Travis;126-01 Roosevelt Ave, Flushing, NY,11368,USA;slyguy@hotmail.com,mccoy@aol.com
  5040. adhoc;Hammond, Richard;1 E 161st St, Bronx, NY,10451,USA;rhammond@aol.com
  5041. ms42;Smydra, Kordel;Avery Hall,Lincoln,NE,68503,USA;kordel_smydra@baker.com
  5042. asn2;Smith, Matt;333 W 35th St, Chicago, IL,60616,USA;msmith@who.com,thedoc@cse.unl.edu
  5043.  
  5044.  
  5045.  
  5046. Products.dat:
  5047. 8
  5048. s42a;E;Jericho Missile;250000.0
  5049. ab23;E;Rockfort Jdisc;124.99
  5050. fp12;E;Mandalay Jtone;14.99
  5051. 1239;E;Rockfort GameBox;499.00
  5052. 90fa;L;Mandalay Long Distance Service;1899.00;17000.00
  5053. 3289;C;Mandalay-Jtone Training;aef1;32.00
  5054. 298K;C;MServer-Server System Setup and Assistance;321nd;180.00
  5055. 3294;L;MCloud Data Storage;40.00;3000.00
  5056.  
  5057.  
  5058. Customers.xml:
  5059. <?xml version="1.0"?>
  5060. <customers>
  5061. <governmentCustomer>
  5062. <customerCode>AB11</customerCode>
  5063. <name>University of Nebraska-Lincoln</name>
  5064. <address>
  5065. <street>420 University Terrace</street>
  5066. <city>Lincoln</city>
  5067. <state>NE</state>
  5068. <zip>68588</zip>
  5069. <country>USA</country>
  5070. </address>
  5071. <primaryContact>
  5072. <personCode>144a</personCode>
  5073. <firstName>Charles</firstName>
  5074. <lastName>Reidesel</lastName>
  5075. <address>
  5076. <street>459 N 34th St</street>
  5077. <city>Lincoln</city>
  5078. <state>NE</state>
  5079. <zip>68302</zip>
  5080. <country>USA</country>
  5081. </address>
  5082. <emails>
  5083. <email>chuckr@bbc.com</email>
  5084. <email>chuckreidesel@cse.unl.edu</email>
  5085. <email>creidesel@who.com</email>
  5086. </emails>
  5087. </primaryContact>
  5088. </governmentCustomer>
  5089. <companyCustomer>
  5090. <customerCode>AB12</customerCode>
  5091. <name>Stark Industries</name>
  5092. <address>
  5093. <street>184 Marvel Way</street>
  5094. <city>New York</city>
  5095. <state>NY</state>
  5096. <zip>10453</zip>
  5097. <country>USA</country>
  5098. </address>
  5099. <primaryContact>
  5100. <personCode>499c</personCode>
  5101. <firstName>Harry</firstName>
  5102. <lastName>Sonford</lastName>
  5103. <address>
  5104. <street>1467 Addison Street</street>
  5105. <city>Stillwater</city>
  5106. <state>OK</state>
  5107. <zip>60613</zip>
  5108. <country>USA</country>
  5109. </address>
  5110. <emails>
  5111. <email>harrysonford@cubs.com</email>
  5112. <email>sonford_harry13@gmail.com</email>
  5113. </emails>
  5114. </primaryContact>
  5115. </companyCustomer>
  5116. <companyCustomer>
  5117. <customerCode>AB13</customerCode>
  5118. <name>Dunder Mifflin Paper Company</name>
  5119. <address>
  5120. <street>123 Venture Way</street>
  5121. <city>Stranton</city>
  5122. <state>PA</state>
  5123. <zip>10456</zip>
  5124. <country>USA</country>
  5125. </address>
  5126. </companyCustomer>
  5127. <governmentCustomer>
  5128. <customerCode>AB14</customerCode>
  5129. <name>National Security Administration</name>
  5130. <address>
  5131. <street>9800 Savage Rd</street>
  5132. <city>Fort Meade</city>
  5133. <state>MD</state>
  5134. <zip>20755</zip>
  5135. <country>USA</country>
  5136. </address>
  5137. <primaryContact>
  5138. <personCode>344d</personCode>
  5139. <firstName>Bryan</firstName>
  5140. <lastName>Connor</lastName>
  5141. <address>
  5142. <street>344 Lincoln Street</street>
  5143. <city>New York</city>
  5144. <state>NY</state>
  5145. <zip>10023</zip>
  5146. <country>USA</country>
  5147. </address>
  5148. <emails>
  5149. <email>cbryan@aol.com</email>
  5150. <email>bconnor@gmail.com</email>
  5151. </emails>
  5152. </primaryContact>
  5153. </governmentCustomer>
  5154. <companyCustomer>
  5155. <customerCode>AB15</customerCode>
  5156. <name>Madalay Industries</name>
  5157. <address>
  5158. <street>1060 West Addison</street>
  5159. <city>Springfield</city>
  5160. <state>IL</state>
  5161. <zip>60601</zip>
  5162. <country>USA</country>
  5163. </address>
  5164. <primaryContact>
  5165. <personCode>bfab</personCode>
  5166. <firstName>Mathias</firstName>
  5167. <lastName>Hanten</lastName>
  5168. <address>
  5169. <street>320 West 6th Street</street>
  5170. <city>South Sioux city</city>
  5171. <state>NE</state>
  5172. <zip>68776</zip>
  5173. <country>USA</country>
  5174. </address>
  5175. <emails>
  5176. <email>mhanten@gmail.com</email>
  5177. </emails>
  5178. </primaryContact>
  5179. </companyCustomer>
  5180. <companyCustomer>
  5181. <customerCode>AB16</customerCode>
  5182. <name>Rockfort Inc.</name>
  5183. <address>
  5184. <street>456 West 7th St.</street>
  5185. <city>Rockfort</city>
  5186. <state>CA</state>
  5187. <zip>98500</zip>
  5188. <country>USA</country>
  5189. </address>
  5190. <primaryContact>
  5191. <personCode>ms42</personCode>
  5192. <firstName>Kordel</firstName>
  5193. <lastName>Smydra</lastName>
  5194. <address>
  5195. <street>Avery Hall</street>
  5196. <city>Lincoln</city>
  5197. <state>NE</state>
  5198. <zip>68503</zip>
  5199. <country>USA</country>
  5200. </address>
  5201. <emails>
  5202. <email>kordel_smydra@baker.com</email>
  5203. </emails>
  5204. </primaryContact>
  5205. </companyCustomer>
  5206. <governmentCustomer>
  5207. <customerCode>AB17</customerCode>
  5208. <name>Department of Motor Vehicles</name>
  5209. <address>
  5210. <street>625 N 46th St.</street>
  5211. <city>Lincoln</city>
  5212. <state>NE</state>
  5213. <zip>68503</zip>
  5214. <country>USA</country>
  5215. </address>
  5216. <primaryContact>
  5217. <personCode>267a</personCode>
  5218. <firstName>Ryan</firstName>
  5219. <lastName>Enders</lastName>
  5220. <address>
  5221. <street>1162 West Madison Street</street>
  5222. <city>Chicago</city>
  5223. <state>IL</state>
  5224. <zip>60613</zip>
  5225. <country>USA</country>
  5226. </address>
  5227. <emails>
  5228. <email>renders32@unl.edu</email>
  5229. <email>render@cse.unl.edu</email>
  5230. </emails>
  5231. </primaryContact>
  5232. </governmentCustomer>
  5233. </customers>
  5234.  
  5235. Persons.xml:
  5236. <?xml version="1.0"?>
  5237. <persons>
  5238. <person>
  5239. <personCode>149ba</personCode>
  5240. <firstName>Darren</firstName>
  5241. <lastName>Williams</lastName>
  5242. <address>
  5243. <street>142 N 14th Street</street>
  5244. <city>Omaha</city>
  5245. <state>NE</state>
  5246. <zip>68116</zip>
  5247. <country>USA</country>
  5248. </address>
  5249. <emails>
  5250. <email>dwillaims@venture.com</email>
  5251. <email>darren_f_williams@gmail.com</email>
  5252. </emails>
  5253. </person>
  5254. <person>
  5255. <personCode>321na</personCode>
  5256. <firstName>Matthew</firstName>
  5257. <lastName>Lenz</lastName>
  5258. <address>
  5259. <street>301 Front St W</street>
  5260. <city>Toronto</city>
  5261. <state>ON</state>
  5262. <zip>M5V 2T6</zip>
  5263. <country>Canada</country>
  5264. </address>
  5265. <emails>
  5266. <email>jpet@whofan.com</email>
  5267. </emails>
  5268. </person>
  5269. <person>
  5270. <personCode>344d</personCode>
  5271. <firstName>Bryan</firstName>
  5272. <lastName>Connor</lastName>
  5273. <address>
  5274. <street>344 Lincoln Street</street>
  5275. <city>New York</city>
  5276. <state>NY</state>
  5277. <zip>10023</zip>
  5278. <country>USA</country>
  5279. </address>
  5280. <emails>
  5281. <email>cbryan@aol.com</email>
  5282. <email>bconnor@gmail.com</email>
  5283. </emails>
  5284. </person>
  5285. <person>
  5286. <personCode>ms42</personCode>
  5287. <firstName>Kordel</firstName>
  5288. <lastName>Smydra</lastName>
  5289. <address>
  5290. <street>Avery Hall</street>
  5291. <city>Lincoln</city>
  5292. <state>NE</state>
  5293. <zip>68503</zip>
  5294. <country>USA</country>
  5295. </address>
  5296. <emails>
  5297. <email>kordel_smydra@baker.com</email>
  5298. </emails>
  5299. </person>
  5300. <person>
  5301. <personCode>1svndr</personCode>
  5302. <firstName>Travis</firstName>
  5303. <lastName>McCoy</lastName>
  5304. <address>
  5305. <street>126-01 Roosevelt Ave</street>
  5306. <city>Flushing</city>
  5307. <state>NY</state>
  5308. <zip>11368</zip>
  5309. <country>USA</country>
  5310. </address>
  5311. <emails>
  5312. <email>mccoy@aol.com</email>
  5313. <email>slyguy@hotmail.com</email>
  5314. </emails>
  5315. </person>
  5316. <person>
  5317. <personCode>55bb</personCode>
  5318. <firstName>Miles</firstName>
  5319. <lastName>Davis</lastName>
  5320. <address>
  5321. <street>8753 West 3rd Ave.</street>
  5322. <city>Dallas</city>
  5323. <state>TX</state>
  5324. <zip>75001</zip>
  5325. <country>USA</country>
  5326. </address>
  5327. <emails>
  5328. <email>mdav@rockfort.gov</email>
  5329. <email>davis12@ds9.com</email>
  5330. </emails>
  5331. </person>
  5332. <person>
  5333. <personCode>321nd</personCode>
  5334. <firstName>William</firstName>
  5335. <lastName>Enders</lastName>
  5336. <address>
  5337. <street>1165 West Madison Street</street>
  5338. <city>Chicago</city>
  5339. <state>IL</state>
  5340. <zip>60613</zip>
  5341. <country>USA</country>
  5342. </address>
  5343. <emails>
  5344. <email>dr@who.com</email>
  5345. <email>wenders@doctors.com</email>
  5346. </emails>
  5347. </person>
  5348. <person>
  5349. <personCode>144a</personCode>
  5350. <firstName>Charles</firstName>
  5351. <lastName>Reidesel</lastName>
  5352. <address>
  5353. <street>459 N 34th St</street>
  5354. <city>Lincoln</city>
  5355. <state>NE</state>
  5356. <zip>68302</zip>
  5357. <country>USA</country>
  5358. </address>
  5359. <emails>
  5360. <email>chuckr@bbc.com</email>
  5361. <email>chuckreidesel@cse.unl.edu</email>
  5362. <email>creidesel@who.com</email>
  5363. </emails>
  5364. </person>
  5365. <person>
  5366. <personCode>499c</personCode>
  5367. <firstName>Harry</firstName>
  5368. <lastName>Sonford</lastName>
  5369. <address>
  5370. <street>1467 Addison Street</street>
  5371. <city>Stillwater</city>
  5372. <state>OK</state>
  5373. <zip>60613</zip>
  5374. <country>USA</country>
  5375. </address>
  5376. <emails>
  5377. <email>harrysonford@cubs.com</email>
  5378. <email>sonford_harry13@gmail.com</email>
  5379. </emails>
  5380. </person>
  5381. <person>
  5382. <personCode>bfab</personCode>
  5383. <firstName>Mathias</firstName>
  5384. <lastName>Hanten</lastName>
  5385. <address>
  5386. <street>320 West 6th Street</street>
  5387. <city>South Sioux city</city>
  5388. <state>NE</state>
  5389. <zip>68776</zip>
  5390. <country>USA</country>
  5391. </address>
  5392. <emails>
  5393. <email>mhanten@gmail.com</email>
  5394. </emails>
  5395. </person>
  5396. <person>
  5397. <personCode>asn2</personCode>
  5398. <firstName>Matt</firstName>
  5399. <lastName>Smith</lastName>
  5400. <address>
  5401. <street>333 W 35th St</street>
  5402. <city>Chicago</city>
  5403. <state>IL</state>
  5404. <zip>60616</zip>
  5405. <country>USA</country>
  5406. </address>
  5407. <emails>
  5408. <email>msmith@who.com</email>
  5409. <email>thedoc@cse.unl.edu</email>
  5410. </emails>
  5411. </person>
  5412. <person>
  5413. <personCode>aef1</personCode>
  5414. <firstName>Richard</firstName>
  5415. <lastName>Monterroso</lastName>
  5416. <address>
  5417. <street>1 Wall Street</street>
  5418. <city>Indio</city>
  5419. <state>CA</state>
  5420. <zip>9221-0012</zip>
  5421. <country>USA</country>
  5422. </address>
  5423. <emails>
  5424. <email>rmont12@yahoo.com</email>
  5425. </emails>
  5426. </person>
  5427. <person>
  5428. <personCode>ma12</personCode>
  5429. <firstName>Tyler</firstName>
  5430. <lastName>Rediger</lastName>
  5431. <address>
  5432. <street>435 N 51st Street</street>
  5433. <city>Lincoln</city>
  5434. <state>NE</state>
  5435. <zip>68502</zip>
  5436. <country>USA</country>
  5437. </address>
  5438. <emails>
  5439. <email>tred@pubs.com</email>
  5440. </emails>
  5441. </person>
  5442. <person>
  5443. <personCode>267a</personCode>
  5444. <firstName>Ryan</firstName>
  5445. <lastName>Enders</lastName>
  5446. <address>
  5447. <street>1162 West Madison Street</street>
  5448. <city>Chicago</city>
  5449. <state>IL</state>
  5450. <zip>60613</zip>
  5451. <country>USA</country>
  5452. </address>
  5453. <emails>
  5454. <email>renders32@unl.edu</email>
  5455. <email>render@cse.unl.edu</email>
  5456. </emails>
  5457. </person>
  5458. <person>
  5459. <personCode>adhoc</personCode>
  5460. <firstName>Richard</firstName>
  5461. <lastName>Hammond</lastName>
  5462. <address>
  5463. <street>1 E 161st St</street>
  5464. <city>Bronx</city>
  5465. <state>NY</state>
  5466. <zip>10451</zip>
  5467. <country>USA</country>
  5468. </address>
  5469. <emails>
  5470. <email>rhammond@aol.com</email>
  5471. </emails>
  5472. </person>
  5473. </persons>
  5474.  
  5475. Products.xml:
  5476. <?xml version="1.0"?>
  5477. <products>
  5478. <consultation>
  5479. <productCode>298K</productCode>
  5480. <name>MServer-Server System Setup and Assistance</name>
  5481. <consultant>
  5482. <personCode>321nd</personCode>
  5483. <firstName>William</firstName>
  5484. <lastName>Enders</lastName>
  5485. <address>
  5486. <street>1165 West Madison Street</street>
  5487. <city>Chicago</city>
  5488. <state>IL</state>
  5489. <zip>60613</zip>
  5490. <country>USA</country>
  5491. </address>
  5492. <emails>
  5493. <email>dr@who.com</email>
  5494. <email>wenders@doctors.com</email>
  5495. </emails>
  5496. </consultant>
  5497. <pricePerHour>180.0</pricePerHour>
  5498. </consultation>
  5499. <consultation>
  5500. <productCode>3289</productCode>
  5501. <name>Mandalay-Jtone Training</name>
  5502. <consultant>
  5503. <personCode>aef1</personCode>
  5504. <firstName>Richard</firstName>
  5505. <lastName>Monterroso</lastName>
  5506. <address>
  5507. <street>1 Wall Street</street>
  5508. <city>Indio</city>
  5509. <state>CA</state>
  5510. <zip>9221-0012</zip>
  5511. <country>USA</country>
  5512. </address>
  5513. <emails>
  5514. <email>rmont12@yahoo.com</email>
  5515. </emails>
  5516. </consultant>
  5517. <pricePerHour>32.0</pricePerHour>
  5518. </consultation>
  5519. <equipment>
  5520. <productCode>s42a</productCode>
  5521. <name>Jericho Missile</name>
  5522. <pricePerUnit>250000.0</pricePerUnit>
  5523. </equipment>
  5524. <license>
  5525. <productCode>90fa</productCode>
  5526. <name>Mandalay Long Distance Service</name>
  5527. <fee>1899.0</fee>
  5528. <annualCost>17000.0</annualCost>
  5529. </license>
  5530. <equipment>
  5531. <productCode>1239</productCode>
  5532. <name>Rockfort GameBox</name>
  5533. <pricePerUnit>499.0</pricePerUnit>
  5534. </equipment>
  5535. <equipment>
  5536. <productCode>fp12</productCode>
  5537. <name>Mandalay Jtone</name>
  5538. <pricePerUnit>14.99</pricePerUnit>
  5539. </equipment>
  5540. <license>
  5541. <productCode>3294</productCode>
  5542. <name>MCloud Data Storage</name>
  5543. <fee>40.0</fee>
  5544. <annualCost>3000.0</annualCost>
  5545. </license>
  5546. <equipment>
  5547. <productCode>ab23</productCode>
  5548. <name>Rockfort Jdisc</name>
  5549. <pricePerUnit>124.99</pricePerUnit>
  5550. </equipment>
  5551. </products>
  5552.  
  5553. Customers.json:
  5554. {
  5555. "customers": [
  5556. {
  5557. "customerCode": "AB11",
  5558. "name": "University of Nebraska-Lincoln",
  5559. "address": {
  5560. "street": "420 University Terrace",
  5561. "city": "Lincoln",
  5562. "state": "NE",
  5563. "zip": "68588",
  5564. "country": "USA"
  5565. },
  5566. "primaryContact": {
  5567. "personCode": "144a",
  5568. "firstName": "Charles",
  5569. "lastName": "Reidesel",
  5570. "address": {
  5571. "street": "459 N 34th St",
  5572. "city": "Lincoln",
  5573. "state": "NE",
  5574. "zip": "68302",
  5575. "country": "USA"
  5576. },
  5577. "emails": [
  5578. "chuckr@bbc.com",
  5579. "chuckreidesel@cse.unl.edu",
  5580. "creidesel@who.com"
  5581. ]
  5582. }
  5583. },
  5584. {
  5585. "customerCode": "AB12",
  5586. "name": "Stark Industries",
  5587. "address": {
  5588. "street": "184 Marvel Way",
  5589. "city": "New York",
  5590. "state": "NY",
  5591. "zip": "10453",
  5592. "country": "USA"
  5593. },
  5594. "primaryContact": {
  5595. "personCode": "499c",
  5596. "firstName": "Harry",
  5597. "lastName": "Sonford",
  5598. "address": {
  5599. "street": "1467 Addison Street",
  5600. "city": "Stillwater",
  5601. "state": "OK",
  5602. "zip": "60613",
  5603. "country": "USA"
  5604. },
  5605. "emails": [
  5606. "harrysonford@cubs.com",
  5607. "sonford_harry13@gmail.com"
  5608. ]
  5609. }
  5610. },
  5611. {
  5612. "customerCode": "AB13",
  5613. "name": "Dunder Mifflin Paper Company",
  5614. "address": {
  5615. "street": "123 Venture Way",
  5616. "city": "Stranton",
  5617. "state": "PA",
  5618. "zip": "10456",
  5619. "country": "USA"
  5620. }
  5621. },
  5622. {
  5623. "customerCode": "AB14",
  5624. "name": "National Security Administration",
  5625. "address": {
  5626. "street": "9800 Savage Rd",
  5627. "city": "Fort Meade",
  5628. "state": "MD",
  5629. "zip": "20755",
  5630. "country": "USA"
  5631. },
  5632. "primaryContact": {
  5633. "personCode": "344d",
  5634. "firstName": "Bryan",
  5635. "lastName": "Connor",
  5636. "address": {
  5637. "street": "344 Lincoln Street",
  5638. "city": "New York",
  5639. "state": "NY",
  5640. "zip": "10023",
  5641. "country": "USA"
  5642. },
  5643. "emails": [
  5644. "cbryan@aol.com",
  5645. "bconnor@gmail.com"
  5646. ]
  5647. }
  5648. },
  5649. {
  5650. "customerCode": "AB15",
  5651. "name": "Madalay Industries",
  5652. "address": {
  5653. "street": "1060 West Addison",
  5654. "city": "Springfield",
  5655. "state": "IL",
  5656. "zip": "60601",
  5657. "country": "USA"
  5658. },
  5659. "primaryContact": {
  5660. "personCode": "bfab",
  5661. "firstName": "Mathias",
  5662. "lastName": "Hanten",
  5663. "address": {
  5664. "street": "320 West 6th Street",
  5665. "city": "South Sioux city",
  5666. "state": "NE",
  5667. "zip": "68776",
  5668. "country": "USA"
  5669. },
  5670. "emails": [
  5671. "mhanten@gmail.com"
  5672. ]
  5673. }
  5674. },
  5675. {
  5676. "customerCode": "AB16",
  5677. "name": "Rockfort Inc.",
  5678. "address": {
  5679. "street": "456 West 7th St.",
  5680. "city": "Rockfort",
  5681. "state": "CA",
  5682. "zip": "98500",
  5683. "country": "USA"
  5684. },
  5685. "primaryContact": {
  5686. "personCode": "ms42",
  5687. "firstName": "Kordel",
  5688. "lastName": "Smydra",
  5689. "address": {
  5690. "street": "Avery Hall",
  5691. "city": "Lincoln",
  5692. "state": "NE",
  5693. "zip": "68503",
  5694. "country": "USA"
  5695. },
  5696. "emails": [
  5697. "kordel_smydra@baker.com"
  5698. ]
  5699. }
  5700. },
  5701. {
  5702. "customerCode": "AB17",
  5703. "name": "Department of Motor Vehicles",
  5704. "address": {
  5705. "street": "625 N 46th St.",
  5706. "city": "Lincoln",
  5707. "state": "NE",
  5708. "zip": "68503",
  5709. "country": "USA"
  5710. },
  5711. "primaryContact": {
  5712. "personCode": "267a",
  5713. "firstName": "Ryan",
  5714. "lastName": "Enders",
  5715. "address": {
  5716. "street": "1162 West Madison Street",
  5717. "city": "Chicago",
  5718. "state": "IL",
  5719. "zip": "60613",
  5720. "country": "USA"
  5721. },
  5722. "emails": [
  5723. "renders32@unl.edu",
  5724. "render@cse.unl.edu"
  5725. ]
  5726. }
  5727. }
  5728. ]}
  5729.  
  5730. Persons.json:
  5731. {
  5732. "persons": [
  5733. {
  5734. "personCode": "149ba",
  5735. "firstName": "Darren",
  5736. "lastName": "Williams",
  5737. "address": {
  5738. "street": "142 N 14th Street",
  5739. "city": "Omaha",
  5740. "state": "NE",
  5741. "zip": "68116",
  5742. "country": "USA"
  5743. },
  5744. "emails": [
  5745. "dwillaims@venture.com",
  5746. "darren_f_williams@gmail.com"
  5747. ]
  5748. },
  5749. {
  5750. "personCode": "321na",
  5751. "firstName": "Matthew",
  5752. "lastName": "Lenz",
  5753. "address": {
  5754. "street": "301 Front St W",
  5755. "city": "Toronto",
  5756. "state": "ON",
  5757. "zip": "M5V 2T6",
  5758. "country": "Canada"
  5759. },
  5760. "emails": [
  5761. "jpet@whofan.com"
  5762. ]
  5763. },
  5764. {
  5765. "personCode": "344d",
  5766. "firstName": "Bryan",
  5767. "lastName": "Connor",
  5768. "address": {
  5769. "street": "344 Lincoln Street",
  5770. "city": "New York",
  5771. "state": "NY",
  5772. "zip": "10023",
  5773. "country": "USA"
  5774. },
  5775. "emails": [
  5776. "cbryan@aol.com",
  5777. "bconnor@gmail.com"
  5778. ]
  5779. },
  5780. {
  5781. "personCode": "ms42",
  5782. "firstName": "Kordel",
  5783. "lastName": "Smydra",
  5784. "address": {
  5785. "street": "Avery Hall",
  5786. "city": "Lincoln",
  5787. "state": "NE",
  5788. "zip": "68503",
  5789. "country": "USA"
  5790. },
  5791. "emails": [
  5792. "kordel_smydra@baker.com"
  5793. ]
  5794. },
  5795. {
  5796. "personCode": "1svndr",
  5797. "firstName": "Travis",
  5798. "lastName": "McCoy",
  5799. "address": {
  5800. "street": "126-01 Roosevelt Ave",
  5801. "city": "Flushing",
  5802. "state": "NY",
  5803. "zip": "11368",
  5804. "country": "USA"
  5805. },
  5806. "emails": [
  5807. "mccoy@aol.com",
  5808. "slyguy@hotmail.com"
  5809. ]
  5810. },
  5811. {
  5812. "personCode": "55bb",
  5813. "firstName": "Miles",
  5814. "lastName": "Davis",
  5815. "address": {
  5816. "street": "8753 West 3rd Ave.",
  5817. "city": "Dallas",
  5818. "state": "TX",
  5819. "zip": "75001",
  5820. "country": "USA"
  5821. },
  5822. "emails": [
  5823. "mdav@rockfort.gov",
  5824. "davis12@ds9.com"
  5825. ]
  5826. },
  5827. {
  5828. "personCode": "321nd",
  5829. "firstName": "William",
  5830. "lastName": "Enders",
  5831. "address": {
  5832. "street": "1165 West Madison Street",
  5833. "city": "Chicago",
  5834. "state": "IL",
  5835. "zip": "60613",
  5836. "country": "USA"
  5837. },
  5838. "emails": [
  5839. "dr@who.com",
  5840. "wenders@doctors.com"
  5841. ]
  5842. },
  5843. {
  5844. "personCode": "144a",
  5845. "firstName": "Charles",
  5846. "lastName": "Reidesel",
  5847. "address": {
  5848. "street": "459 N 34th St",
  5849. "city": "Lincoln",
  5850. "state": "NE",
  5851. "zip": "68302",
  5852. "country": "USA"
  5853. },
  5854. "emails": [
  5855. "chuckr@bbc.com",
  5856. "chuckreidesel@cse.unl.edu",
  5857. "creidesel@who.com"
  5858. ]
  5859. },
  5860. {
  5861. "personCode": "499c",
  5862. "firstName": "Harry",
  5863. "lastName": "Sonford",
  5864. "address": {
  5865. "street": "1467 Addison Street",
  5866. "city": "Stillwater",
  5867. "state": "OK",
  5868. "zip": "60613",
  5869. "country": "USA"
  5870. },
  5871. "emails": [
  5872. "harrysonford@cubs.com",
  5873. "sonford_harry13@gmail.com"
  5874. ]
  5875. },
  5876. {
  5877. "personCode": "bfab",
  5878. "firstName": "Mathias",
  5879. "lastName": "Hanten",
  5880. "address": {
  5881. "street": "320 West 6th Street",
  5882. "city": "South Sioux city",
  5883. "state": "NE",
  5884. "zip": "68776",
  5885. "country": "USA"
  5886. },
  5887. "emails": [
  5888. "mhanten@gmail.com"
  5889. ]
  5890. },
  5891. {
  5892. "personCode": "asn2",
  5893. "firstName": "Matt",
  5894. "lastName": "Smith",
  5895. "address": {
  5896. "street": "333 W 35th St",
  5897. "city": "Chicago",
  5898. "state": "IL",
  5899. "zip": "60616",
  5900. "country": "USA"
  5901. },
  5902. "emails": [
  5903. "msmith@who.com",
  5904. "thedoc@cse.unl.edu"
  5905. ]
  5906. },
  5907. {
  5908. "personCode": "aef1",
  5909. "firstName": "Richard",
  5910. "lastName": "Monterroso",
  5911. "address": {
  5912. "street": "1 Wall Street",
  5913. "city": "Indio",
  5914. "state": "CA",
  5915. "zip": "9221-0012",
  5916. "country": "USA"
  5917. },
  5918. "emails": [
  5919. "rmont12@yahoo.com"
  5920. ]
  5921. },
  5922. {
  5923. "personCode": "ma12",
  5924. "firstName": "Tyler",
  5925. "lastName": "Rediger",
  5926. "address": {
  5927. "street": "435 N 51st Street",
  5928. "city": "Lincoln",
  5929. "state": "NE",
  5930. "zip": "68502",
  5931. "country": "USA"
  5932. },
  5933. "emails": [
  5934. "tred@pubs.com"
  5935. ]
  5936. },
  5937. {
  5938. "personCode": "267a",
  5939. "firstName": "Ryan",
  5940. "lastName": "Enders",
  5941. "address": {
  5942. "street": "1162 West Madison Street",
  5943. "city": "Chicago",
  5944. "state": "IL",
  5945. "zip": "60613",
  5946. "country": "USA"
  5947. },
  5948. "emails": [
  5949. "renders32@unl.edu",
  5950. "render@cse.unl.edu"
  5951. ]
  5952. },
  5953. {
  5954. "personCode": "adhoc",
  5955. "firstName": "Richard",
  5956. "lastName": "Hammond",
  5957. "address": {
  5958. "street": "1 E 161st St",
  5959. "city": "Bronx",
  5960. "state": "NY",
  5961. "zip": "10451",
  5962. "country": "USA"
  5963. },
  5964. "emails": [
  5965. "rhammond@aol.com"
  5966. ]
  5967. }
  5968. ]}
  5969.  
  5970. Products.json:
  5971. {
  5972. "products": [
  5973. {
  5974. "consultant": {
  5975. "personCode": "321nd",
  5976. "firstName": "William",
  5977. "lastName": "Enders",
  5978. "address": {
  5979. "street": "1165 West Madison Street",
  5980. "city": "Chicago",
  5981. "state": "IL",
  5982. "zip": "60613",
  5983. "country": "USA"
  5984. },
  5985. "emails": [
  5986. "dr@who.com",
  5987. "wenders@doctors.com"
  5988. ]
  5989. },
  5990. "pricePerHour": 180.0,
  5991. "productCode": "298K",
  5992. "name": "MServer-Server System Setup and Assistance"
  5993. },
  5994. {
  5995. "consultant": {
  5996. "personCode": "aef1",
  5997. "firstName": "Richard",
  5998. "lastName": "Monterroso",
  5999. "address": {
  6000. "street": "1 Wall Street",
  6001. "city": "Indio",
  6002. "state": "CA",
  6003. "zip": "9221-0012",
  6004. "country": "USA"
  6005. },
  6006. "emails": [
  6007. "rmont12@yahoo.com"
  6008. ]
  6009. },
  6010. "pricePerHour": 32.0,
  6011. "productCode": "3289",
  6012. "name": "Mandalay-Jtone Training"
  6013. },
  6014. {
  6015. "pricePerUnit": 250000.0,
  6016. "productCode": "s42a",
  6017. "name": "Jericho Missile"
  6018. },
  6019. {
  6020. "fee": 1899.0,
  6021. "annualCost": 17000.0,
  6022. "productCode": "90fa",
  6023. "name": "Mandalay Long Distance Service"
  6024. },
  6025. {
  6026. "pricePerUnit": 499.0,
  6027. "productCode": "1239",
  6028. "name": "Rockfort GameBox"
  6029. },
  6030. {
  6031. "pricePerUnit": 14.99,
  6032. "productCode": "fp12",
  6033. "name": "Mandalay Jtone"
  6034. },
  6035. {
  6036. "fee": 40.0,
  6037. "annualCost": 3000.0,
  6038. "productCode": "3294",
  6039. "name": "MCloud Data Storage"
  6040. },
  6041. {
  6042. "pricePerUnit": 124.99,
  6043. "productCode": "ab23",
  6044. "name": "Rockfort Jdisc"
  6045. }
  6046. ]}
  6047.  
  6048. Program Output
  6049.  
  6050. Customer [customerCode=AB15, type=C, companyName=Madalay Industries, address=Address [street=1060 West Addison, city=Springfield, state=IL, zip=60601, country=USA]]
  6051. Customer [customerCode=AB11, type=G, companyName=University of Nebraska-Lincoln, address=Address [street=420 University Terrace, city=Lincoln, state=NE, zip=68588, country=USA]]
  6052. Customer [customerCode=AB13, type=C, companyName=Dunder Mifflin Paper Company, address=Address [street=123 Venture Way, city=Stranton, state=PA, zip=10456, country=USA]]
  6053. Customer [customerCode=AB16, type=C, companyName=Rockfort Inc., address=Address [street=456 West 7th St., city=Rockfort, state=CA, zip=98500, country=USA]]
  6054. Customer [customerCode=AB12, type=C, companyName=Stark Industries, address=Address [street=184 Marvel Way, city=New York, state=NY, zip=10453, country=USA]]
  6055. Customer [customerCode=AB17, type=G, companyName=Department of Motor Vehicles, address=Address [street=625 N 46th St., city=Lincoln, state=NE, zip=68503, country=USA]]
  6056. Customer [customerCode=AB14, type=G, companyName=National Security Administration, address=Address [street=9800 Savage Rd, city=Fort Meade, state=MD, zip=20755, country=USA]]
  6057. Product [code=s42a, type=E, name=Jericho Missile] Equipment [pricePerUnit=250000.0]
  6058. Product [code=ab23, type=E, name=Rockfort Jdisc] Equipment [pricePerUnit=124.99]
  6059. Product [code=fp12, type=E, name=Mandalay Jtone] Equipment [pricePerUnit=14.99]
  6060. Product [code=1239, type=E, name=Rockfort GameBox] Equipment [pricePerUnit=499.0]
  6061. Product [code=90fa, type=L, name=Mandalay Long Distance Service] License [serviceFee=1899.0, annualLicenseFee=17000.0]
  6062. Product [code=3289, type=C, name=Mandalay-Jtone Training] Consultation [consultant=Person [personCode=aef1, firstName=Richard, lastName=Monterroso, address=Address [street=1 Wall Street, city=Indio, state=CA, zip=9221-0012, country=USA], emails=[rmont12@yahoo.com]], hourlyFee=32.0]
  6063. Product [code=298K, type=C, name=MServer-Server System Setup and Assistance] Consultation [consultant=Person [personCode=321nd, firstName=William, lastName=Enders, address=Address [street=1165 West Madison Street, city=Chicago, state=IL, zip=60613, country=USA], emails=[wenders@doctors.com, dr@who.com]], hourlyFee=180.0]
  6064. Product [code=3294, type=L, name=MCloud Data Storage] License [serviceFee=40.0, annualLicenseFee=3000.0]
  6065. ::::::::::::::
  6066. ./data/Customers.xml
  6067. ::::::::::::::
  6068. <customers>
  6069. <companyCustomer>
  6070. <customerCode>AB15</customerCode>
  6071. <companyName>Madalay Industries</companyName>
  6072. <address>
  6073. <street>1060 West Addison</street>
  6074. <city>Springfield</city>
  6075. <state>IL</state>
  6076. <zip>60601</zip>
  6077. <country>USA</country>
  6078. </address>
  6079. </companyCustomer>
  6080. <governmentCustomer>
  6081. <customerCode>AB11</customerCode>
  6082. <companyName>University of Nebraska-Lincoln</companyName>
  6083. <address>
  6084. <street>420 University Terrace</street>
  6085. <city>Lincoln</city>
  6086. <state>NE</state>
  6087. <zip>68588</zip>
  6088. <country>USA</country>
  6089. </address>
  6090. </governmentCustomer>
  6091. <companyCustomer>
  6092. <customerCode>AB13</customerCode>
  6093. <companyName>Dunder Mifflin Paper Company</companyName>
  6094. <address>
  6095. <street>123 Venture Way</street>
  6096. <city>Stranton</city>
  6097. <state>PA</state>
  6098. <zip>10456</zip>
  6099. <country>USA</country>
  6100. </address>
  6101. </companyCustomer>
  6102. <companyCustomer>
  6103. <customerCode>AB16</customerCode>
  6104. <companyName>Rockfort Inc.</companyName>
  6105. <address>
  6106. <street>456 West 7th St.</street>
  6107. <city>Rockfort</city>
  6108. <state>CA</state>
  6109. <zip>98500</zip>
  6110. <country>USA</country>
  6111. </address>
  6112. </companyCustomer>
  6113. <companyCustomer>
  6114. <customerCode>AB12</customerCode>
  6115. <companyName>Stark Industries</companyName>
  6116. <address>
  6117. <street>184 Marvel Way</street>
  6118. <city>New York</city>
  6119. <state>NY</state>
  6120. <zip>10453</zip>
  6121. <country>USA</country>
  6122. </address>
  6123. </companyCustomer>
  6124. <governmentCustomer>
  6125. <customerCode>AB17</customerCode>
  6126. <companyName>Department of Motor Vehicles</companyName>
  6127. <address>
  6128. <street>625 N 46th St.</street>
  6129. <city>Lincoln</city>
  6130. <state>NE</state>
  6131. <zip>68503</zip>
  6132. <country>USA</country>
  6133. </address>
  6134. </governmentCustomer>
  6135. <governmentCustomer>
  6136. <customerCode>AB14</customerCode>
  6137. <companyName>National Security Administration</companyName>
  6138. <address>
  6139. <street>9800 Savage Rd</street>
  6140. <city>Fort Meade</city>
  6141. <state>MD</state>
  6142. <zip>20755</zip>
  6143. <country>USA</country>
  6144. </address>
  6145. </governmentCustomer>
  6146. </customers>::::::::::::::
  6147. ./data/Persons.xml
  6148. ::::::::::::::
  6149. <persons>
  6150. <person>
  6151. <personCode>144a</personCode>
  6152. <firstName>Charles</firstName>
  6153. <lastName>Reidesel</lastName>
  6154. <address>
  6155. <street>459 N 34th St</street>
  6156. <city>Lincoln</city>
  6157. <state>NE</state>
  6158. <zip>68302</zip>
  6159. <country>USA</country>
  6160. </address>
  6161. <emails>
  6162. <email>creidesel@who.com</email>
  6163. <email>chuckreidesel@cse.unl.edu</email>
  6164. <email>chuckr@bbc.com</email>
  6165. </emails>
  6166. </person>
  6167. <person>
  6168. <personCode>55bb</personCode>
  6169. <firstName>Miles</firstName>
  6170. <lastName>Davis</lastName>
  6171. <address>
  6172. <street>8753 West 3rd Ave.</street>
  6173. <city>Dallas</city>
  6174. <state>TX</state>
  6175. <zip>75001</zip>
  6176. <country>USA</country>
  6177. </address>
  6178. <emails>
  6179. <email>davis12@ds9.com</email>
  6180. <email>mdav@rockfort.gov</email>
  6181. </emails>
  6182. </person>
  6183. <person>
  6184. <personCode>321nd</personCode>
  6185. <firstName>William</firstName>
  6186. <lastName>Enders</lastName>
  6187. <address>
  6188. <street>1165 West Madison Street</street>
  6189. <city>Chicago</city>
  6190. <state>IL</state>
  6191. <zip>60613</zip>
  6192. <country>USA</country>
  6193. </address>
  6194. <emails>
  6195. <email>wenders@doctors.com</email>
  6196. <email>dr@who.com</email>
  6197. </emails>
  6198. </person>
  6199. <person>
  6200. <personCode>149ba</personCode>
  6201. <firstName>Darren</firstName>
  6202. <lastName>Williams</lastName>
  6203. <address>
  6204. <street>142 N 14th Street</street>
  6205. <city>Omaha</city>
  6206. <state>NE</state>
  6207. <zip>68116</zip>
  6208. <country>USA</country>
  6209. </address>
  6210. <emails>
  6211. <email>darren_f_williams@gmail.com</email>
  6212. <email>dwillaims@venture.com</email>
  6213. </emails>
  6214. </person>
  6215. <person>
  6216. <personCode>ma12</personCode>
  6217. <firstName>Tyler</firstName>
  6218. <lastName>Rediger</lastName>
  6219. <address>
  6220. <street>435 N 51st Street</street>
  6221. <city>Lincoln</city>
  6222. <state>NE</state>
  6223. <zip>68502</zip>
  6224. <country>USA</country>
  6225. </address>
  6226. <emails>
  6227. <email>tred@pubs.com</email>
  6228. </emails>
  6229. </person>
  6230. <person>
  6231. <personCode>499c</personCode>
  6232. <firstName>Harry</firstName>
  6233. <lastName>Sonford</lastName>
  6234. <address>
  6235. <street>1467 Addison Street</street>
  6236. <city>Stillwater</city>
  6237. <state>OK</state>
  6238. <zip>60613</zip>
  6239. <country>USA</country>
  6240. </address>
  6241. <emails>
  6242. <email>harrysonford@cubs.com</email>
  6243. <email>sonford_harry13@gmail.com</email>
  6244. </emails>
  6245. </person>
  6246. <person>
  6247. <personCode>bfab</personCode>
  6248. <firstName>Mathias</firstName>
  6249. <lastName>Hanten</lastName>
  6250. <address>
  6251. <street>320 West 6th Street</street>
  6252. <city>South Sioux city</city>
  6253. <state>NE</state>
  6254. <zip>68776</zip>
  6255. <country>USA</country>
  6256. </address>
  6257. <emails>
  6258. <email>mhanten@gmail.com</email>
  6259. </emails>
  6260. </person>
  6261. <person>
  6262. <personCode>aef1</personCode>
  6263. <firstName>Richard</firstName>
  6264. <lastName>Monterroso</lastName>
  6265. <address>
  6266. <street>1 Wall Street</street>
  6267. <city>Indio</city>
  6268. <state>CA</state>
  6269. <zip>9221-0012</zip>
  6270. <country>USA</country>
  6271. </address>
  6272. <emails>
  6273. <email>rmont12@yahoo.com</email>
  6274. </emails>
  6275. </person>
  6276. <person>
  6277. <personCode>267a</personCode>
  6278. <firstName>Ryan</firstName>
  6279. <lastName>Enders</lastName>
  6280. <address>
  6281. <street>1162 West Madison Street</street>
  6282. <city>Chicago</city>
  6283. <state>IL</state>
  6284. <zip>60613</zip>
  6285. <country>USA</country>
  6286. </address>
  6287. <emails>
  6288. <email>render@cse.unl.edu</email>
  6289. <email>renders32@unl.edu</email>
  6290. </emails>
  6291. </person>
  6292. <person>
  6293. <personCode>321na</personCode>
  6294. <firstName>Matthew</firstName>
  6295. <lastName>Lenz</lastName>
  6296. <address>
  6297. <street>301 Front St W</street>
  6298. <city>Toronto</city>
  6299. <state>ON</state>
  6300. <zip>M5V 2T6</zip>
  6301. <country>Canada</country>
  6302. </address>
  6303. <emails>
  6304. <email>jpet@whofan.com</email>
  6305. </emails>
  6306. </person>
  6307. <person>
  6308. <personCode>344d</personCode>
  6309. <firstName>Bryan</firstName>
  6310. <lastName>Connor</lastName>
  6311. <address>
  6312. <street>344 Lincoln Street</street>
  6313. <city>New York</city>
  6314. <state>NY</state>
  6315. <zip>10023</zip>
  6316. <country>USA</country>
  6317. </address>
  6318. <emails>
  6319. <email>bconnor@gmail.com</email>
  6320. <email>cbryan@aol.com</email>
  6321. </emails>
  6322. </person>
  6323. <person>
  6324. <personCode>1svndr</personCode>
  6325. <firstName>Travis</firstName>
  6326. <lastName>McCoy</lastName>
  6327. <address>
  6328. <street>126-01 Roosevelt Ave</street>
  6329. <city>Flushing</city>
  6330. <state>NY</state>
  6331. <zip>11368</zip>
  6332. <country>USA</country>
  6333. </address>
  6334. <emails>
  6335. <email>slyguy@hotmail.com</email>
  6336. <email>mccoy@aol.com</email>
  6337. </emails>
  6338. </person>
  6339. <person>
  6340. <personCode>adhoc</personCode>
  6341. <firstName>Richard</firstName>
  6342. <lastName>Hammond</lastName>
  6343. <address>
  6344. <street>1 E 161st St</street>
  6345. <city>Bronx</city>
  6346. <state>NY</state>
  6347. <zip>10451</zip>
  6348. <country>USA</country>
  6349. </address>
  6350. <emails>
  6351. <email>rhammond@aol.com</email>
  6352. </emails>
  6353. </person>
  6354. <person>
  6355. <personCode>ms42</personCode>
  6356. <firstName>Kordel</firstName>
  6357. <lastName>Smydra</lastName>
  6358. <address>
  6359. <street>Avery Hall</street>
  6360. <city>Lincoln</city>
  6361. <state>NE</state>
  6362. <zip>68503</zip>
  6363. <country>USA</country>
  6364. </address>
  6365. <emails>
  6366. <email>kordel_smydra@baker.com</email>
  6367. </emails>
  6368. </person>
  6369. <person>
  6370. <personCode>asn2</personCode>
  6371. <firstName>Matt</firstName>
  6372. <lastName>Smith</lastName>
  6373. <address>
  6374. <street>333 W 35th St</street>
  6375. <city>Chicago</city>
  6376. <state>IL</state>
  6377. <zip>60616</zip>
  6378. <country>USA</country>
  6379. </address>
  6380. <emails>
  6381. <email>msmith@who.com</email>
  6382. <email>thedoc@cse.unl.edu</email>
  6383. </emails>
  6384. </person>
  6385. </persons>::::::::::::::
  6386. ./data/Products.xml
  6387. ::::::::::::::
  6388. <products>
  6389. <equipment>
  6390. <productCode>s42a</productCode>
  6391. <name>Jericho Missile</name>
  6392. <pricePerUnit>250000.0</pricePerUnit>
  6393. </equipment>
  6394. <equipment>
  6395. <productCode>ab23</productCode>
  6396. <name>Rockfort Jdisc</name>
  6397. <pricePerUnit>124.99</pricePerUnit>
  6398. </equipment>
  6399. <equipment>
  6400. <productCode>fp12</productCode>
  6401. <name>Mandalay Jtone</name>
  6402. <pricePerUnit>14.99</pricePerUnit>
  6403. </equipment>
  6404. <equipment>
  6405. <productCode>1239</productCode>
  6406. <name>Rockfort GameBox</name>
  6407. <pricePerUnit>499.0</pricePerUnit>
  6408. </equipment>
  6409. <license>
  6410. <productCode>90fa</productCode>
  6411. <name>Mandalay Long Distance Service</name>
  6412. <fee>1899.0</fee>
  6413. <annualCost>17000.0</annualCost>
  6414. </license>
  6415. <consultation>
  6416. <productCode>3289</productCode>
  6417. <name>Mandalay-Jtone Training</name>
  6418. <consultant>
  6419. <personCode>aef1</personCode>
  6420. <firstName>Richard</firstName>
  6421. <lastName>Monterroso</lastName>
  6422. <address>
  6423. <street>1 Wall Street</street>
  6424. <city>Indio</city>
  6425. <state>CA</state>
  6426. <zip>9221-0012</zip>
  6427. <country>USA</country>
  6428. </address>
  6429. <emails>
  6430. <string>rmont12@yahoo.com</string>
  6431. </emails>
  6432. </consultant>
  6433. <pricePerHour>32.0</pricePerHour>
  6434. </consultation>
  6435. <consultation>
  6436. <productCode>298K</productCode>
  6437. <name>MServer-Server System Setup and Assistance</name>
  6438. <consultant>
  6439. <personCode>321nd</personCode>
  6440. <firstName>William</firstName>
  6441. <lastName>Enders</lastName>
  6442. <address>
  6443. <street>1165 West Madison Street</street>
  6444. <city>Chicago</city>
  6445. <state>IL</state>
  6446. <zip>60613</zip>
  6447. <country>USA</country>
  6448. </address>
  6449. <emails>
  6450. <string>wenders@doctors.com</string>
  6451. <string>dr@who.com</string>
  6452. </emails>
  6453. </consultant>
  6454. <pricePerHour>180.0</pricePerHour>
  6455. </consultation>
  6456. <license>
  6457. <productCode>3294</productCode>
  6458. <name>MCloud Data Storage</name>
  6459. <fee>40.0</fee>
  6460. <annualCost>3000.0</annualCost>
  6461. </license>
  6462. </products>
  6463. ::::::::::::::
  6464. ./data/Customers.json
  6465. ::::::::::::::
  6466. <customers>
  6467. <companyCustomer>
  6468. <customerCode>AB15</customerCode>
  6469. <companyName>Madalay Industries</companyName>
  6470. <address>
  6471. <street>1060 West Addison</street>
  6472. <city>Springfield</city>
  6473. <state>IL</state>
  6474. <zip>60601</zip>
  6475. <country>USA</country>
  6476. </address>
  6477. </companyCustomer>
  6478. <governmentCustomer>
  6479. <customerCode>AB11</customerCode>
  6480. <companyName>University of Nebraska-Lincoln</companyName>
  6481. <address>
  6482. <street>420 University Terrace</street>
  6483. <city>Lincoln</city>
  6484. <state>NE</state>
  6485. <zip>68588</zip>
  6486. <country>USA</country>
  6487. </address>
  6488. </governmentCustomer>
  6489. <companyCustomer>
  6490. <customerCode>AB13</customerCode>
  6491. <companyName>Dunder Mifflin Paper Company</companyName>
  6492. <address>
  6493. <street>123 Venture Way</street>
  6494. <city>Stranton</city>
  6495. <state>PA</state>
  6496. <zip>10456</zip>
  6497. <country>USA</country>
  6498. </address>
  6499. </companyCustomer>
  6500. <companyCustomer>
  6501. <customerCode>AB16</customerCode>
  6502. <companyName>Rockfort Inc.</companyName>
  6503. <address>
  6504. <street>456 West 7th St.</street>
  6505. <city>Rockfort</city>
  6506. <state>CA</state>
  6507. <zip>98500</zip>
  6508. <country>USA</country>
  6509. </address>
  6510. </companyCustomer>
  6511. <companyCustomer>
  6512. <customerCode>AB12</customerCode>
  6513. <companyName>Stark Industries</companyName>
  6514. <address>
  6515. <street>184 Marvel Way</street>
  6516. <city>New York</city>
  6517. <state>NY</state>
  6518. <zip>10453</zip>
  6519. <country>USA</country>
  6520. </address>
  6521. </companyCustomer>
  6522. <governmentCustomer>
  6523. <customerCode>AB17</customerCode>
  6524. <companyName>Department of Motor Vehicles</companyName>
  6525. <address>
  6526. <street>625 N 46th St.</street>
  6527. <city>Lincoln</city>
  6528. <state>NE</state>
  6529. <zip>68503</zip>
  6530. <country>USA</country>
  6531. </address>
  6532. </governmentCustomer>
  6533. <governmentCustomer>
  6534. <customerCode>AB14</customerCode>
  6535. <companyName>National Security Administration</companyName>
  6536. <address>
  6537. <street>9800 Savage Rd</street>
  6538. <city>Fort Meade</city>
  6539. <state>MD</state>
  6540. <zip>20755</zip>
  6541. <country>USA</country>
  6542. </address>
  6543. </governmentCustomer>
  6544. </customers>::::::::::::::
  6545. ./data/Persons.json
  6546. ::::::::::::::
  6547. {
  6548. "persons": {
  6549. "person": [
  6550. {
  6551. "personCode": "144a",
  6552. "firstName": "Charles",
  6553. "lastName": "Reidesel",
  6554. "address": {
  6555. "street": "459 N 34th St",
  6556. "city": "Lincoln",
  6557. "state": "NE",
  6558. "zip": "68302",
  6559. "country": "USA"
  6560. },
  6561. "emails": [
  6562. "creidesel@who.com",
  6563. "chuckreidesel@cse.unl.edu",
  6564. "chuckr@bbc.com"
  6565. ]
  6566. },
  6567. {
  6568. "personCode": "55bb",
  6569. "firstName": "Miles",
  6570. "lastName": "Davis",
  6571. "address": {
  6572. "street": "8753 West 3rd Ave.",
  6573. "city": "Dallas",
  6574. "state": "TX",
  6575. "zip": "75001",
  6576. "country": "USA"
  6577. },
  6578. "emails": [
  6579. "davis12@ds9.com",
  6580. "mdav@rockfort.gov"
  6581. ]
  6582. },
  6583. {
  6584. "personCode": "321nd",
  6585. "firstName": "William",
  6586. "lastName": "Enders",
  6587. "address": {
  6588. "street": "1165 West Madison Street",
  6589. "city": "Chicago",
  6590. "state": "IL",
  6591. "zip": "60613",
  6592. "country": "USA"
  6593. },
  6594. "emails": [
  6595. "wenders@doctors.com",
  6596. "dr@who.com"
  6597. ]
  6598. },
  6599. {
  6600. "personCode": "149ba",
  6601. "firstName": "Darren",
  6602. "lastName": "Williams",
  6603. "address": {
  6604. "street": "142 N 14th Street",
  6605. "city": "Omaha",
  6606. "state": "NE",
  6607. "zip": "68116",
  6608. "country": "USA"
  6609. },
  6610. "emails": [
  6611. "darren_f_williams@gmail.com",
  6612. "dwillaims@venture.com"
  6613. ]
  6614. },
  6615. {
  6616. "personCode": "ma12",
  6617. "firstName": "Tyler",
  6618. "lastName": "Rediger",
  6619. "address": {
  6620. "street": "435 N 51st Street",
  6621. "city": "Lincoln",
  6622. "state": "NE",
  6623. "zip": "68502",
  6624. "country": "USA"
  6625. },
  6626. "emails": [
  6627. "tred@pubs.com"
  6628. ]
  6629. },
  6630. {
  6631. "personCode": "499c",
  6632. "firstName": "Harry",
  6633. "lastName": "Sonford",
  6634. "address": {
  6635. "street": "1467 Addison Street",
  6636. "city": "Stillwater",
  6637. "state": "OK",
  6638. "zip": "60613",
  6639. "country": "USA"
  6640. },
  6641. "emails": [
  6642. "harrysonford@cubs.com",
  6643. "sonford_harry13@gmail.com"
  6644. ]
  6645. },
  6646. {
  6647. "personCode": "bfab",
  6648. "firstName": "Mathias",
  6649. "lastName": "Hanten",
  6650. "address": {
  6651. "street": "320 West 6th Street",
  6652. "city": "South Sioux city",
  6653. "state": "NE",
  6654. "zip": "68776",
  6655. "country": "USA"
  6656. },
  6657. "emails": [
  6658. "mhanten@gmail.com"
  6659. ]
  6660. },
  6661. {
  6662. "personCode": "aef1",
  6663. "firstName": "Richard",
  6664. "lastName": "Monterroso",
  6665. "address": {
  6666. "street": "1 Wall Street",
  6667. "city": "Indio",
  6668. "state": "CA",
  6669. "zip": "9221-0012",
  6670. "country": "USA"
  6671. },
  6672. "emails": [
  6673. "rmont12@yahoo.com"
  6674. ]
  6675. },
  6676. {
  6677. "personCode": "267a",
  6678. "firstName": "Ryan",
  6679. "lastName": "Enders",
  6680. "address": {
  6681. "street": "1162 West Madison Street",
  6682. "city": "Chicago",
  6683. "state": "IL",
  6684. "zip": "60613",
  6685. "country": "USA"
  6686. },
  6687. "emails": [
  6688. "render@cse.unl.edu",
  6689. "renders32@unl.edu"
  6690. ]
  6691. },
  6692. {
  6693. "personCode": "321na",
  6694. "firstName": "Matthew",
  6695. "lastName": "Lenz",
  6696. "address": {
  6697. "street": "301 Front St W",
  6698. "city": "Toronto",
  6699. "state": "ON",
  6700. "zip": "M5V 2T6",
  6701. "country": "Canada"
  6702. },
  6703. "emails": [
  6704. "jpet@whofan.com"
  6705. ]
  6706. },
  6707. {
  6708. "personCode": "344d",
  6709. "firstName": "Bryan",
  6710. "lastName": "Connor",
  6711. "address": {
  6712. "street": "344 Lincoln Street",
  6713. "city": "New York",
  6714. "state": "NY",
  6715. "zip": "10023",
  6716. "country": "USA"
  6717. },
  6718. "emails": [
  6719. "bconnor@gmail.com",
  6720. "cbryan@aol.com"
  6721. ]
  6722. },
  6723. {
  6724. "personCode": "1svndr",
  6725. "firstName": "Travis",
  6726. "lastName": "McCoy",
  6727. "address": {
  6728. "street": "126-01 Roosevelt Ave",
  6729. "city": "Flushing",
  6730. "state": "NY",
  6731. "zip": "11368",
  6732. "country": "USA"
  6733. },
  6734. "emails": [
  6735. "slyguy@hotmail.com",
  6736. "mccoy@aol.com"
  6737. ]
  6738. },
  6739. {
  6740. "personCode": "adhoc",
  6741. "firstName": "Richard",
  6742. "lastName": "Hammond",
  6743. "address": {
  6744. "street": "1 E 161st St",
  6745. "city": "Bronx",
  6746. "state": "NY",
  6747. "zip": "10451",
  6748. "country": "USA"
  6749. },
  6750. "emails": [
  6751. "rhammond@aol.com"
  6752. ]
  6753. },
  6754. {
  6755. "personCode": "ms42",
  6756. "firstName": "Kordel",
  6757. "lastName": "Smydra",
  6758. "address": {
  6759. "street": "Avery Hall",
  6760. "city": "Lincoln",
  6761. "state": "NE",
  6762. "zip": "68503",
  6763. "country": "USA"
  6764. },
  6765. "emails": [
  6766. "kordel_smydra@baker.com"
  6767. ]
  6768. },
  6769. {
  6770. "personCode": "asn2",
  6771. "firstName": "Matt",
  6772. "lastName": "Smith",
  6773. "address": {
  6774. "street": "333 W 35th St",
  6775. "city": "Chicago",
  6776. "state": "IL",
  6777. "zip": "60616",
  6778. "country": "USA"
  6779. },
  6780. "emails": [
  6781. "msmith@who.com",
  6782. "thedoc@cse.unl.edu"
  6783. ]
  6784. }
  6785. ]
  6786. }
  6787. }
  6788. ::::::::::::::
  6789. ./data/Products.json
  6790. ::::::::::::::
  6791. {
  6792. "products": [ {
  6793. "code": "s42a",
  6794. "name": "Jericho Missile",
  6795. "pricePerUnit": 250000.0
  6796. },
  6797. {
  6798. "code": "ab23",
  6799. "name": "Rockfort Jdisc",
  6800. "pricePerUnit": 124.99
  6801. },
  6802. {
  6803. "code": "fp12",
  6804. "name": "Mandalay Jtone",
  6805. "pricePerUnit": 14.99
  6806. },
  6807. {
  6808. "code": "1239",
  6809. "name": "Rockfort GameBox",
  6810. "pricePerUnit": 499.0
  6811. },
  6812. {
  6813. "code": "90fa",
  6814. "name": "Mandalay Long Distance Service",
  6815. "serviceFee": 1899.0,
  6816. "annualLicenseFee": 17000.0
  6817. },
  6818. {
  6819. "code": "3289",
  6820. "name": "Mandalay-Jtone Training",
  6821. "consultant": {
  6822. "personCode": "aef1",
  6823. "firstName": "Richard",
  6824. "lastName": "Monterroso",
  6825. "address": {
  6826. "street": "1 Wall Street",
  6827. "city": "Indio",
  6828. "state": "CA",
  6829. "zip": "9221-0012",
  6830. "country": "USA"
  6831. },
  6832. "emails": [
  6833. "rmont12@yahoo.com"
  6834. ]
  6835. },
  6836. "hourlyFee": 32.0
  6837. },
  6838. {
  6839. "code": "298K",
  6840. "name": "MServer-Server System Setup and Assistance",
  6841. "consultant": {
  6842. "personCode": "321nd",
  6843. "firstName": "William",
  6844. "lastName": "Enders",
  6845. "address": {
  6846. "street": "1165 West Madison Street",
  6847. "city": "Chicago",
  6848. "state": "IL",
  6849. "zip": "60613",
  6850. "country": "USA"
  6851. },
  6852. "emails": [
  6853. "wenders@doctors.com",
  6854. "dr@who.com"
  6855. ]
  6856. },
  6857. "hourlyFee": 180.0
  6858. },
  6859. {
  6860. "code": "3294",
  6861. "name": "MCloud Data Storage",
  6862. "serviceFee": 40.0,
  6863. "annualLicenseFee": 3000.0
  6864. }
  6865. ]}
  6866.  
  6867. [-] Test Case 3 (case15)
  6868. Expected Output
  6869.  
  6870. Data and output files:
  6871.  
  6872.  
  6873. Customers.dat:
  6874. 7
  6875. C001;C;hsk3r;Gamerwear PC Repair; 724 North 1st Street,Minneapolis,MN,55401,USA
  6876. C002;G;nue78;University of Nebraska-Lincoln;259 Avery Hall,Lincoln,Ne,68588-0115,USA
  6877. C003;G;671gum;City of Seattle; 600 4th Ave. #4,Seattle,WA,98104,USA
  6878. C004;C;701gfk;Johnson and John's Son Computer Repair;1597 NorthWest Drive,Mobile,AL,36602,USA
  6879. C005;C;stl618;Mt Chiliad PC Repair; 1059 South 59th St,Los Angeles,CA,90019,USA
  6880. C006;C;a11r8w;Wayne Industries;1007 Mountain Drive,New York City,NY,13851,USA
  6881. C007;G;mlr891;City of Toronto;100 Queen St W,Toronto,ON,M5H 2N2,Canada
  6882. Persons.dat:
  6883. 10
  6884. 123abc;Smith, Ozzie; 700 Clark Ave, St Louis, MO, 63102, USA; thewizard@cardinals.com
  6885. mlr891;Barneson, John; 333 West Camden Street, Baltimore, MD, 21201, USA;
  6886. a11r8w;Emmerson, Ralph; 401 East Jefferson Street, Phoenix, AZ, 85004, USA;
  6887. hweq51;Tavare,Chris; 115 Federal Street, Pittsburgh, PA, 15212, USA; rogerrabbit@whodunnit.com
  6888. nue78;Richards, James; 2100 Woodward Avenue, Detroit, MI, 48201, USA; james.richards@unl.edu
  6889. hsk3r;Smith,Rickie; 2200 Texas Ave, Houston, TX, 77003, USA; spacebound@nasa.gov
  6890. gqs1582;Fultz,Adam; 9256 S State St, Sandy, UT, 84070, USA; randomtext@stuff.com
  6891. 671gum;Donavon, Landon; 18400 Avalon Boulevard, Carson, CA, 90746, USA; captainamerica@ussoccer.com, goals@mls.com
  6892. 701gfk;Bartholomew, Alfred; 170 Prince's Blvd, Toronto, ON, M6K 3C3, Canada; fakeemail@email.com
  6893. stl618;Palaganas, Brian; 1844 SW Morrison St, Portland, OR, 97205, USA; booseattle@timbers.com, cupchasers@cascadia.com
  6894. Products.dat:
  6895. 5
  6896. a27f;E;Ocho Flux Capacitor;30000.00
  6897. lb92;L;Netservice Web Assist;250.00;700.00
  6898. 23d9;E;Ocho Cassette Storage System;20.00
  6899. vp08;C;Systems Administration Training;123abc;35.00
  6900. me19;L;SafeGuard System Cleanup;0.00;1200.00
  6901. Customers.xml:
  6902. <?xml version="1.0"?>
  6903. <customers>
  6904. <governmentCustomer>
  6905. <customerCode>C003</customerCode>
  6906. <name>City of Seattle</name>
  6907. <address>
  6908. <street>600 4th Ave. #4</street>
  6909. <city>Seattle</city>
  6910. <state>WA</state>
  6911. <zip>98104</zip>
  6912. <country>USA</country>
  6913. </address>
  6914. <primaryContact>
  6915. <personCode>671gum</personCode>
  6916. <firstName>Landon</firstName>
  6917. <lastName>Donavon</lastName>
  6918. <address>
  6919. <street>18400 Avalon Boulevard</street>
  6920. <city>Carson</city>
  6921. <state>CA</state>
  6922. <zip>90746</zip>
  6923. <country>USA</country>
  6924. </address>
  6925. <emails>
  6926. <email> goals@mls.com</email>
  6927. <email> captainamerica@ussoccer.com</email>
  6928. </emails>
  6929. </primaryContact>
  6930. </governmentCustomer>
  6931. <companyCustomer>
  6932. <customerCode>C004</customerCode>
  6933. <name>Johnson and John&apos;s Son Computer Repair</name>
  6934. <address>
  6935. <street>1597 NorthWest Drive</street>
  6936. <city>Mobile</city>
  6937. <state>AL</state>
  6938. <zip>36602</zip>
  6939. <country>USA</country>
  6940. </address>
  6941. <primaryContact>
  6942. <personCode>701gfk</personCode>
  6943. <firstName>Alfred</firstName>
  6944. <lastName>Bartholomew</lastName>
  6945. <address>
  6946. <street>170 Prince&apos;s Blvd</street>
  6947. <city>Toronto</city>
  6948. <state>ON</state>
  6949. <zip>M6K 3C3</zip>
  6950. <country>Canada</country>
  6951. </address>
  6952. <emails>
  6953. <email> fakeemail@email.com</email>
  6954. </emails>
  6955. </primaryContact>
  6956. </companyCustomer>
  6957. <companyCustomer>
  6958. <customerCode>C005</customerCode>
  6959. <name>Mt Chiliad PC Repair</name>
  6960. <address>
  6961. <street>1059 South 59th St</street>
  6962. <city>Los Angeles</city>
  6963. <state>CA</state>
  6964. <zip>90019</zip>
  6965. <country>USA</country>
  6966. </address>
  6967. <primaryContact>
  6968. <personCode>stl618</personCode>
  6969. <firstName>Brian</firstName>
  6970. <lastName>Palaganas</lastName>
  6971. <address>
  6972. <street>1844 SW Morrison St</street>
  6973. <city>Portland</city>
  6974. <state>OR</state>
  6975. <zip>97205</zip>
  6976. <country>USA</country>
  6977. </address>
  6978. <emails>
  6979. <email> booseattle@timbers.com</email>
  6980. <email> cupchasers@cascadia.com</email>
  6981. </emails>
  6982. </primaryContact>
  6983. </companyCustomer>
  6984. <companyCustomer>
  6985. <customerCode>C006</customerCode>
  6986. <name>Wayne Industries</name>
  6987. <address>
  6988. <street>1007 Mountain Drive</street>
  6989. <city>New York City</city>
  6990. <state>NY</state>
  6991. <zip>13851</zip>
  6992. <country>USA</country>
  6993. </address>
  6994. <primaryContact>
  6995. <personCode>a11r8w</personCode>
  6996. <firstName>Ralph</firstName>
  6997. <lastName>Emmerson</lastName>
  6998. <address>
  6999. <street>401 East Jefferson Street</street>
  7000. <city>Phoenix</city>
  7001. <state>AZ</state>
  7002. <zip>85004</zip>
  7003. <country>USA</country>
  7004. </address>
  7005. <emails/>
  7006. </primaryContact>
  7007. </companyCustomer>
  7008. <governmentCustomer>
  7009. <customerCode>C007</customerCode>
  7010. <name>City of Toronto</name>
  7011. <address>
  7012. <street>100 Queen St W</street>
  7013. <city>Toronto</city>
  7014. <state>ON</state>
  7015. <zip>M5H 2N2</zip>
  7016. <country>Canada</country>
  7017. </address>
  7018. <primaryContact>
  7019. <personCode>mlr891</personCode>
  7020. <firstName>John</firstName>
  7021. <lastName>Barneson</lastName>
  7022. <address>
  7023. <street>333 West Camden Street</street>
  7024. <city>Baltimore</city>
  7025. <state>MD</state>
  7026. <zip>21201</zip>
  7027. <country>USA</country>
  7028. </address>
  7029. <emails/>
  7030. </primaryContact>
  7031. </governmentCustomer>
  7032. <governmentCustomer>
  7033. <customerCode>C002</customerCode>
  7034. <name>University of Nebraska-Lincoln</name>
  7035. <address>
  7036. <street>259 Avery Hall</street>
  7037. <city>Lincoln</city>
  7038. <state>Ne</state>
  7039. <zip>68588-0115</zip>
  7040. <country>USA</country>
  7041. </address>
  7042. <primaryContact>
  7043. <personCode>nue78</personCode>
  7044. <firstName>James</firstName>
  7045. <lastName>Richards</lastName>
  7046. <address>
  7047. <street>2100 Woodward Avenue</street>
  7048. <city>Detroit</city>
  7049. <state>MI</state>
  7050. <zip>48201</zip>
  7051. <country>USA</country>
  7052. </address>
  7053. <emails>
  7054. <email> james.richards@unl.edu</email>
  7055. </emails>
  7056. </primaryContact>
  7057. </governmentCustomer>
  7058. <companyCustomer>
  7059. <customerCode>C001</customerCode>
  7060. <name>Gamerwear PC Repair</name>
  7061. <address>
  7062. <street>724 North 1st Street</street>
  7063. <city>Minneapolis</city>
  7064. <state>MN</state>
  7065. <zip>55401</zip>
  7066. <country>USA</country>
  7067. </address>
  7068. <primaryContact>
  7069. <personCode>hsk3r</personCode>
  7070. <firstName>Rickie</firstName>
  7071. <lastName>Smith</lastName>
  7072. <address>
  7073. <street>2200 Texas Ave</street>
  7074. <city>Houston</city>
  7075. <state>TX</state>
  7076. <zip>77003</zip>
  7077. <country>USA</country>
  7078. </address>
  7079. <emails>
  7080. <email> spacebound@nasa.gov</email>
  7081. </emails>
  7082. </primaryContact>
  7083. </companyCustomer>
  7084. </customers>
  7085.  
  7086. Persons.xml:
  7087. <?xml version="1.0"?>
  7088. <persons>
  7089. <person>
  7090. <personCode>mlr891</personCode>
  7091. <firstName>John</firstName>
  7092. <lastName>Barneson</lastName>
  7093. <address>
  7094. <street>333 West Camden Street</street>
  7095. <city>Baltimore</city>
  7096. <state>MD</state>
  7097. <zip>21201</zip>
  7098. <country>USA</country>
  7099. </address>
  7100. <emails/>
  7101. </person>
  7102. <person>
  7103. <personCode>hsk3r</personCode>
  7104. <firstName>Rickie</firstName>
  7105. <lastName>Smith</lastName>
  7106. <address>
  7107. <street>2200 Texas Ave</street>
  7108. <city>Houston</city>
  7109. <state>TX</state>
  7110. <zip>77003</zip>
  7111. <country>USA</country>
  7112. </address>
  7113. <emails>
  7114. <email> spacebound@nasa.gov</email>
  7115. </emails>
  7116. </person>
  7117. <person>
  7118. <personCode>nue78</personCode>
  7119. <firstName>James</firstName>
  7120. <lastName>Richards</lastName>
  7121. <address>
  7122. <street>2100 Woodward Avenue</street>
  7123. <city>Detroit</city>
  7124. <state>MI</state>
  7125. <zip>48201</zip>
  7126. <country>USA</country>
  7127. </address>
  7128. <emails>
  7129. <email> james.richards@unl.edu</email>
  7130. </emails>
  7131. </person>
  7132. <person>
  7133. <personCode>a11r8w</personCode>
  7134. <firstName>Ralph</firstName>
  7135. <lastName>Emmerson</lastName>
  7136. <address>
  7137. <street>401 East Jefferson Street</street>
  7138. <city>Phoenix</city>
  7139. <state>AZ</state>
  7140. <zip>85004</zip>
  7141. <country>USA</country>
  7142. </address>
  7143. <emails/>
  7144. </person>
  7145. <person>
  7146. <personCode>hweq51</personCode>
  7147. <firstName>Chris</firstName>
  7148. <lastName>Tavare</lastName>
  7149. <address>
  7150. <street>115 Federal Street</street>
  7151. <city>Pittsburgh</city>
  7152. <state>PA</state>
  7153. <zip>15212</zip>
  7154. <country>USA</country>
  7155. </address>
  7156. <emails>
  7157. <email> rogerrabbit@whodunnit.com</email>
  7158. </emails>
  7159. </person>
  7160. <person>
  7161. <personCode>701gfk</personCode>
  7162. <firstName>Alfred</firstName>
  7163. <lastName>Bartholomew</lastName>
  7164. <address>
  7165. <street>170 Prince&apos;s Blvd</street>
  7166. <city>Toronto</city>
  7167. <state>ON</state>
  7168. <zip>M6K 3C3</zip>
  7169. <country>Canada</country>
  7170. </address>
  7171. <emails>
  7172. <email> fakeemail@email.com</email>
  7173. </emails>
  7174. </person>
  7175. <person>
  7176. <personCode>stl618</personCode>
  7177. <firstName>Brian</firstName>
  7178. <lastName>Palaganas</lastName>
  7179. <address>
  7180. <street>1844 SW Morrison St</street>
  7181. <city>Portland</city>
  7182. <state>OR</state>
  7183. <zip>97205</zip>
  7184. <country>USA</country>
  7185. </address>
  7186. <emails>
  7187. <email> booseattle@timbers.com</email>
  7188. <email> cupchasers@cascadia.com</email>
  7189. </emails>
  7190. </person>
  7191. <person>
  7192. <personCode>671gum</personCode>
  7193. <firstName>Landon</firstName>
  7194. <lastName>Donavon</lastName>
  7195. <address>
  7196. <street>18400 Avalon Boulevard</street>
  7197. <city>Carson</city>
  7198. <state>CA</state>
  7199. <zip>90746</zip>
  7200. <country>USA</country>
  7201. </address>
  7202. <emails>
  7203. <email> goals@mls.com</email>
  7204. <email> captainamerica@ussoccer.com</email>
  7205. </emails>
  7206. </person>
  7207. <person>
  7208. <personCode>gqs1582</personCode>
  7209. <firstName>Adam</firstName>
  7210. <lastName>Fultz</lastName>
  7211. <address>
  7212. <street>9256 S State St</street>
  7213. <city>Sandy</city>
  7214. <state>UT</state>
  7215. <zip>84070</zip>
  7216. <country>USA</country>
  7217. </address>
  7218. <emails>
  7219. <email> randomtext@stuff.com</email>
  7220. </emails>
  7221. </person>
  7222. <person>
  7223. <personCode>123abc</personCode>
  7224. <firstName>Ozzie</firstName>
  7225. <lastName>Smith</lastName>
  7226. <address>
  7227. <street>700 Clark Ave</street>
  7228. <city>St Louis</city>
  7229. <state>MO</state>
  7230. <zip>63102</zip>
  7231. <country>USA</country>
  7232. </address>
  7233. <emails>
  7234. <email> thewizard@cardinals.com</email>
  7235. </emails>
  7236. </person>
  7237. </persons>
  7238.  
  7239. Products.xml:
  7240. <?xml version="1.0"?>
  7241. <products>
  7242. <license>
  7243. <productCode>me19</productCode>
  7244. <name>SafeGuard System Cleanup</name>
  7245. <fee>0.0</fee>
  7246. <annualCost>1200.0</annualCost>
  7247. </license>
  7248. <equipment>
  7249. <productCode>23d9</productCode>
  7250. <name>Ocho Cassette Storage System</name>
  7251. <pricePerUnit>20.0</pricePerUnit>
  7252. </equipment>
  7253. <consultation>
  7254. <productCode>vp08</productCode>
  7255. <name>Systems Administration Training</name>
  7256. <consultant>
  7257. <personCode>123abc</personCode>
  7258. <firstName>Ozzie</firstName>
  7259. <lastName>Smith</lastName>
  7260. <address>
  7261. <street>700 Clark Ave</street>
  7262. <city>St Louis</city>
  7263. <state>MO</state>
  7264. <zip>63102</zip>
  7265. <country>USA</country>
  7266. </address>
  7267. <emails>
  7268. <email> thewizard@cardinals.com</email>
  7269. </emails>
  7270. </consultant>
  7271. <pricePerHour>35.0</pricePerHour>
  7272. </consultation>
  7273. <license>
  7274. <productCode>lb92</productCode>
  7275. <name>Netservice Web Assist</name>
  7276. <fee>250.0</fee>
  7277. <annualCost>700.0</annualCost>
  7278. </license>
  7279. <equipment>
  7280. <productCode>a27f</productCode>
  7281. <name>Ocho Flux Capacitor</name>
  7282. <pricePerUnit>30000.0</pricePerUnit>
  7283. </equipment>
  7284. </products>
  7285.  
  7286. Customers.json:
  7287. {
  7288. "customers": [
  7289. {
  7290. "customerCode": "C003",
  7291. "name": "City of Seattle",
  7292. "address": {
  7293. "street": "600 4th Ave. #4",
  7294. "city": "Seattle",
  7295. "state": "WA",
  7296. "zip": "98104",
  7297. "country": "USA"
  7298. },
  7299. "primaryContact": {
  7300. "personCode": "671gum",
  7301. "firstName": "Landon",
  7302. "lastName": "Donavon",
  7303. "address": {
  7304. "street": "18400 Avalon Boulevard",
  7305. "city": "Carson",
  7306. "state": "CA",
  7307. "zip": "90746",
  7308. "country": "USA"
  7309. },
  7310. "emails": [
  7311. " goals@mls.com",
  7312. " captainamerica@ussoccer.com"
  7313. ]
  7314. }
  7315. },
  7316. {
  7317. "customerCode": "C004",
  7318. "name": "Johnson and John\u0027s Son Computer Repair",
  7319. "address": {
  7320. "street": "1597 NorthWest Drive",
  7321. "city": "Mobile",
  7322. "state": "AL",
  7323. "zip": "36602",
  7324. "country": "USA"
  7325. },
  7326. "primaryContact": {
  7327. "personCode": "701gfk",
  7328. "firstName": "Alfred",
  7329. "lastName": "Bartholomew",
  7330. "address": {
  7331. "street": "170 Prince\u0027s Blvd",
  7332. "city": "Toronto",
  7333. "state": "ON",
  7334. "zip": "M6K 3C3",
  7335. "country": "Canada"
  7336. },
  7337. "emails": [
  7338. " fakeemail@email.com"
  7339. ]
  7340. }
  7341. },
  7342. {
  7343. "customerCode": "C005",
  7344. "name": "Mt Chiliad PC Repair",
  7345. "address": {
  7346. "street": "1059 South 59th St",
  7347. "city": "Los Angeles",
  7348. "state": "CA",
  7349. "zip": "90019",
  7350. "country": "USA"
  7351. },
  7352. "primaryContact": {
  7353. "personCode": "stl618",
  7354. "firstName": "Brian",
  7355. "lastName": "Palaganas",
  7356. "address": {
  7357. "street": "1844 SW Morrison St",
  7358. "city": "Portland",
  7359. "state": "OR",
  7360. "zip": "97205",
  7361. "country": "USA"
  7362. },
  7363. "emails": [
  7364. " booseattle@timbers.com",
  7365. " cupchasers@cascadia.com"
  7366. ]
  7367. }
  7368. },
  7369. {
  7370. "customerCode": "C006",
  7371. "name": "Wayne Industries",
  7372. "address": {
  7373. "street": "1007 Mountain Drive",
  7374. "city": "New York City",
  7375. "state": "NY",
  7376. "zip": "13851",
  7377. "country": "USA"
  7378. },
  7379. "primaryContact": {
  7380. "personCode": "a11r8w",
  7381. "firstName": "Ralph",
  7382. "lastName": "Emmerson",
  7383. "address": {
  7384. "street": "401 East Jefferson Street",
  7385. "city": "Phoenix",
  7386. "state": "AZ",
  7387. "zip": "85004",
  7388. "country": "USA"
  7389. },
  7390. "emails": []
  7391. }
  7392. },
  7393. {
  7394. "customerCode": "C007",
  7395. "name": "City of Toronto",
  7396. "address": {
  7397. "street": "100 Queen St W",
  7398. "city": "Toronto",
  7399. "state": "ON",
  7400. "zip": "M5H 2N2",
  7401. "country": "Canada"
  7402. },
  7403. "primaryContact": {
  7404. "personCode": "mlr891",
  7405. "firstName": "John",
  7406. "lastName": "Barneson",
  7407. "address": {
  7408. "street": "333 West Camden Street",
  7409. "city": "Baltimore",
  7410. "state": "MD",
  7411. "zip": "21201",
  7412. "country": "USA"
  7413. },
  7414. "emails": []
  7415. }
  7416. },
  7417. {
  7418. "customerCode": "C002",
  7419. "name": "University of Nebraska-Lincoln",
  7420. "address": {
  7421. "street": "259 Avery Hall",
  7422. "city": "Lincoln",
  7423. "state": "Ne",
  7424. "zip": "68588-0115",
  7425. "country": "USA"
  7426. },
  7427. "primaryContact": {
  7428. "personCode": "nue78",
  7429. "firstName": "James",
  7430. "lastName": "Richards",
  7431. "address": {
  7432. "street": "2100 Woodward Avenue",
  7433. "city": "Detroit",
  7434. "state": "MI",
  7435. "zip": "48201",
  7436. "country": "USA"
  7437. },
  7438. "emails": [
  7439. " james.richards@unl.edu"
  7440. ]
  7441. }
  7442. },
  7443. {
  7444. "customerCode": "C001",
  7445. "name": "Gamerwear PC Repair",
  7446. "address": {
  7447. "street": "724 North 1st Street",
  7448. "city": "Minneapolis",
  7449. "state": "MN",
  7450. "zip": "55401",
  7451. "country": "USA"
  7452. },
  7453. "primaryContact": {
  7454. "personCode": "hsk3r",
  7455. "firstName": "Rickie",
  7456. "lastName": "Smith",
  7457. "address": {
  7458. "street": "2200 Texas Ave",
  7459. "city": "Houston",
  7460. "state": "TX",
  7461. "zip": "77003",
  7462. "country": "USA"
  7463. },
  7464. "emails": [
  7465. " spacebound@nasa.gov"
  7466. ]
  7467. }
  7468. }
  7469. ]}
  7470.  
  7471. Persons.json:
  7472. {
  7473. "persons": [
  7474. {
  7475. "personCode": "mlr891",
  7476. "firstName": "John",
  7477. "lastName": "Barneson",
  7478. "address": {
  7479. "street": "333 West Camden Street",
  7480. "city": "Baltimore",
  7481. "state": "MD",
  7482. "zip": "21201",
  7483. "country": "USA"
  7484. },
  7485. "emails": []
  7486. },
  7487. {
  7488. "personCode": "hsk3r",
  7489. "firstName": "Rickie",
  7490. "lastName": "Smith",
  7491. "address": {
  7492. "street": "2200 Texas Ave",
  7493. "city": "Houston",
  7494. "state": "TX",
  7495. "zip": "77003",
  7496. "country": "USA"
  7497. },
  7498. "emails": [
  7499. " spacebound@nasa.gov"
  7500. ]
  7501. },
  7502. {
  7503. "personCode": "nue78",
  7504. "firstName": "James",
  7505. "lastName": "Richards",
  7506. "address": {
  7507. "street": "2100 Woodward Avenue",
  7508. "city": "Detroit",
  7509. "state": "MI",
  7510. "zip": "48201",
  7511. "country": "USA"
  7512. },
  7513. "emails": [
  7514. " james.richards@unl.edu"
  7515. ]
  7516. },
  7517. {
  7518. "personCode": "a11r8w",
  7519. "firstName": "Ralph",
  7520. "lastName": "Emmerson",
  7521. "address": {
  7522. "street": "401 East Jefferson Street",
  7523. "city": "Phoenix",
  7524. "state": "AZ",
  7525. "zip": "85004",
  7526. "country": "USA"
  7527. },
  7528. "emails": []
  7529. },
  7530. {
  7531. "personCode": "hweq51",
  7532. "firstName": "Chris",
  7533. "lastName": "Tavare",
  7534. "address": {
  7535. "street": "115 Federal Street",
  7536. "city": "Pittsburgh",
  7537. "state": "PA",
  7538. "zip": "15212",
  7539. "country": "USA"
  7540. },
  7541. "emails": [
  7542. " rogerrabbit@whodunnit.com"
  7543. ]
  7544. },
  7545. {
  7546. "personCode": "701gfk",
  7547. "firstName": "Alfred",
  7548. "lastName": "Bartholomew",
  7549. "address": {
  7550. "street": "170 Prince\u0027s Blvd",
  7551. "city": "Toronto",
  7552. "state": "ON",
  7553. "zip": "M6K 3C3",
  7554. "country": "Canada"
  7555. },
  7556. "emails": [
  7557. " fakeemail@email.com"
  7558. ]
  7559. },
  7560. {
  7561. "personCode": "stl618",
  7562. "firstName": "Brian",
  7563. "lastName": "Palaganas",
  7564. "address": {
  7565. "street": "1844 SW Morrison St",
  7566. "city": "Portland",
  7567. "state": "OR",
  7568. "zip": "97205",
  7569. "country": "USA"
  7570. },
  7571. "emails": [
  7572. " booseattle@timbers.com",
  7573. " cupchasers@cascadia.com"
  7574. ]
  7575. },
  7576. {
  7577. "personCode": "671gum",
  7578. "firstName": "Landon",
  7579. "lastName": "Donavon",
  7580. "address": {
  7581. "street": "18400 Avalon Boulevard",
  7582. "city": "Carson",
  7583. "state": "CA",
  7584. "zip": "90746",
  7585. "country": "USA"
  7586. },
  7587. "emails": [
  7588. " goals@mls.com",
  7589. " captainamerica@ussoccer.com"
  7590. ]
  7591. },
  7592. {
  7593. "personCode": "gqs1582",
  7594. "firstName": "Adam",
  7595. "lastName": "Fultz",
  7596. "address": {
  7597. "street": "9256 S State St",
  7598. "city": "Sandy",
  7599. "state": "UT",
  7600. "zip": "84070",
  7601. "country": "USA"
  7602. },
  7603. "emails": [
  7604. " randomtext@stuff.com"
  7605. ]
  7606. },
  7607. {
  7608. "personCode": "123abc",
  7609. "firstName": "Ozzie",
  7610. "lastName": "Smith",
  7611. "address": {
  7612. "street": "700 Clark Ave",
  7613. "city": "St Louis",
  7614. "state": "MO",
  7615. "zip": "63102",
  7616. "country": "USA"
  7617. },
  7618. "emails": [
  7619. " thewizard@cardinals.com"
  7620. ]
  7621. }
  7622. ]}
  7623.  
  7624. Products.json:
  7625. {
  7626. "products": [
  7627. {
  7628. "fee": 0.0,
  7629. "annualCost": 1200.0,
  7630. "productCode": "me19",
  7631. "name": "SafeGuard System Cleanup"
  7632. },
  7633. {
  7634. "pricePerUnit": 20.0,
  7635. "productCode": "23d9",
  7636. "name": "Ocho Cassette Storage System"
  7637. },
  7638. {
  7639. "consultant": {
  7640. "personCode": "123abc",
  7641. "firstName": "Ozzie",
  7642. "lastName": "Smith",
  7643. "address": {
  7644. "street": "700 Clark Ave",
  7645. "city": "St Louis",
  7646. "state": "MO",
  7647. "zip": "63102",
  7648. "country": "USA"
  7649. },
  7650. "emails": [
  7651. " thewizard@cardinals.com"
  7652. ]
  7653. },
  7654. "pricePerHour": 35.0,
  7655. "productCode": "vp08",
  7656. "name": "Systems Administration Training"
  7657. },
  7658. {
  7659. "fee": 250.0,
  7660. "annualCost": 700.0,
  7661. "productCode": "lb92",
  7662. "name": "Netservice Web Assist"
  7663. },
  7664. {
  7665. "pricePerUnit": 30000.0,
  7666. "productCode": "a27f",
  7667. "name": "Ocho Flux Capacitor"
  7668. }
  7669. ]}
  7670.  
  7671. Program Output
  7672.  
  7673. Customer [customerCode=C001, type=C, companyName=Gamerwear PC Repair, address=Address [street=724 North 1st Street, city=Minneapolis, state=MN, zip=55401, country=USA]]
  7674. Customer [customerCode=C002, type=G, companyName=University of Nebraska-Lincoln, address=Address [street=259 Avery Hall, city=Lincoln, state=Ne, zip=68588-0115, country=USA]]
  7675. Customer [customerCode=C003, type=G, companyName=City of Seattle, address=Address [street=600 4th Ave. #4, city=Seattle, state=WA, zip=98104, country=USA]]
  7676. Customer [customerCode=C004, type=C, companyName=Johnson and John's Son Computer Repair, address=Address [street=1597 NorthWest Drive, city=Mobile, state=AL, zip=36602, country=USA]]
  7677. Customer [customerCode=C005, type=C, companyName=Mt Chiliad PC Repair, address=Address [street=1059 South 59th St, city=Los Angeles, state=CA, zip=90019, country=USA]]
  7678. Customer [customerCode=C006, type=C, companyName=Wayne Industries, address=Address [street=1007 Mountain Drive, city=New York City, state=NY, zip=13851, country=USA]]
  7679. Customer [customerCode=C007, type=G, companyName=City of Toronto, address=Address [street=100 Queen St W, city=Toronto, state=ON, zip=M5H 2N2, country=Canada]]
  7680. Product [code=a27f, type=E, name=Ocho Flux Capacitor] Equipment [pricePerUnit=30000.0]
  7681. Product [code=lb92, type=L, name=Netservice Web Assist] License [serviceFee=250.0, annualLicenseFee=700.0]
  7682. Product [code=23d9, type=E, name=Ocho Cassette Storage System] Equipment [pricePerUnit=20.0]
  7683. Product [code=vp08, type=C, name=Systems Administration Training] Consultation [consultant=Person [personCode=123abc, firstName=Ozzie, lastName=Smith, address=Address [street=700 Clark Ave, city=St Louis, state=MO, zip=63102, country=USA], emails=[ thewizard@cardinals.com]], hourlyFee=35.0]
  7684. Product [code=me19, type=L, name=SafeGuard System Cleanup] License [serviceFee=0.0, annualLicenseFee=1200.0]
  7685. ::::::::::::::
  7686. ./data/Customers.xml
  7687. ::::::::::::::
  7688. <customers>
  7689. <companyCustomer>
  7690. <customerCode>C001</customerCode>
  7691. <companyName>Gamerwear PC Repair</companyName>
  7692. <address>
  7693. <street>724 North 1st Street</street>
  7694. <city>Minneapolis</city>
  7695. <state>MN</state>
  7696. <zip>55401</zip>
  7697. <country>USA</country>
  7698. </address>
  7699. </companyCustomer>
  7700. <governmentCustomer>
  7701. <customerCode>C002</customerCode>
  7702. <companyName>University of Nebraska-Lincoln</companyName>
  7703. <address>
  7704. <street>259 Avery Hall</street>
  7705. <city>Lincoln</city>
  7706. <state>Ne</state>
  7707. <zip>68588-0115</zip>
  7708. <country>USA</country>
  7709. </address>
  7710. </governmentCustomer>
  7711. <governmentCustomer>
  7712. <customerCode>C003</customerCode>
  7713. <companyName>City of Seattle</companyName>
  7714. <address>
  7715. <street>600 4th Ave. #4</street>
  7716. <city>Seattle</city>
  7717. <state>WA</state>
  7718. <zip>98104</zip>
  7719. <country>USA</country>
  7720. </address>
  7721. </governmentCustomer>
  7722. <companyCustomer>
  7723. <customerCode>C004</customerCode>
  7724. <companyName>Johnson and John&apos;s Son Computer Repair</companyName>
  7725. <address>
  7726. <street>1597 NorthWest Drive</street>
  7727. <city>Mobile</city>
  7728. <state>AL</state>
  7729. <zip>36602</zip>
  7730. <country>USA</country>
  7731. </address>
  7732. </companyCustomer>
  7733. <companyCustomer>
  7734. <customerCode>C005</customerCode>
  7735. <companyName>Mt Chiliad PC Repair</companyName>
  7736. <address>
  7737. <street>1059 South 59th St</street>
  7738. <city>Los Angeles</city>
  7739. <state>CA</state>
  7740. <zip>90019</zip>
  7741. <country>USA</country>
  7742. </address>
  7743. </companyCustomer>
  7744. <companyCustomer>
  7745. <customerCode>C006</customerCode>
  7746. <companyName>Wayne Industries</companyName>
  7747. <address>
  7748. <street>1007 Mountain Drive</street>
  7749. <city>New York City</city>
  7750. <state>NY</state>
  7751. <zip>13851</zip>
  7752. <country>USA</country>
  7753. </address>
  7754. </companyCustomer>
  7755. <governmentCustomer>
  7756. <customerCode>C007</customerCode>
  7757. <companyName>City of Toronto</companyName>
  7758. <address>
  7759. <street>100 Queen St W</street>
  7760. <city>Toronto</city>
  7761. <state>ON</state>
  7762. <zip>M5H 2N2</zip>
  7763. <country>Canada</country>
  7764. </address>
  7765. </governmentCustomer>
  7766. </customers>::::::::::::::
  7767. ./data/Persons.xml
  7768. ::::::::::::::
  7769. <persons>
  7770. <person>
  7771. <personCode>123abc</personCode>
  7772. <firstName>Ozzie</firstName>
  7773. <lastName>Smith</lastName>
  7774. <address>
  7775. <street>700 Clark Ave</street>
  7776. <city>St Louis</city>
  7777. <state>MO</state>
  7778. <zip>63102</zip>
  7779. <country>USA</country>
  7780. </address>
  7781. <emails>
  7782. <email> thewizard@cardinals.com</email>
  7783. </emails>
  7784. </person>
  7785. <person>
  7786. <personCode>mlr891</personCode>
  7787. <firstName>John</firstName>
  7788. <lastName>Barneson</lastName>
  7789. <address>
  7790. <street>333 West Camden Street</street>
  7791. <city>Baltimore</city>
  7792. <state>MD</state>
  7793. <zip>21201</zip>
  7794. <country>USA</country>
  7795. </address>
  7796. </person>
  7797. <person>
  7798. <personCode>a11r8w</personCode>
  7799. <firstName>Ralph</firstName>
  7800. <lastName>Emmerson</lastName>
  7801. <address>
  7802. <street>401 East Jefferson Street</street>
  7803. <city>Phoenix</city>
  7804. <state>AZ</state>
  7805. <zip>85004</zip>
  7806. <country>USA</country>
  7807. </address>
  7808. </person>
  7809. <person>
  7810. <personCode>hweq51</personCode>
  7811. <firstName>Chris</firstName>
  7812. <lastName>Tavare</lastName>
  7813. <address>
  7814. <street>115 Federal Street</street>
  7815. <city>Pittsburgh</city>
  7816. <state>PA</state>
  7817. <zip>15212</zip>
  7818. <country>USA</country>
  7819. </address>
  7820. <emails>
  7821. <email> rogerrabbit@whodunnit.com</email>
  7822. </emails>
  7823. </person>
  7824. <person>
  7825. <personCode>nue78</personCode>
  7826. <firstName>James</firstName>
  7827. <lastName>Richards</lastName>
  7828. <address>
  7829. <street>2100 Woodward Avenue</street>
  7830. <city>Detroit</city>
  7831. <state>MI</state>
  7832. <zip>48201</zip>
  7833. <country>USA</country>
  7834. </address>
  7835. <emails>
  7836. <email> james.richards@unl.edu</email>
  7837. </emails>
  7838. </person>
  7839. <person>
  7840. <personCode>hsk3r</personCode>
  7841. <firstName>Rickie</firstName>
  7842. <lastName>Smith</lastName>
  7843. <address>
  7844. <street>2200 Texas Ave</street>
  7845. <city>Houston</city>
  7846. <state>TX</state>
  7847. <zip>77003</zip>
  7848. <country>USA</country>
  7849. </address>
  7850. <emails>
  7851. <email> spacebound@nasa.gov</email>
  7852. </emails>
  7853. </person>
  7854. <person>
  7855. <personCode>gqs1582</personCode>
  7856. <firstName>Adam</firstName>
  7857. <lastName>Fultz</lastName>
  7858. <address>
  7859. <street>9256 S State St</street>
  7860. <city>Sandy</city>
  7861. <state>UT</state>
  7862. <zip>84070</zip>
  7863. <country>USA</country>
  7864. </address>
  7865. <emails>
  7866. <email> randomtext@stuff.com</email>
  7867. </emails>
  7868. </person>
  7869. <person>
  7870. <personCode>671gum</personCode>
  7871. <firstName>Landon</firstName>
  7872. <lastName>Donavon</lastName>
  7873. <address>
  7874. <street>18400 Avalon Boulevard</street>
  7875. <city>Carson</city>
  7876. <state>CA</state>
  7877. <zip>90746</zip>
  7878. <country>USA</country>
  7879. </address>
  7880. <emails>
  7881. <email> captainamerica@ussoccer.com</email>
  7882. <email> goals@mls.com</email>
  7883. </emails>
  7884. </person>
  7885. <person>
  7886. <personCode>701gfk</personCode>
  7887. <firstName>Alfred</firstName>
  7888. <lastName>Bartholomew</lastName>
  7889. <address>
  7890. <street>170 Prince&apos;s Blvd</street>
  7891. <city>Toronto</city>
  7892. <state>ON</state>
  7893. <zip>M6K 3C3</zip>
  7894. <country>Canada</country>
  7895. </address>
  7896. <emails>
  7897. <email> fakeemail@email.com</email>
  7898. </emails>
  7899. </person>
  7900. <person>
  7901. <personCode>stl618</personCode>
  7902. <firstName>Brian</firstName>
  7903. <lastName>Palaganas</lastName>
  7904. <address>
  7905. <street>1844 SW Morrison St</street>
  7906. <city>Portland</city>
  7907. <state>OR</state>
  7908. <zip>97205</zip>
  7909. <country>USA</country>
  7910. </address>
  7911. <emails>
  7912. <email> booseattle@timbers.com</email>
  7913. <email> cupchasers@cascadia.com</email>
  7914. </emails>
  7915. </person>
  7916. </persons>::::::::::::::
  7917. ./data/Products.xml
  7918. ::::::::::::::
  7919. <products>
  7920. <equipment>
  7921. <productCode>a27f</productCode>
  7922. <name>Ocho Flux Capacitor</name>
  7923. <pricePerUnit>30000.0</pricePerUnit>
  7924. </equipment>
  7925. <license>
  7926. <productCode>lb92</productCode>
  7927. <name>Netservice Web Assist</name>
  7928. <fee>250.0</fee>
  7929. <annualCost>700.0</annualCost>
  7930. </license>
  7931. <equipment>
  7932. <productCode>23d9</productCode>
  7933. <name>Ocho Cassette Storage System</name>
  7934. <pricePerUnit>20.0</pricePerUnit>
  7935. </equipment>
  7936. <consultation>
  7937. <productCode>vp08</productCode>
  7938. <name>Systems Administration Training</name>
  7939. <consultant>
  7940. <personCode>123abc</personCode>
  7941. <firstName>Ozzie</firstName>
  7942. <lastName>Smith</lastName>
  7943. <address>
  7944. <street>700 Clark Ave</street>
  7945. <city>St Louis</city>
  7946. <state>MO</state>
  7947. <zip>63102</zip>
  7948. <country>USA</country>
  7949. </address>
  7950. <emails>
  7951. <string> thewizard@cardinals.com</string>
  7952. </emails>
  7953. </consultant>
  7954. <pricePerHour>35.0</pricePerHour>
  7955. </consultation>
  7956. <license>
  7957. <productCode>me19</productCode>
  7958. <name>SafeGuard System Cleanup</name>
  7959. <fee>0.0</fee>
  7960. <annualCost>1200.0</annualCost>
  7961. </license>
  7962. </products>
  7963. ::::::::::::::
  7964. ./data/Customers.json
  7965. ::::::::::::::
  7966. <customers>
  7967. <companyCustomer>
  7968. <customerCode>C001</customerCode>
  7969. <companyName>Gamerwear PC Repair</companyName>
  7970. <address>
  7971. <street>724 North 1st Street</street>
  7972. <city>Minneapolis</city>
  7973. <state>MN</state>
  7974. <zip>55401</zip>
  7975. <country>USA</country>
  7976. </address>
  7977. </companyCustomer>
  7978. <governmentCustomer>
  7979. <customerCode>C002</customerCode>
  7980. <companyName>University of Nebraska-Lincoln</companyName>
  7981. <address>
  7982. <street>259 Avery Hall</street>
  7983. <city>Lincoln</city>
  7984. <state>Ne</state>
  7985. <zip>68588-0115</zip>
  7986. <country>USA</country>
  7987. </address>
  7988. </governmentCustomer>
  7989. <governmentCustomer>
  7990. <customerCode>C003</customerCode>
  7991. <companyName>City of Seattle</companyName>
  7992. <address>
  7993. <street>600 4th Ave. #4</street>
  7994. <city>Seattle</city>
  7995. <state>WA</state>
  7996. <zip>98104</zip>
  7997. <country>USA</country>
  7998. </address>
  7999. </governmentCustomer>
  8000. <companyCustomer>
  8001. <customerCode>C004</customerCode>
  8002. <companyName>Johnson and John&apos;s Son Computer Repair</companyName>
  8003. <address>
  8004. <street>1597 NorthWest Drive</street>
  8005. <city>Mobile</city>
  8006. <state>AL</state>
  8007. <zip>36602</zip>
  8008. <country>USA</country>
  8009. </address>
  8010. </companyCustomer>
  8011. <companyCustomer>
  8012. <customerCode>C005</customerCode>
  8013. <companyName>Mt Chiliad PC Repair</companyName>
  8014. <address>
  8015. <street>1059 South 59th St</street>
  8016. <city>Los Angeles</city>
  8017. <state>CA</state>
  8018. <zip>90019</zip>
  8019. <country>USA</country>
  8020. </address>
  8021. </companyCustomer>
  8022. <companyCustomer>
  8023. <customerCode>C006</customerCode>
  8024. <companyName>Wayne Industries</companyName>
  8025. <address>
  8026. <street>1007 Mountain Drive</street>
  8027. <city>New York City</city>
  8028. <state>NY</state>
  8029. <zip>13851</zip>
  8030. <country>USA</country>
  8031. </address>
  8032. </companyCustomer>
  8033. <governmentCustomer>
  8034. <customerCode>C007</customerCode>
  8035. <companyName>City of Toronto</companyName>
  8036. <address>
  8037. <street>100 Queen St W</street>
  8038. <city>Toronto</city>
  8039. <state>ON</state>
  8040. <zip>M5H 2N2</zip>
  8041. <country>Canada</country>
  8042. </address>
  8043. </governmentCustomer>
  8044. </customers>::::::::::::::
  8045. ./data/Persons.json
  8046. ::::::::::::::
  8047. {
  8048. "persons": {
  8049. "person": [
  8050. {
  8051. "personCode": "123abc",
  8052. "firstName": "Ozzie",
  8053. "lastName": "Smith",
  8054. "address": {
  8055. "street": "700 Clark Ave",
  8056. "city": "St Louis",
  8057. "state": "MO",
  8058. "zip": "63102",
  8059. "country": "USA"
  8060. },
  8061. "emails": [
  8062. " thewizard@cardinals.com"
  8063. ]
  8064. },
  8065. {
  8066. "personCode": "mlr891",
  8067. "firstName": "John",
  8068. "lastName": "Barneson",
  8069. "address": {
  8070. "street": "333 West Camden Street",
  8071. "city": "Baltimore",
  8072. "state": "MD",
  8073. "zip": "21201",
  8074. "country": "USA"
  8075. }
  8076. },
  8077. {
  8078. "personCode": "a11r8w",
  8079. "firstName": "Ralph",
  8080. "lastName": "Emmerson",
  8081. "address": {
  8082. "street": "401 East Jefferson Street",
  8083. "city": "Phoenix",
  8084. "state": "AZ",
  8085. "zip": "85004",
  8086. "country": "USA"
  8087. }
  8088. },
  8089. {
  8090. "personCode": "hweq51",
  8091. "firstName": "Chris",
  8092. "lastName": "Tavare",
  8093. "address": {
  8094. "street": "115 Federal Street",
  8095. "city": "Pittsburgh",
  8096. "state": "PA",
  8097. "zip": "15212",
  8098. "country": "USA"
  8099. },
  8100. "emails": [
  8101. " rogerrabbit@whodunnit.com"
  8102. ]
  8103. },
  8104. {
  8105. "personCode": "nue78",
  8106. "firstName": "James",
  8107. "lastName": "Richards",
  8108. "address": {
  8109. "street": "2100 Woodward Avenue",
  8110. "city": "Detroit",
  8111. "state": "MI",
  8112. "zip": "48201",
  8113. "country": "USA"
  8114. },
  8115. "emails": [
  8116. " james.richards@unl.edu"
  8117. ]
  8118. },
  8119. {
  8120. "personCode": "hsk3r",
  8121. "firstName": "Rickie",
  8122. "lastName": "Smith",
  8123. "address": {
  8124. "street": "2200 Texas Ave",
  8125. "city": "Houston",
  8126. "state": "TX",
  8127. "zip": "77003",
  8128. "country": "USA"
  8129. },
  8130. "emails": [
  8131. " spacebound@nasa.gov"
  8132. ]
  8133. },
  8134. {
  8135. "personCode": "gqs1582",
  8136. "firstName": "Adam",
  8137. "lastName": "Fultz",
  8138. "address": {
  8139. "street": "9256 S State St",
  8140. "city": "Sandy",
  8141. "state": "UT",
  8142. "zip": "84070",
  8143. "country": "USA"
  8144. },
  8145. "emails": [
  8146. " randomtext@stuff.com"
  8147. ]
  8148. },
  8149. {
  8150. "personCode": "671gum",
  8151. "firstName": "Landon",
  8152. "lastName": "Donavon",
  8153. "address": {
  8154. "street": "18400 Avalon Boulevard",
  8155. "city": "Carson",
  8156. "state": "CA",
  8157. "zip": "90746",
  8158. "country": "USA"
  8159. },
  8160. "emails": [
  8161. " captainamerica@ussoccer.com",
  8162. " goals@mls.com"
  8163. ]
  8164. },
  8165. {
  8166. "personCode": "701gfk",
  8167. "firstName": "Alfred",
  8168. "lastName": "Bartholomew",
  8169. "address": {
  8170. "street": "170 Prince's Blvd",
  8171. "city": "Toronto",
  8172. "state": "ON",
  8173. "zip": "M6K 3C3",
  8174. "country": "Canada"
  8175. },
  8176. "emails": [
  8177. " fakeemail@email.com"
  8178. ]
  8179. },
  8180. {
  8181. "personCode": "stl618",
  8182. "firstName": "Brian",
  8183. "lastName": "Palaganas",
  8184. "address": {
  8185. "street": "1844 SW Morrison St",
  8186. "city": "Portland",
  8187. "state": "OR",
  8188. "zip": "97205",
  8189. "country": "USA"
  8190. },
  8191. "emails": [
  8192. " booseattle@timbers.com",
  8193. " cupchasers@cascadia.com"
  8194. ]
  8195. }
  8196. ]
  8197. }
  8198. }
  8199. ::::::::::::::
  8200. ./data/Products.json
  8201. ::::::::::::::
  8202. {
  8203. "products": [ {
  8204. "code": "a27f",
  8205. "name": "Ocho Flux Capacitor",
  8206. "pricePerUnit": 30000.0
  8207. },
  8208. {
  8209. "code": "lb92",
  8210. "name": "Netservice Web Assist",
  8211. "serviceFee": 250.0,
  8212. "annualLicenseFee": 700.0
  8213. },
  8214. {
  8215. "code": "23d9",
  8216. "name": "Ocho Cassette Storage System",
  8217. "pricePerUnit": 20.0
  8218. },
  8219. {
  8220. "code": "vp08",
  8221. "name": "Systems Administration Training",
  8222. "consultant": {
  8223. "personCode": "123abc",
  8224. "firstName": "Ozzie",
  8225. "lastName": "Smith",
  8226. "address": {
  8227. "street": "700 Clark Ave",
  8228. "city": "St Louis",
  8229. "state": "MO",
  8230. "zip": "63102",
  8231. "country": "USA"
  8232. },
  8233. "emails": [
  8234. " thewizard@cardinals.com"
  8235. ]
  8236. },
  8237. "hourlyFee": 35.0
  8238. },
  8239. {
  8240. "code": "me19",
  8241. "name": "SafeGuard System Cleanup",
  8242. "serviceFee": 0.0,
  8243. "annualLicenseFee": 1200.0
  8244. }
  8245. ]}
  8246.  
  8247. [-] Test Case 4 (case13)
  8248. Expected Output
  8249.  
  8250. Data and output files:
  8251.  
  8252.  
  8253. Customers.dat:
  8254. 4
  8255. C001;C;343i;343 Industries;434 Kirkland Ave,Kirkland,WA,98033,USA
  8256. C002;G;613h;Federal Bureau of Investigation;935 Pennsylvania Avenue,NW Washington DC,D.C.,20535-0001,USA
  8257. C003;G;bbc1;Department of Defense;1000 Defense Pentagon,Washington DC,D.C.,20301-1000,USA
  8258. C004;C;935z;Treyarch;3420 Ocean Park Blvd Suite 1000,Santa Monica,CA,90405,USA
  8259.  
  8260. Persons.dat:
  8261. 5
  8262. 613h;Neilson,Jarod;2157 Sunny Acres,Albertville,CO,80477-1351,USA;jneilson@usa.gov
  8263. 343i;Alden,Jonah;7614 Velvet Butterfly Parade,Runnymeade,NM,87084-6259,USA;jalden@gmail.com,jalden@hotmail.com
  8264. 505t;Spear,Kenneth;9545 Quaking Farm,Quicktown,NM,88354-7661,USA;kspear@yahoo.com,spear117@unl.edu
  8265. 935z;Wallis,Hervey;4382 Thunder Drive,Ohm,WY,82288-1728,USA;hwallis@gmail.com
  8266. bbc1;Odell,Reid;1209 Wishing Manor,Splitlog,NM,87925-3025,USA;rodell@hotmail.com,rodell234@hotmail.com,rodell@me.com
  8267.  
  8268. Products.dat:
  8269. 5
  8270. ff45;E;Internet Router;300.0
  8271. d3d2;L;Cinco Long Distance Calling;1500.0;13500.0
  8272. 44r3;E;Cinco Game Box;450.0
  8273. wqer;C;Teaching: Advanced Computing;505t;125.0
  8274. rr49;C;System Maintenance;505t;250.0
  8275.  
  8276. Customers.xml:
  8277. <?xml version="1.0"?>
  8278. <customers>
  8279. <governmentCustomer>
  8280. <customerCode>C003</customerCode>
  8281. <name>Department of Defense</name>
  8282. <address>
  8283. <street>1000 Defense Pentagon</street>
  8284. <city>Washington DC</city>
  8285. <state>D.C.</state>
  8286. <zip>20301-1000</zip>
  8287. <country>USA</country>
  8288. </address>
  8289. <primaryContact>
  8290. <personCode>bbc1</personCode>
  8291. <firstName>Reid</firstName>
  8292. <lastName>Odell</lastName>
  8293. <address>
  8294. <street>1209 Wishing Manor</street>
  8295. <city>Splitlog</city>
  8296. <state>NM</state>
  8297. <zip>87925-3025</zip>
  8298. <country>USA</country>
  8299. </address>
  8300. <emails>
  8301. <email>rodell234@hotmail.com</email>
  8302. <email>rodell@hotmail.com</email>
  8303. <email>rodell@me.com</email>
  8304. </emails>
  8305. </primaryContact>
  8306. </governmentCustomer>
  8307. <companyCustomer>
  8308. <customerCode>C004</customerCode>
  8309. <name>Treyarch</name>
  8310. <address>
  8311. <street>3420 Ocean Park Blvd Suite 1000</street>
  8312. <city>Santa Monica</city>
  8313. <state>CA</state>
  8314. <zip>90405</zip>
  8315. <country>USA</country>
  8316. </address>
  8317. <primaryContact>
  8318. <personCode>935z</personCode>
  8319. <firstName>Hervey</firstName>
  8320. <lastName>Wallis</lastName>
  8321. <address>
  8322. <street>4382 Thunder Drive</street>
  8323. <city>Ohm</city>
  8324. <state>WY</state>
  8325. <zip>82288-1728</zip>
  8326. <country>USA</country>
  8327. </address>
  8328. <emails>
  8329. <email>hwallis@gmail.com</email>
  8330. </emails>
  8331. </primaryContact>
  8332. </companyCustomer>
  8333. <governmentCustomer>
  8334. <customerCode>C002</customerCode>
  8335. <name>Federal Bureau of Investigation</name>
  8336. <address>
  8337. <street>935 Pennsylvania Avenue</street>
  8338. <city>NW Washington DC</city>
  8339. <state>D.C.</state>
  8340. <zip>20535-0001</zip>
  8341. <country>USA</country>
  8342. </address>
  8343. <primaryContact>
  8344. <personCode>613h</personCode>
  8345. <firstName>Jarod</firstName>
  8346. <lastName>Neilson</lastName>
  8347. <address>
  8348. <street>2157 Sunny Acres</street>
  8349. <city>Albertville</city>
  8350. <state>CO</state>
  8351. <zip>80477-1351</zip>
  8352. <country>USA</country>
  8353. </address>
  8354. <emails>
  8355. <email>jneilson@usa.gov</email>
  8356. </emails>
  8357. </primaryContact>
  8358. </governmentCustomer>
  8359. <companyCustomer>
  8360. <customerCode>C001</customerCode>
  8361. <name>343 Industries</name>
  8362. <address>
  8363. <street>434 Kirkland Ave</street>
  8364. <city>Kirkland</city>
  8365. <state>WA</state>
  8366. <zip>98033</zip>
  8367. <country>USA</country>
  8368. </address>
  8369. <primaryContact>
  8370. <personCode>343i</personCode>
  8371. <firstName>Jonah</firstName>
  8372. <lastName>Alden</lastName>
  8373. <address>
  8374. <street>7614 Velvet Butterfly Parade</street>
  8375. <city>Runnymeade</city>
  8376. <state>NM</state>
  8377. <zip>87084-6259</zip>
  8378. <country>USA</country>
  8379. </address>
  8380. <emails>
  8381. <email>jalden@hotmail.com</email>
  8382. <email>jalden@gmail.com</email>
  8383. </emails>
  8384. </primaryContact>
  8385. </companyCustomer>
  8386. </customers>
  8387.  
  8388. Persons.xml:
  8389. <?xml version="1.0"?>
  8390. <persons>
  8391. <person>
  8392. <personCode>bbc1</personCode>
  8393. <firstName>Reid</firstName>
  8394. <lastName>Odell</lastName>
  8395. <address>
  8396. <street>1209 Wishing Manor</street>
  8397. <city>Splitlog</city>
  8398. <state>NM</state>
  8399. <zip>87925-3025</zip>
  8400. <country>USA</country>
  8401. </address>
  8402. <emails>
  8403. <email>rodell234@hotmail.com</email>
  8404. <email>rodell@hotmail.com</email>
  8405. <email>rodell@me.com</email>
  8406. </emails>
  8407. </person>
  8408. <person>
  8409. <personCode>505t</personCode>
  8410. <firstName>Kenneth</firstName>
  8411. <lastName>Spear</lastName>
  8412. <address>
  8413. <street>9545 Quaking Farm</street>
  8414. <city>Quicktown</city>
  8415. <state>NM</state>
  8416. <zip>88354-7661</zip>
  8417. <country>USA</country>
  8418. </address>
  8419. <emails>
  8420. <email>spear117@unl.edu</email>
  8421. <email>kspear@yahoo.com</email>
  8422. </emails>
  8423. </person>
  8424. <person>
  8425. <personCode>613h</personCode>
  8426. <firstName>Jarod</firstName>
  8427. <lastName>Neilson</lastName>
  8428. <address>
  8429. <street>2157 Sunny Acres</street>
  8430. <city>Albertville</city>
  8431. <state>CO</state>
  8432. <zip>80477-1351</zip>
  8433. <country>USA</country>
  8434. </address>
  8435. <emails>
  8436. <email>jneilson@usa.gov</email>
  8437. </emails>
  8438. </person>
  8439. <person>
  8440. <personCode>935z</personCode>
  8441. <firstName>Hervey</firstName>
  8442. <lastName>Wallis</lastName>
  8443. <address>
  8444. <street>4382 Thunder Drive</street>
  8445. <city>Ohm</city>
  8446. <state>WY</state>
  8447. <zip>82288-1728</zip>
  8448. <country>USA</country>
  8449. </address>
  8450. <emails>
  8451. <email>hwallis@gmail.com</email>
  8452. </emails>
  8453. </person>
  8454. <person>
  8455. <personCode>343i</personCode>
  8456. <firstName>Jonah</firstName>
  8457. <lastName>Alden</lastName>
  8458. <address>
  8459. <street>7614 Velvet Butterfly Parade</street>
  8460. <city>Runnymeade</city>
  8461. <state>NM</state>
  8462. <zip>87084-6259</zip>
  8463. <country>USA</country>
  8464. </address>
  8465. <emails>
  8466. <email>jalden@hotmail.com</email>
  8467. <email>jalden@gmail.com</email>
  8468. </emails>
  8469. </person>
  8470. </persons>
  8471.  
  8472. Products.xml:
  8473. <?xml version="1.0"?>
  8474. <products>
  8475. <consultation>
  8476. <productCode>wqer</productCode>
  8477. <name>Teaching: Advanced Computing</name>
  8478. <consultant>
  8479. <personCode>505t</personCode>
  8480. <firstName>Kenneth</firstName>
  8481. <lastName>Spear</lastName>
  8482. <address>
  8483. <street>9545 Quaking Farm</street>
  8484. <city>Quicktown</city>
  8485. <state>NM</state>
  8486. <zip>88354-7661</zip>
  8487. <country>USA</country>
  8488. </address>
  8489. <emails>
  8490. <email>spear117@unl.edu</email>
  8491. <email>kspear@yahoo.com</email>
  8492. </emails>
  8493. </consultant>
  8494. <pricePerHour>125.0</pricePerHour>
  8495. </consultation>
  8496. <equipment>
  8497. <productCode>ff45</productCode>
  8498. <name>Internet Router</name>
  8499. <pricePerUnit>300.0</pricePerUnit>
  8500. </equipment>
  8501. <consultation>
  8502. <productCode>rr49</productCode>
  8503. <name>System Maintenance</name>
  8504. <consultant>
  8505. <personCode>505t</personCode>
  8506. <firstName>Kenneth</firstName>
  8507. <lastName>Spear</lastName>
  8508. <address>
  8509. <street>9545 Quaking Farm</street>
  8510. <city>Quicktown</city>
  8511. <state>NM</state>
  8512. <zip>88354-7661</zip>
  8513. <country>USA</country>
  8514. </address>
  8515. <emails>
  8516. <email>spear117@unl.edu</email>
  8517. <email>kspear@yahoo.com</email>
  8518. </emails>
  8519. </consultant>
  8520. <pricePerHour>250.0</pricePerHour>
  8521. </consultation>
  8522. <license>
  8523. <productCode>d3d2</productCode>
  8524. <name>Cinco Long Distance Calling</name>
  8525. <fee>1500.0</fee>
  8526. <annualCost>13500.0</annualCost>
  8527. </license>
  8528. <equipment>
  8529. <productCode>44r3</productCode>
  8530. <name>Cinco Game Box</name>
  8531. <pricePerUnit>450.0</pricePerUnit>
  8532. </equipment>
  8533. </products>
  8534.  
  8535. Customers.json:
  8536. {
  8537. "customers": [
  8538. {
  8539. "customerCode": "C003",
  8540. "name": "Department of Defense",
  8541. "address": {
  8542. "street": "1000 Defense Pentagon",
  8543. "city": "Washington DC",
  8544. "state": "D.C.",
  8545. "zip": "20301-1000",
  8546. "country": "USA"
  8547. },
  8548. "primaryContact": {
  8549. "personCode": "bbc1",
  8550. "firstName": "Reid",
  8551. "lastName": "Odell",
  8552. "address": {
  8553. "street": "1209 Wishing Manor",
  8554. "city": "Splitlog",
  8555. "state": "NM",
  8556. "zip": "87925-3025",
  8557. "country": "USA"
  8558. },
  8559. "emails": [
  8560. "rodell234@hotmail.com",
  8561. "rodell@hotmail.com",
  8562. "rodell@me.com"
  8563. ]
  8564. }
  8565. },
  8566. {
  8567. "customerCode": "C004",
  8568. "name": "Treyarch",
  8569. "address": {
  8570. "street": "3420 Ocean Park Blvd Suite 1000",
  8571. "city": "Santa Monica",
  8572. "state": "CA",
  8573. "zip": "90405",
  8574. "country": "USA"
  8575. },
  8576. "primaryContact": {
  8577. "personCode": "935z",
  8578. "firstName": "Hervey",
  8579. "lastName": "Wallis",
  8580. "address": {
  8581. "street": "4382 Thunder Drive",
  8582. "city": "Ohm",
  8583. "state": "WY",
  8584. "zip": "82288-1728",
  8585. "country": "USA"
  8586. },
  8587. "emails": [
  8588. "hwallis@gmail.com"
  8589. ]
  8590. }
  8591. },
  8592. {
  8593. "customerCode": "C002",
  8594. "name": "Federal Bureau of Investigation",
  8595. "address": {
  8596. "street": "935 Pennsylvania Avenue",
  8597. "city": "NW Washington DC",
  8598. "state": "D.C.",
  8599. "zip": "20535-0001",
  8600. "country": "USA"
  8601. },
  8602. "primaryContact": {
  8603. "personCode": "613h",
  8604. "firstName": "Jarod",
  8605. "lastName": "Neilson",
  8606. "address": {
  8607. "street": "2157 Sunny Acres",
  8608. "city": "Albertville",
  8609. "state": "CO",
  8610. "zip": "80477-1351",
  8611. "country": "USA"
  8612. },
  8613. "emails": [
  8614. "jneilson@usa.gov"
  8615. ]
  8616. }
  8617. },
  8618. {
  8619. "customerCode": "C001",
  8620. "name": "343 Industries",
  8621. "address": {
  8622. "street": "434 Kirkland Ave",
  8623. "city": "Kirkland",
  8624. "state": "WA",
  8625. "zip": "98033",
  8626. "country": "USA"
  8627. },
  8628. "primaryContact": {
  8629. "personCode": "343i",
  8630. "firstName": "Jonah",
  8631. "lastName": "Alden",
  8632. "address": {
  8633. "street": "7614 Velvet Butterfly Parade",
  8634. "city": "Runnymeade",
  8635. "state": "NM",
  8636. "zip": "87084-6259",
  8637. "country": "USA"
  8638. },
  8639. "emails": [
  8640. "jalden@hotmail.com",
  8641. "jalden@gmail.com"
  8642. ]
  8643. }
  8644. }
  8645. ]}
  8646.  
  8647. Persons.json:
  8648. {
  8649. "persons": [
  8650. {
  8651. "personCode": "bbc1",
  8652. "firstName": "Reid",
  8653. "lastName": "Odell",
  8654. "address": {
  8655. "street": "1209 Wishing Manor",
  8656. "city": "Splitlog",
  8657. "state": "NM",
  8658. "zip": "87925-3025",
  8659. "country": "USA"
  8660. },
  8661. "emails": [
  8662. "rodell234@hotmail.com",
  8663. "rodell@hotmail.com",
  8664. "rodell@me.com"
  8665. ]
  8666. },
  8667. {
  8668. "personCode": "505t",
  8669. "firstName": "Kenneth",
  8670. "lastName": "Spear",
  8671. "address": {
  8672. "street": "9545 Quaking Farm",
  8673. "city": "Quicktown",
  8674. "state": "NM",
  8675. "zip": "88354-7661",
  8676. "country": "USA"
  8677. },
  8678. "emails": [
  8679. "spear117@unl.edu",
  8680. "kspear@yahoo.com"
  8681. ]
  8682. },
  8683. {
  8684. "personCode": "613h",
  8685. "firstName": "Jarod",
  8686. "lastName": "Neilson",
  8687. "address": {
  8688. "street": "2157 Sunny Acres",
  8689. "city": "Albertville",
  8690. "state": "CO",
  8691. "zip": "80477-1351",
  8692. "country": "USA"
  8693. },
  8694. "emails": [
  8695. "jneilson@usa.gov"
  8696. ]
  8697. },
  8698. {
  8699. "personCode": "935z",
  8700. "firstName": "Hervey",
  8701. "lastName": "Wallis",
  8702. "address": {
  8703. "street": "4382 Thunder Drive",
  8704. "city": "Ohm",
  8705. "state": "WY",
  8706. "zip": "82288-1728",
  8707. "country": "USA"
  8708. },
  8709. "emails": [
  8710. "hwallis@gmail.com"
  8711. ]
  8712. },
  8713. {
  8714. "personCode": "343i",
  8715. "firstName": "Jonah",
  8716. "lastName": "Alden",
  8717. "address": {
  8718. "street": "7614 Velvet Butterfly Parade",
  8719. "city": "Runnymeade",
  8720. "state": "NM",
  8721. "zip": "87084-6259",
  8722. "country": "USA"
  8723. },
  8724. "emails": [
  8725. "jalden@hotmail.com",
  8726. "jalden@gmail.com"
  8727. ]
  8728. }
  8729. ]}
  8730.  
  8731. Products.json:
  8732. {
  8733. "products": [
  8734. {
  8735. "consultant": {
  8736. "personCode": "505t",
  8737. "firstName": "Kenneth",
  8738. "lastName": "Spear",
  8739. "address": {
  8740. "street": "9545 Quaking Farm",
  8741. "city": "Quicktown",
  8742. "state": "NM",
  8743. "zip": "88354-7661",
  8744. "country": "USA"
  8745. },
  8746. "emails": [
  8747. "spear117@unl.edu",
  8748. "kspear@yahoo.com"
  8749. ]
  8750. },
  8751. "pricePerHour": 125.0,
  8752. "productCode": "wqer",
  8753. "name": "Teaching: Advanced Computing"
  8754. },
  8755. {
  8756. "pricePerUnit": 300.0,
  8757. "productCode": "ff45",
  8758. "name": "Internet Router"
  8759. },
  8760. {
  8761. "consultant": {
  8762. "personCode": "505t",
  8763. "firstName": "Kenneth",
  8764. "lastName": "Spear",
  8765. "address": {
  8766. "street": "9545 Quaking Farm",
  8767. "city": "Quicktown",
  8768. "state": "NM",
  8769. "zip": "88354-7661",
  8770. "country": "USA"
  8771. },
  8772. "emails": [
  8773. "spear117@unl.edu",
  8774. "kspear@yahoo.com"
  8775. ]
  8776. },
  8777. "pricePerHour": 250.0,
  8778. "productCode": "rr49",
  8779. "name": "System Maintenance"
  8780. },
  8781. {
  8782. "fee": 1500.0,
  8783. "annualCost": 13500.0,
  8784. "productCode": "d3d2",
  8785. "name": "Cinco Long Distance Calling"
  8786. },
  8787. {
  8788. "pricePerUnit": 450.0,
  8789. "productCode": "44r3",
  8790. "name": "Cinco Game Box"
  8791. }
  8792. ]}
  8793.  
  8794. Program Output
  8795.  
  8796. Customer [customerCode=C001, type=C, companyName=343 Industries, address=Address [street=434 Kirkland Ave, city=Kirkland, state=WA, zip=98033, country=USA]]
  8797. Customer [customerCode=C002, type=G, companyName=Federal Bureau of Investigation, address=Address [street=935 Pennsylvania Avenue, city=NW Washington DC, state=D.C., zip=20535-0001, country=USA]]
  8798. Customer [customerCode=C003, type=G, companyName=Department of Defense, address=Address [street=1000 Defense Pentagon, city=Washington DC, state=D.C., zip=20301-1000, country=USA]]
  8799. Customer [customerCode=C004, type=C, companyName=Treyarch, address=Address [street=3420 Ocean Park Blvd Suite 1000, city=Santa Monica, state=CA, zip=90405, country=USA]]
  8800. Product [code=ff45, type=E, name=Internet Router] Equipment [pricePerUnit=300.0]
  8801. Product [code=d3d2, type=L, name=Cinco Long Distance Calling] License [serviceFee=1500.0, annualLicenseFee=13500.0]
  8802. Product [code=44r3, type=E, name=Cinco Game Box] Equipment [pricePerUnit=450.0]
  8803. Product [code=wqer, type=C, name=Teaching: Advanced Computing] Consultation [consultant=Person [personCode=505t, firstName=Kenneth, lastName=Spear, address=Address [street=9545 Quaking Farm, city=Quicktown, state=NM, zip=88354-7661, country=USA], emails=[kspear@yahoo.com, spear117@unl.edu]], hourlyFee=125.0]
  8804. Product [code=rr49, type=C, name=System Maintenance] Consultation [consultant=Person [personCode=505t, firstName=Kenneth, lastName=Spear, address=Address [street=9545 Quaking Farm, city=Quicktown, state=NM, zip=88354-7661, country=USA], emails=[kspear@yahoo.com, spear117@unl.edu]], hourlyFee=250.0]
  8805. ::::::::::::::
  8806. ./data/Customers.xml
  8807. ::::::::::::::
  8808. <customers>
  8809. <companyCustomer>
  8810. <customerCode>C001</customerCode>
  8811. <companyName>343 Industries</companyName>
  8812. <address>
  8813. <street>434 Kirkland Ave</street>
  8814. <city>Kirkland</city>
  8815. <state>WA</state>
  8816. <zip>98033</zip>
  8817. <country>USA</country>
  8818. </address>
  8819. </companyCustomer>
  8820. <governmentCustomer>
  8821. <customerCode>C002</customerCode>
  8822. <companyName>Federal Bureau of Investigation</companyName>
  8823. <address>
  8824. <street>935 Pennsylvania Avenue</street>
  8825. <city>NW Washington DC</city>
  8826. <state>D.C.</state>
  8827. <zip>20535-0001</zip>
  8828. <country>USA</country>
  8829. </address>
  8830. </governmentCustomer>
  8831. <governmentCustomer>
  8832. <customerCode>C003</customerCode>
  8833. <companyName>Department of Defense</companyName>
  8834. <address>
  8835. <street>1000 Defense Pentagon</street>
  8836. <city>Washington DC</city>
  8837. <state>D.C.</state>
  8838. <zip>20301-1000</zip>
  8839. <country>USA</country>
  8840. </address>
  8841. </governmentCustomer>
  8842. <companyCustomer>
  8843. <customerCode>C004</customerCode>
  8844. <companyName>Treyarch</companyName>
  8845. <address>
  8846. <street>3420 Ocean Park Blvd Suite 1000</street>
  8847. <city>Santa Monica</city>
  8848. <state>CA</state>
  8849. <zip>90405</zip>
  8850. <country>USA</country>
  8851. </address>
  8852. </companyCustomer>
  8853. </customers>::::::::::::::
  8854. ./data/Persons.xml
  8855. ::::::::::::::
  8856. <persons>
  8857. <person>
  8858. <personCode>613h</personCode>
  8859. <firstName>Jarod</firstName>
  8860. <lastName>Neilson</lastName>
  8861. <address>
  8862. <street>2157 Sunny Acres</street>
  8863. <city>Albertville</city>
  8864. <state>CO</state>
  8865. <zip>80477-1351</zip>
  8866. <country>USA</country>
  8867. </address>
  8868. <emails>
  8869. <email>jneilson@usa.gov</email>
  8870. </emails>
  8871. </person>
  8872. <person>
  8873. <personCode>343i</personCode>
  8874. <firstName>Jonah</firstName>
  8875. <lastName>Alden</lastName>
  8876. <address>
  8877. <street>7614 Velvet Butterfly Parade</street>
  8878. <city>Runnymeade</city>
  8879. <state>NM</state>
  8880. <zip>87084-6259</zip>
  8881. <country>USA</country>
  8882. </address>
  8883. <emails>
  8884. <email>jalden@gmail.com</email>
  8885. <email>jalden@hotmail.com</email>
  8886. </emails>
  8887. </person>
  8888. <person>
  8889. <personCode>505t</personCode>
  8890. <firstName>Kenneth</firstName>
  8891. <lastName>Spear</lastName>
  8892. <address>
  8893. <street>9545 Quaking Farm</street>
  8894. <city>Quicktown</city>
  8895. <state>NM</state>
  8896. <zip>88354-7661</zip>
  8897. <country>USA</country>
  8898. </address>
  8899. <emails>
  8900. <email>kspear@yahoo.com</email>
  8901. <email>spear117@unl.edu</email>
  8902. </emails>
  8903. </person>
  8904. <person>
  8905. <personCode>935z</personCode>
  8906. <firstName>Hervey</firstName>
  8907. <lastName>Wallis</lastName>
  8908. <address>
  8909. <street>4382 Thunder Drive</street>
  8910. <city>Ohm</city>
  8911. <state>WY</state>
  8912. <zip>82288-1728</zip>
  8913. <country>USA</country>
  8914. </address>
  8915. <emails>
  8916. <email>hwallis@gmail.com</email>
  8917. </emails>
  8918. </person>
  8919. <person>
  8920. <personCode>bbc1</personCode>
  8921. <firstName>Reid</firstName>
  8922. <lastName>Odell</lastName>
  8923. <address>
  8924. <street>1209 Wishing Manor</street>
  8925. <city>Splitlog</city>
  8926. <state>NM</state>
  8927. <zip>87925-3025</zip>
  8928. <country>USA</country>
  8929. </address>
  8930. <emails>
  8931. <email>rodell@hotmail.com</email>
  8932. <email>rodell234@hotmail.com</email>
  8933. <email>rodell@me.com</email>
  8934. </emails>
  8935. </person>
  8936. </persons>::::::::::::::
  8937. ./data/Products.xml
  8938. ::::::::::::::
  8939. <products>
  8940. <equipment>
  8941. <productCode>ff45</productCode>
  8942. <name>Internet Router</name>
  8943. <pricePerUnit>300.0</pricePerUnit>
  8944. </equipment>
  8945. <license>
  8946. <productCode>d3d2</productCode>
  8947. <name>Cinco Long Distance Calling</name>
  8948. <fee>1500.0</fee>
  8949. <annualCost>13500.0</annualCost>
  8950. </license>
  8951. <equipment>
  8952. <productCode>44r3</productCode>
  8953. <name>Cinco Game Box</name>
  8954. <pricePerUnit>450.0</pricePerUnit>
  8955. </equipment>
  8956. <consultation>
  8957. <productCode>wqer</productCode>
  8958. <name>Teaching: Advanced Computing</name>
  8959. <consultant>
  8960. <personCode>505t</personCode>
  8961. <firstName>Kenneth</firstName>
  8962. <lastName>Spear</lastName>
  8963. <address>
  8964. <street>9545 Quaking Farm</street>
  8965. <city>Quicktown</city>
  8966. <state>NM</state>
  8967. <zip>88354-7661</zip>
  8968. <country>USA</country>
  8969. </address>
  8970. <emails>
  8971. <string>kspear@yahoo.com</string>
  8972. <string>spear117@unl.edu</string>
  8973. </emails>
  8974. </consultant>
  8975. <pricePerHour>125.0</pricePerHour>
  8976. </consultation>
  8977. <consultation>
  8978. <productCode>rr49</productCode>
  8979. <name>System Maintenance</name>
  8980. <consultant>
  8981. <personCode>505t</personCode>
  8982. <firstName>Kenneth</firstName>
  8983. <lastName>Spear</lastName>
  8984. <address>
  8985. <street>9545 Quaking Farm</street>
  8986. <city>Quicktown</city>
  8987. <state>NM</state>
  8988. <zip>88354-7661</zip>
  8989. <country>USA</country>
  8990. </address>
  8991. <emails>
  8992. <string>kspear@yahoo.com</string>
  8993. <string>spear117@unl.edu</string>
  8994. </emails>
  8995. </consultant>
  8996. <pricePerHour>250.0</pricePerHour>
  8997. </consultation>
  8998. </products>
  8999. ::::::::::::::
  9000. ./data/Customers.json
  9001. ::::::::::::::
  9002. <customers>
  9003. <companyCustomer>
  9004. <customerCode>C001</customerCode>
  9005. <companyName>343 Industries</companyName>
  9006. <address>
  9007. <street>434 Kirkland Ave</street>
  9008. <city>Kirkland</city>
  9009. <state>WA</state>
  9010. <zip>98033</zip>
  9011. <country>USA</country>
  9012. </address>
  9013. </companyCustomer>
  9014. <governmentCustomer>
  9015. <customerCode>C002</customerCode>
  9016. <companyName>Federal Bureau of Investigation</companyName>
  9017. <address>
  9018. <street>935 Pennsylvania Avenue</street>
  9019. <city>NW Washington DC</city>
  9020. <state>D.C.</state>
  9021. <zip>20535-0001</zip>
  9022. <country>USA</country>
  9023. </address>
  9024. </governmentCustomer>
  9025. <governmentCustomer>
  9026. <customerCode>C003</customerCode>
  9027. <companyName>Department of Defense</companyName>
  9028. <address>
  9029. <street>1000 Defense Pentagon</street>
  9030. <city>Washington DC</city>
  9031. <state>D.C.</state>
  9032. <zip>20301-1000</zip>
  9033. <country>USA</country>
  9034. </address>
  9035. </governmentCustomer>
  9036. <companyCustomer>
  9037. <customerCode>C004</customerCode>
  9038. <companyName>Treyarch</companyName>
  9039. <address>
  9040. <street>3420 Ocean Park Blvd Suite 1000</street>
  9041. <city>Santa Monica</city>
  9042. <state>CA</state>
  9043. <zip>90405</zip>
  9044. <country>USA</country>
  9045. </address>
  9046. </companyCustomer>
  9047. </customers>::::::::::::::
  9048. ./data/Persons.json
  9049. ::::::::::::::
  9050. {
  9051. "persons": {
  9052. "person": [
  9053. {
  9054. "personCode": "613h",
  9055. "firstName": "Jarod",
  9056. "lastName": "Neilson",
  9057. "address": {
  9058. "street": "2157 Sunny Acres",
  9059. "city": "Albertville",
  9060. "state": "CO",
  9061. "zip": "80477-1351",
  9062. "country": "USA"
  9063. },
  9064. "emails": [
  9065. "jneilson@usa.gov"
  9066. ]
  9067. },
  9068. {
  9069. "personCode": "343i",
  9070. "firstName": "Jonah",
  9071. "lastName": "Alden",
  9072. "address": {
  9073. "street": "7614 Velvet Butterfly Parade",
  9074. "city": "Runnymeade",
  9075. "state": "NM",
  9076. "zip": "87084-6259",
  9077. "country": "USA"
  9078. },
  9079. "emails": [
  9080. "jalden@gmail.com",
  9081. "jalden@hotmail.com"
  9082. ]
  9083. },
  9084. {
  9085. "personCode": "505t",
  9086. "firstName": "Kenneth",
  9087. "lastName": "Spear",
  9088. "address": {
  9089. "street": "9545 Quaking Farm",
  9090. "city": "Quicktown",
  9091. "state": "NM",
  9092. "zip": "88354-7661",
  9093. "country": "USA"
  9094. },
  9095. "emails": [
  9096. "kspear@yahoo.com",
  9097. "spear117@unl.edu"
  9098. ]
  9099. },
  9100. {
  9101. "personCode": "935z",
  9102. "firstName": "Hervey",
  9103. "lastName": "Wallis",
  9104. "address": {
  9105. "street": "4382 Thunder Drive",
  9106. "city": "Ohm",
  9107. "state": "WY",
  9108. "zip": "82288-1728",
  9109. "country": "USA"
  9110. },
  9111. "emails": [
  9112. "hwallis@gmail.com"
  9113. ]
  9114. },
  9115. {
  9116. "personCode": "bbc1",
  9117. "firstName": "Reid",
  9118. "lastName": "Odell",
  9119. "address": {
  9120. "street": "1209 Wishing Manor",
  9121. "city": "Splitlog",
  9122. "state": "NM",
  9123. "zip": "87925-3025",
  9124. "country": "USA"
  9125. },
  9126. "emails": [
  9127. "rodell@hotmail.com",
  9128. "rodell234@hotmail.com",
  9129. "rodell@me.com"
  9130. ]
  9131. }
  9132. ]
  9133. }
  9134. }
  9135. ::::::::::::::
  9136. ./data/Products.json
  9137. ::::::::::::::
  9138. {
  9139. "products": [ {
  9140. "code": "ff45",
  9141. "name": "Internet Router",
  9142. "pricePerUnit": 300.0
  9143. },
  9144. {
  9145. "code": "d3d2",
  9146. "name": "Cinco Long Distance Calling",
  9147. "serviceFee": 1500.0,
  9148. "annualLicenseFee": 13500.0
  9149. },
  9150. {
  9151. "code": "44r3",
  9152. "name": "Cinco Game Box",
  9153. "pricePerUnit": 450.0
  9154. },
  9155. {
  9156. "code": "wqer",
  9157. "name": "Teaching: Advanced Computing",
  9158. "consultant": {
  9159. "personCode": "505t",
  9160. "firstName": "Kenneth",
  9161. "lastName": "Spear",
  9162. "address": {
  9163. "street": "9545 Quaking Farm",
  9164. "city": "Quicktown",
  9165. "state": "NM",
  9166. "zip": "88354-7661",
  9167. "country": "USA"
  9168. },
  9169. "emails": [
  9170. "kspear@yahoo.com",
  9171. "spear117@unl.edu"
  9172. ]
  9173. },
  9174. "hourlyFee": 125.0
  9175. },
  9176. {
  9177. "code": "rr49",
  9178. "name": "System Maintenance",
  9179. "consultant": {
  9180. "personCode": "505t",
  9181. "firstName": "Kenneth",
  9182. "lastName": "Spear",
  9183. "address": {
  9184. "street": "9545 Quaking Farm",
  9185. "city": "Quicktown",
  9186. "state": "NM",
  9187. "zip": "88354-7661",
  9188. "country": "USA"
  9189. },
  9190. "emails": [
  9191. "kspear@yahoo.com",
  9192. "spear117@unl.edu"
  9193. ]
  9194. },
  9195. "hourlyFee": 250.0
  9196. }
  9197. ]}
  9198.  
  9199. [-] Test Case 5 (case10)
  9200. Expected Output
  9201.  
  9202. Data and output files:
  9203.  
  9204.  
  9205. Customers.dat:
  9206. 3
  9207. C001;G;1fd5;University of Southern California;University Park Campus,Los Angeles, CA, 90089-0911,USA
  9208. C002;C;21f3;Google Inc;1600 Amphitheatre Parkway,Mountain View, CA, 94043,USA
  9209. C003;C;920A;Sandhills Publishing;120 W Harvest Dr,Lincoln, NE, 68521,USA
  9210.  
  9211.  
  9212.  
  9213.  
  9214. Persons.dat:
  9215. 6
  9216. 1fd5;Scott, Dan;2016 J St,Omaha,NE,68116,USA
  9217. 21f3;Henry, Lucas;4012 N 72 St,Lincoln,NE,68522,USA;googleaffairs@gmail.com,LucasHenry116@gmail.com
  9218. 920A;Decker, Kayli;529 N 9th St,Lincoln,NE,68544,USA
  9219. 389W;Walsh, Billy;809 Folsom St,San Diego,CA,90210,USA;walshbilly@hotmail.com
  9220. 302q;Chase, Eric;201 Queens Blvd, New York City,NY,10221,USA;vchase@aol.com
  9221. 021p;Williams, Chris;201 Sunset Blvd, Los Angeles,CA,90212,USA
  9222. Products.dat:
  9223. 4
  9224. 39fn;E;Cinco Visual Interface;500.0
  9225. 49fj;E;Cinco Computer System;1499.99
  9226. f942;C;Internette Discs;389W;14.99
  9227. gj40;L;Cinco Music Shuffler System;500;2500
  9228.  
  9229. Customers.xml:
  9230. <?xml version="1.0"?>
  9231. <customers>
  9232. <companyCustomer>
  9233. <customerCode>C003</customerCode>
  9234. <name>Sandhills Publishing</name>
  9235. <address>
  9236. <street>120 W Harvest Dr</street>
  9237. <city>Lincoln</city>
  9238. <state>NE</state>
  9239. <zip>68521</zip>
  9240. <country>USA</country>
  9241. </address>
  9242. <primaryContact>
  9243. <personCode>920A</personCode>
  9244. <firstName>Kayli</firstName>
  9245. <lastName>Decker</lastName>
  9246. <address>
  9247. <street>529 N 9th St</street>
  9248. <city>Lincoln</city>
  9249. <state>NE</state>
  9250. <zip>68544</zip>
  9251. <country>USA</country>
  9252. </address>
  9253. <emails/>
  9254. </primaryContact>
  9255. </companyCustomer>
  9256. <companyCustomer>
  9257. <customerCode>C002</customerCode>
  9258. <name>Google Inc</name>
  9259. <address>
  9260. <street>1600 Amphitheatre Parkway</street>
  9261. <city>Mountain View</city>
  9262. <state>CA</state>
  9263. <zip>94043</zip>
  9264. <country>USA</country>
  9265. </address>
  9266. <primaryContact>
  9267. <personCode>21f3</personCode>
  9268. <firstName>Lucas</firstName>
  9269. <lastName>Henry</lastName>
  9270. <address>
  9271. <street>4012 N 72 St</street>
  9272. <city>Lincoln</city>
  9273. <state>NE</state>
  9274. <zip>68522</zip>
  9275. <country>USA</country>
  9276. </address>
  9277. <emails>
  9278. <email>googleaffairs@gmail.com</email>
  9279. <email>LucasHenry116@gmail.com</email>
  9280. </emails>
  9281. </primaryContact>
  9282. </companyCustomer>
  9283. <governmentCustomer>
  9284. <customerCode>C001</customerCode>
  9285. <name>University of Southern California</name>
  9286. <address>
  9287. <street>University Park Campus</street>
  9288. <city>Los Angeles</city>
  9289. <state>CA</state>
  9290. <zip>90089-0911</zip>
  9291. <country>USA</country>
  9292. </address>
  9293. <primaryContact>
  9294. <personCode>1fd5</personCode>
  9295. <firstName>Dan</firstName>
  9296. <lastName>Scott</lastName>
  9297. <address>
  9298. <street>2016 J St</street>
  9299. <city>Omaha</city>
  9300. <state>NE</state>
  9301. <zip>68116</zip>
  9302. <country>USA</country>
  9303. </address>
  9304. <emails/>
  9305. </primaryContact>
  9306. </governmentCustomer>
  9307. </customers>
  9308.  
  9309. Persons.xml:
  9310. <?xml version="1.0"?>
  9311. <persons>
  9312. <person>
  9313. <personCode>21f3</personCode>
  9314. <firstName>Lucas</firstName>
  9315. <lastName>Henry</lastName>
  9316. <address>
  9317. <street>4012 N 72 St</street>
  9318. <city>Lincoln</city>
  9319. <state>NE</state>
  9320. <zip>68522</zip>
  9321. <country>USA</country>
  9322. </address>
  9323. <emails>
  9324. <email>googleaffairs@gmail.com</email>
  9325. <email>LucasHenry116@gmail.com</email>
  9326. </emails>
  9327. </person>
  9328. <person>
  9329. <personCode>920A</personCode>
  9330. <firstName>Kayli</firstName>
  9331. <lastName>Decker</lastName>
  9332. <address>
  9333. <street>529 N 9th St</street>
  9334. <city>Lincoln</city>
  9335. <state>NE</state>
  9336. <zip>68544</zip>
  9337. <country>USA</country>
  9338. </address>
  9339. <emails/>
  9340. </person>
  9341. <person>
  9342. <personCode>021p</personCode>
  9343. <firstName>Chris</firstName>
  9344. <lastName>Williams</lastName>
  9345. <address>
  9346. <street>201 Sunset Blvd</street>
  9347. <city>Los Angeles</city>
  9348. <state>CA</state>
  9349. <zip>90212</zip>
  9350. <country>USA</country>
  9351. </address>
  9352. <emails/>
  9353. </person>
  9354. <person>
  9355. <personCode>1fd5</personCode>
  9356. <firstName>Dan</firstName>
  9357. <lastName>Scott</lastName>
  9358. <address>
  9359. <street>2016 J St</street>
  9360. <city>Omaha</city>
  9361. <state>NE</state>
  9362. <zip>68116</zip>
  9363. <country>USA</country>
  9364. </address>
  9365. <emails/>
  9366. </person>
  9367. <person>
  9368. <personCode>302q</personCode>
  9369. <firstName>Eric</firstName>
  9370. <lastName>Chase</lastName>
  9371. <address>
  9372. <street>201 Queens Blvd</street>
  9373. <city>New York City</city>
  9374. <state>NY</state>
  9375. <zip>10221</zip>
  9376. <country>USA</country>
  9377. </address>
  9378. <emails>
  9379. <email>vchase@aol.com</email>
  9380. </emails>
  9381. </person>
  9382. <person>
  9383. <personCode>389W</personCode>
  9384. <firstName>Billy</firstName>
  9385. <lastName>Walsh</lastName>
  9386. <address>
  9387. <street>809 Folsom St</street>
  9388. <city>San Diego</city>
  9389. <state>CA</state>
  9390. <zip>90210</zip>
  9391. <country>USA</country>
  9392. </address>
  9393. <emails>
  9394. <email>walshbilly@hotmail.com</email>
  9395. </emails>
  9396. </person>
  9397. </persons>
  9398.  
  9399. Products.xml:
  9400. <?xml version="1.0"?>
  9401. <products>
  9402. <equipment>
  9403. <productCode>49fj</productCode>
  9404. <name>Cinco Computer System</name>
  9405. <pricePerUnit>1499.99</pricePerUnit>
  9406. </equipment>
  9407. <license>
  9408. <productCode>gj40</productCode>
  9409. <name>Cinco Music Shuffler System</name>
  9410. <fee>500.0</fee>
  9411. <annualCost>2500.0</annualCost>
  9412. </license>
  9413. <consultation>
  9414. <productCode>f942</productCode>
  9415. <name>Internette Discs</name>
  9416. <consultant>
  9417. <personCode>389W</personCode>
  9418. <firstName>Billy</firstName>
  9419. <lastName>Walsh</lastName>
  9420. <address>
  9421. <street>809 Folsom St</street>
  9422. <city>San Diego</city>
  9423. <state>CA</state>
  9424. <zip>90210</zip>
  9425. <country>USA</country>
  9426. </address>
  9427. <emails>
  9428. <email>walshbilly@hotmail.com</email>
  9429. </emails>
  9430. </consultant>
  9431. <pricePerHour>14.99</pricePerHour>
  9432. </consultation>
  9433. <equipment>
  9434. <productCode>39fn</productCode>
  9435. <name>Cinco Visual Interface</name>
  9436. <pricePerUnit>500.0</pricePerUnit>
  9437. </equipment>
  9438. </products>
  9439.  
  9440. Customers.json:
  9441. {
  9442. "customers": [
  9443. {
  9444. "customerCode": "C003",
  9445. "name": "Sandhills Publishing",
  9446. "address": {
  9447. "street": "120 W Harvest Dr",
  9448. "city": "Lincoln",
  9449. "state": "NE",
  9450. "zip": "68521",
  9451. "country": "USA"
  9452. },
  9453. "primaryContact": {
  9454. "personCode": "920A",
  9455. "firstName": "Kayli",
  9456. "lastName": "Decker",
  9457. "address": {
  9458. "street": "529 N 9th St",
  9459. "city": "Lincoln",
  9460. "state": "NE",
  9461. "zip": "68544",
  9462. "country": "USA"
  9463. },
  9464. "emails": []
  9465. }
  9466. },
  9467. {
  9468. "customerCode": "C002",
  9469. "name": "Google Inc",
  9470. "address": {
  9471. "street": "1600 Amphitheatre Parkway",
  9472. "city": "Mountain View",
  9473. "state": "CA",
  9474. "zip": "94043",
  9475. "country": "USA"
  9476. },
  9477. "primaryContact": {
  9478. "personCode": "21f3",
  9479. "firstName": "Lucas",
  9480. "lastName": "Henry",
  9481. "address": {
  9482. "street": "4012 N 72 St",
  9483. "city": "Lincoln",
  9484. "state": "NE",
  9485. "zip": "68522",
  9486. "country": "USA"
  9487. },
  9488. "emails": [
  9489. "googleaffairs@gmail.com",
  9490. "LucasHenry116@gmail.com"
  9491. ]
  9492. }
  9493. },
  9494. {
  9495. "customerCode": "C001",
  9496. "name": "University of Southern California",
  9497. "address": {
  9498. "street": "University Park Campus",
  9499. "city": "Los Angeles",
  9500. "state": "CA",
  9501. "zip": "90089-0911",
  9502. "country": "USA"
  9503. },
  9504. "primaryContact": {
  9505. "personCode": "1fd5",
  9506. "firstName": "Dan",
  9507. "lastName": "Scott",
  9508. "address": {
  9509. "street": "2016 J St",
  9510. "city": "Omaha",
  9511. "state": "NE",
  9512. "zip": "68116",
  9513. "country": "USA"
  9514. },
  9515. "emails": []
  9516. }
  9517. }
  9518. ]}
  9519.  
  9520. Persons.json:
  9521. {
  9522. "persons": [
  9523. {
  9524. "personCode": "21f3",
  9525. "firstName": "Lucas",
  9526. "lastName": "Henry",
  9527. "address": {
  9528. "street": "4012 N 72 St",
  9529. "city": "Lincoln",
  9530. "state": "NE",
  9531. "zip": "68522",
  9532. "country": "USA"
  9533. },
  9534. "emails": [
  9535. "googleaffairs@gmail.com",
  9536. "LucasHenry116@gmail.com"
  9537. ]
  9538. },
  9539. {
  9540. "personCode": "920A",
  9541. "firstName": "Kayli",
  9542. "lastName": "Decker",
  9543. "address": {
  9544. "street": "529 N 9th St",
  9545. "city": "Lincoln",
  9546. "state": "NE",
  9547. "zip": "68544",
  9548. "country": "USA"
  9549. },
  9550. "emails": []
  9551. },
  9552. {
  9553. "personCode": "021p",
  9554. "firstName": "Chris",
  9555. "lastName": "Williams",
  9556. "address": {
  9557. "street": "201 Sunset Blvd",
  9558. "city": "Los Angeles",
  9559. "state": "CA",
  9560. "zip": "90212",
  9561. "country": "USA"
  9562. },
  9563. "emails": []
  9564. },
  9565. {
  9566. "personCode": "1fd5",
  9567. "firstName": "Dan",
  9568. "lastName": "Scott",
  9569. "address": {
  9570. "street": "2016 J St",
  9571. "city": "Omaha",
  9572. "state": "NE",
  9573. "zip": "68116",
  9574. "country": "USA"
  9575. },
  9576. "emails": []
  9577. },
  9578. {
  9579. "personCode": "302q",
  9580. "firstName": "Eric",
  9581. "lastName": "Chase",
  9582. "address": {
  9583. "street": "201 Queens Blvd",
  9584. "city": "New York City",
  9585. "state": "NY",
  9586. "zip": "10221",
  9587. "country": "USA"
  9588. },
  9589. "emails": [
  9590. "vchase@aol.com"
  9591. ]
  9592. },
  9593. {
  9594. "personCode": "389W",
  9595. "firstName": "Billy",
  9596. "lastName": "Walsh",
  9597. "address": {
  9598. "street": "809 Folsom St",
  9599. "city": "San Diego",
  9600. "state": "CA",
  9601. "zip": "90210",
  9602. "country": "USA"
  9603. },
  9604. "emails": [
  9605. "walshbilly@hotmail.com"
  9606. ]
  9607. }
  9608. ]}
  9609.  
  9610. Products.json:
  9611. {
  9612. "products": [
  9613. {
  9614. "pricePerUnit": 1499.99,
  9615. "productCode": "49fj",
  9616. "name": "Cinco Computer System"
  9617. },
  9618. {
  9619. "fee": 500.0,
  9620. "annualCost": 2500.0,
  9621. "productCode": "gj40",
  9622. "name": "Cinco Music Shuffler System"
  9623. },
  9624. {
  9625. "consultant": {
  9626. "personCode": "389W",
  9627. "firstName": "Billy",
  9628. "lastName": "Walsh",
  9629. "address": {
  9630. "street": "809 Folsom St",
  9631. "city": "San Diego",
  9632. "state": "CA",
  9633. "zip": "90210",
  9634. "country": "USA"
  9635. },
  9636. "emails": [
  9637. "walshbilly@hotmail.com"
  9638. ]
  9639. },
  9640. "pricePerHour": 14.99,
  9641. "productCode": "f942",
  9642. "name": "Internette Discs"
  9643. },
  9644. {
  9645. "pricePerUnit": 500.0,
  9646. "productCode": "39fn",
  9647. "name": "Cinco Visual Interface"
  9648. }
  9649. ]}
  9650.  
  9651. Program Output
  9652.  
  9653. Customer [customerCode=C001, type=G, companyName=University of Southern California, address=Address [street=University Park Campus, city=Los Angeles, state=CA, zip=90089-0911, country=USA]]
  9654. Customer [customerCode=C002, type=C, companyName=Google Inc, address=Address [street=1600 Amphitheatre Parkway, city=Mountain View, state=CA, zip=94043, country=USA]]
  9655. Customer [customerCode=C003, type=C, companyName=Sandhills Publishing, address=Address [street=120 W Harvest Dr, city=Lincoln, state=NE, zip=68521, country=USA]]
  9656. Product [code=39fn, type=E, name=Cinco Visual Interface] Equipment [pricePerUnit=500.0]
  9657. Product [code=49fj, type=E, name=Cinco Computer System] Equipment [pricePerUnit=1499.99]
  9658. Product [code=f942, type=C, name=Internette Discs] Consultation [consultant=Person [personCode=389W, firstName=Billy, lastName=Walsh, address=Address [street=809 Folsom St, city=San Diego, state=CA, zip=90210, country=USA], emails=[walshbilly@hotmail.com]], hourlyFee=14.99]
  9659. Product [code=gj40, type=L, name=Cinco Music Shuffler System] License [serviceFee=500.0, annualLicenseFee=2500.0]
  9660. ::::::::::::::
  9661. ./data/Customers.xml
  9662. ::::::::::::::
  9663. <customers>
  9664. <governmentCustomer>
  9665. <customerCode>C001</customerCode>
  9666. <companyName>University of Southern California</companyName>
  9667. <address>
  9668. <street>University Park Campus</street>
  9669. <city>Los Angeles</city>
  9670. <state>CA</state>
  9671. <zip>90089-0911</zip>
  9672. <country>USA</country>
  9673. </address>
  9674. </governmentCustomer>
  9675. <companyCustomer>
  9676. <customerCode>C002</customerCode>
  9677. <companyName>Google Inc</companyName>
  9678. <address>
  9679. <street>1600 Amphitheatre Parkway</street>
  9680. <city>Mountain View</city>
  9681. <state>CA</state>
  9682. <zip>94043</zip>
  9683. <country>USA</country>
  9684. </address>
  9685. </companyCustomer>
  9686. <companyCustomer>
  9687. <customerCode>C003</customerCode>
  9688. <companyName>Sandhills Publishing</companyName>
  9689. <address>
  9690. <street>120 W Harvest Dr</street>
  9691. <city>Lincoln</city>
  9692. <state>NE</state>
  9693. <zip>68521</zip>
  9694. <country>USA</country>
  9695. </address>
  9696. </companyCustomer>
  9697. </customers>::::::::::::::
  9698. ./data/Persons.xml
  9699. ::::::::::::::
  9700. <persons>
  9701. <person>
  9702. <personCode>1fd5</personCode>
  9703. <firstName>Dan</firstName>
  9704. <lastName>Scott</lastName>
  9705. <address>
  9706. <street>2016 J St</street>
  9707. <city>Omaha</city>
  9708. <state>NE</state>
  9709. <zip>68116</zip>
  9710. <country>USA</country>
  9711. </address>
  9712. </person>
  9713. <person>
  9714. <personCode>21f3</personCode>
  9715. <firstName>Lucas</firstName>
  9716. <lastName>Henry</lastName>
  9717. <address>
  9718. <street>4012 N 72 St</street>
  9719. <city>Lincoln</city>
  9720. <state>NE</state>
  9721. <zip>68522</zip>
  9722. <country>USA</country>
  9723. </address>
  9724. <emails>
  9725. <email>googleaffairs@gmail.com</email>
  9726. <email>LucasHenry116@gmail.com</email>
  9727. </emails>
  9728. </person>
  9729. <person>
  9730. <personCode>920A</personCode>
  9731. <firstName>Kayli</firstName>
  9732. <lastName>Decker</lastName>
  9733. <address>
  9734. <street>529 N 9th St</street>
  9735. <city>Lincoln</city>
  9736. <state>NE</state>
  9737. <zip>68544</zip>
  9738. <country>USA</country>
  9739. </address>
  9740. </person>
  9741. <person>
  9742. <personCode>389W</personCode>
  9743. <firstName>Billy</firstName>
  9744. <lastName>Walsh</lastName>
  9745. <address>
  9746. <street>809 Folsom St</street>
  9747. <city>San Diego</city>
  9748. <state>CA</state>
  9749. <zip>90210</zip>
  9750. <country>USA</country>
  9751. </address>
  9752. <emails>
  9753. <email>walshbilly@hotmail.com</email>
  9754. </emails>
  9755. </person>
  9756. <person>
  9757. <personCode>302q</personCode>
  9758. <firstName>Eric</firstName>
  9759. <lastName>Chase</lastName>
  9760. <address>
  9761. <street>201 Queens Blvd</street>
  9762. <city>New York City</city>
  9763. <state>NY</state>
  9764. <zip>10221</zip>
  9765. <country>USA</country>
  9766. </address>
  9767. <emails>
  9768. <email>vchase@aol.com</email>
  9769. </emails>
  9770. </person>
  9771. <person>
  9772. <personCode>021p</personCode>
  9773. <firstName>Chris</firstName>
  9774. <lastName>Williams</lastName>
  9775. <address>
  9776. <street>201 Sunset Blvd</street>
  9777. <city>Los Angeles</city>
  9778. <state>CA</state>
  9779. <zip>90212</zip>
  9780. <country>USA</country>
  9781. </address>
  9782. </person>
  9783. </persons>::::::::::::::
  9784. ./data/Products.xml
  9785. ::::::::::::::
  9786. <products>
  9787. <equipment>
  9788. <productCode>39fn</productCode>
  9789. <name>Cinco Visual Interface</name>
  9790. <pricePerUnit>500.0</pricePerUnit>
  9791. </equipment>
  9792. <equipment>
  9793. <productCode>49fj</productCode>
  9794. <name>Cinco Computer System</name>
  9795. <pricePerUnit>1499.99</pricePerUnit>
  9796. </equipment>
  9797. <consultation>
  9798. <productCode>f942</productCode>
  9799. <name>Internette Discs</name>
  9800. <consultant>
  9801. <personCode>389W</personCode>
  9802. <firstName>Billy</firstName>
  9803. <lastName>Walsh</lastName>
  9804. <address>
  9805. <street>809 Folsom St</street>
  9806. <city>San Diego</city>
  9807. <state>CA</state>
  9808. <zip>90210</zip>
  9809. <country>USA</country>
  9810. </address>
  9811. <emails>
  9812. <string>walshbilly@hotmail.com</string>
  9813. </emails>
  9814. </consultant>
  9815. <pricePerHour>14.99</pricePerHour>
  9816. </consultation>
  9817. <license>
  9818. <productCode>gj40</productCode>
  9819. <name>Cinco Music Shuffler System</name>
  9820. <fee>500.0</fee>
  9821. <annualCost>2500.0</annualCost>
  9822. </license>
  9823. </products>
  9824. ::::::::::::::
  9825. ./data/Customers.json
  9826. ::::::::::::::
  9827. <customers>
  9828. <governmentCustomer>
  9829. <customerCode>C001</customerCode>
  9830. <companyName>University of Southern California</companyName>
  9831. <address>
  9832. <street>University Park Campus</street>
  9833. <city>Los Angeles</city>
  9834. <state>CA</state>
  9835. <zip>90089-0911</zip>
  9836. <country>USA</country>
  9837. </address>
  9838. </governmentCustomer>
  9839. <companyCustomer>
  9840. <customerCode>C002</customerCode>
  9841. <companyName>Google Inc</companyName>
  9842. <address>
  9843. <street>1600 Amphitheatre Parkway</street>
  9844. <city>Mountain View</city>
  9845. <state>CA</state>
  9846. <zip>94043</zip>
  9847. <country>USA</country>
  9848. </address>
  9849. </companyCustomer>
  9850. <companyCustomer>
  9851. <customerCode>C003</customerCode>
  9852. <companyName>Sandhills Publishing</companyName>
  9853. <address>
  9854. <street>120 W Harvest Dr</street>
  9855. <city>Lincoln</city>
  9856. <state>NE</state>
  9857. <zip>68521</zip>
  9858. <country>USA</country>
  9859. </address>
  9860. </companyCustomer>
  9861. </customers>::::::::::::::
  9862. ./data/Persons.json
  9863. ::::::::::::::
  9864. {
  9865. "persons": {
  9866. "person": [
  9867. {
  9868. "personCode": "1fd5",
  9869. "firstName": "Dan",
  9870. "lastName": "Scott",
  9871. "address": {
  9872. "street": "2016 J St",
  9873. "city": "Omaha",
  9874. "state": "NE",
  9875. "zip": "68116",
  9876. "country": "USA"
  9877. }
  9878. },
  9879. {
  9880. "personCode": "21f3",
  9881. "firstName": "Lucas",
  9882. "lastName": "Henry",
  9883. "address": {
  9884. "street": "4012 N 72 St",
  9885. "city": "Lincoln",
  9886. "state": "NE",
  9887. "zip": "68522",
  9888. "country": "USA"
  9889. },
  9890. "emails": [
  9891. "googleaffairs@gmail.com",
  9892. "LucasHenry116@gmail.com"
  9893. ]
  9894. },
  9895. {
  9896. "personCode": "920A",
  9897. "firstName": "Kayli",
  9898. "lastName": "Decker",
  9899. "address": {
  9900. "street": "529 N 9th St",
  9901. "city": "Lincoln",
  9902. "state": "NE",
  9903. "zip": "68544",
  9904. "country": "USA"
  9905. }
  9906. },
  9907. {
  9908. "personCode": "389W",
  9909. "firstName": "Billy",
  9910. "lastName": "Walsh",
  9911. "address": {
  9912. "street": "809 Folsom St",
  9913. "city": "San Diego",
  9914. "state": "CA",
  9915. "zip": "90210",
  9916. "country": "USA"
  9917. },
  9918. "emails": [
  9919. "walshbilly@hotmail.com"
  9920. ]
  9921. },
  9922. {
  9923. "personCode": "302q",
  9924. "firstName": "Eric",
  9925. "lastName": "Chase",
  9926. "address": {
  9927. "street": "201 Queens Blvd",
  9928. "city": "New York City",
  9929. "state": "NY",
  9930. "zip": "10221",
  9931. "country": "USA"
  9932. },
  9933. "emails": [
  9934. "vchase@aol.com"
  9935. ]
  9936. },
  9937. {
  9938. "personCode": "021p",
  9939. "firstName": "Chris",
  9940. "lastName": "Williams",
  9941. "address": {
  9942. "street": "201 Sunset Blvd",
  9943. "city": "Los Angeles",
  9944. "state": "CA",
  9945. "zip": "90212",
  9946. "country": "USA"
  9947. }
  9948. }
  9949. ]
  9950. }
  9951. }
  9952. ::::::::::::::
  9953. ./data/Products.json
  9954. ::::::::::::::
  9955. {
  9956. "products": [ {
  9957. "code": "39fn",
  9958. "name": "Cinco Visual Interface",
  9959. "pricePerUnit": 500.0
  9960. },
  9961. {
  9962. "code": "49fj",
  9963. "name": "Cinco Computer System",
  9964. "pricePerUnit": 1499.99
  9965. },
  9966. {
  9967. "code": "f942",
  9968. "name": "Internette Discs",
  9969. "consultant": {
  9970. "personCode": "389W",
  9971. "firstName": "Billy",
  9972. "lastName": "Walsh",
  9973. "address": {
  9974. "street": "809 Folsom St",
  9975. "city": "San Diego",
  9976. "state": "CA",
  9977. "zip": "90210",
  9978. "country": "USA"
  9979. },
  9980. "emails": [
  9981. "walshbilly@hotmail.com"
  9982. ]
  9983. },
  9984. "hourlyFee": 14.99
  9985. },
  9986. {
  9987. "code": "gj40",
  9988. "name": "Cinco Music Shuffler System",
  9989. "serviceFee": 500.0,
  9990. "annualLicenseFee": 2500.0
  9991. }
  9992. ]}
  9993.  
  9994. nbauman
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement