Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cse156h Program Grade Checker - Grader Interface
- This interface is for graders
- Grade A Student's Program
- CSE Login
- CSE Password
- Student CSE Login
- Assignment
- Individual Grade Results
- Results for (Nathaniel Bauman) (nbauman)
- Homework 2
- [-] Test Suite CSCE 156H/RAIK 184H - Spring 2016 - Assignment 2 - EDI Phase - Grader Suite
- This is a test suite for Assignment 2, XML/JSON output.
- 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.
- [-] Source Files
- [-] Equipment.java
- package cse.unl.edu;
- public class Equipment extends Product {
- private double pricePerUnit;
- public Equipment(String code, char type, String name, double pricePerUnit) {
- super(code, type, name);
- this.pricePerUnit = pricePerUnit;
- }
- @Override
- public String toString() {
- String eq = "Equipment [pricePerUnit=" + pricePerUnit + "]";
- return super.toString() + " " + eq;
- }
- public double getPricePerUnit() {
- return pricePerUnit;
- }
- public void setPricePerUnit(double pricePerUnit) {
- this.pricePerUnit = pricePerUnit;
- }
- }
- [-] Person.java
- package cse.unl.edu;
- import java.util.Arrays;
- import com.thoughtworks.xstream.XStream;
- import com.thoughtworks.xstream.io.json.JsonHierarchicalStreamDriver;
- public class Person {
- @Override
- public String toString() {
- return "Person [" + (personCode != null ? "personCode=" + personCode + ", " : "")
- + (firstName != null ? "firstName=" + firstName + ", " : "")
- + (lastName != null ? "lastName=" + lastName + ", " : "")
- + (address != null ? "address=" + address + ", " : "")
- + (emails != null ? "emails=" + Arrays.toString(emails) : "") + "]";
- }
- private String personCode;
- private String firstName;
- private String lastName;
- private Address address;
- private String emails[];
- public Person(String personCode, String firstName, String lastName, Address address, String[] emails) {
- this.personCode = personCode;
- this.firstName = firstName;
- this.lastName = lastName;
- this.address = address;
- this.emails = emails;
- }
- public Person(String personCode, String firstName, String lastName, Address address) {
- this.emails = null;
- this.personCode = personCode;
- this.firstName = firstName;
- this.lastName = lastName;
- this.address = address;
- }
- public String getPersonCode() {
- return personCode;
- }
- public void setPersonCode(String personCode) {
- this.personCode = personCode;
- }
- public String getFirstName() {
- return firstName;
- }
- public void setFirstName(String firstName) {
- this.firstName = firstName;
- }
- public String getLastName() {
- return lastName;
- }
- public void setLastName(String lastName) {
- this.lastName = lastName;
- }
- public Address getAddress() {
- return address;
- }
- public void setAddress(Address address) {
- this.address = address;
- }
- public String[] getEmails() {
- return emails;
- }
- public void setEmails(String[] emails) {
- this.emails = emails;
- }
- //creates XML formatting for an individual Person
- public String toXML(){
- XStream xstream = new XStream();
- xstream.alias("person", Person.class);
- xstream.alias("address", Address.class);
- return xstream.toXML(this);
- }
- //creates XML formatting for an array of People
- public static String arrayToXML(Person[] people){
- String xml = "<persons>\n";
- for(Person p : people){
- xml += p.toXML() + "\n";
- }
- xml += "</persons>";
- xml = xml.replaceAll("string", "email");
- return xml;
- }
- //uses xStream and replaces incorrect formatting to create JSON data from the Customer
- public String toJSON(){
- XStream xstream = new XStream(new JsonHierarchicalStreamDriver());
- xstream.setMode(XStream.NO_REFERENCES);
- xstream.alias("person", Person.class);
- xstream.alias("address", Address.class);
- String json = xstream.toXML(this);
- String json2 = json.replace("{\"person\": {", "{");
- String json3 = json2.replaceAll("}}","},");
- return json3;
- }
- //indents all the lines in a String
- //used to correctly indent objects belonging to other objects when printing in JSON
- public static String addSpace(String s, int n) {
- String nLine,nnLine = "", str = "";
- String line[] = s.split("\n");
- //adds n number of spaces
- for(int i=0; i<n; i++) {
- str += " ";
- }
- //adds n number of spaces in front of each line
- for(int i=0; i<line.length; i++) {
- nLine = str + line[i];
- if(line[i] != line[line.length-1]) {
- nLine += "\n";
- }
- nnLine += nLine;
- }
- return nnLine;
- }
- //creates JSON formatting for an array of People
- public static String arrayToJSON(Person[] people){
- String xml = "{\n \"persons\": {\n \"person\": [\n";
- for(Person p : people){
- xml += addSpace(p.toJSON(),4) + "\n";
- }
- xml += " ]\n }\n}\n";
- xml = xml.replaceAll("},\n ]","}\n ]");
- return xml;
- }
- }
- [-] DataConverter.java
- package cse.unl.edu;
- import java.io.File;
- import java.io.FileNotFoundException;
- import java.io.PrintWriter;
- import java.util.Scanner;
- public class DataConverter {
- public static void main(String[] args) throws FileNotFoundException{
- int i = 0;
- String line = "";
- //Scans and retrieves data from the persons file
- Scanner sc = new Scanner(new File("data/Persons.dat"));
- //retrieves the number of lines in the file
- int numberOfLines = Integer.parseInt(sc.nextLine());
- Person people[] = new Person[numberOfLines];
- //tokenizes and organizes data
- while (i<numberOfLines) {
- line = sc.nextLine();
- String tokens[] = line.split(";");
- String personCode = tokens[0].trim();
- String name[] = tokens[1].split(",");
- String firstName = name[1].trim();
- String lastName = name[0].trim();
- String add[] = tokens[2].split(",");
- String street = add[0].trim();
- String city = add[1].trim();
- String state = add[2].trim();
- String zip = add[3].trim();
- String country = add[4].trim();
- Address address = null;
- //zip may be empty, so check it before constructing Address using one of two constructors
- if(zip.isEmpty()){
- address = new Address(street, city, state, country);
- }else{
- address = new Address(street, city, state, zip, country);
- }
- //constructing using fields above
- if(tokens.length <= 3){
- people[i] = new Person(personCode, firstName, lastName, address);
- }else{
- String emails[] = tokens[3].split(",");
- for(String email:emails){
- email = email.trim();
- }
- people[i] = new Person(personCode, firstName, lastName, address, emails);
- }
- //System.out.println(people[i].toString());
- i++;
- }
- sc.close();
- //reads in data from Customers file
- i = 0;
- String line2 = "";
- Scanner sc2 = new Scanner(new File("data/Customers.dat"));
- //retrieves the number of lines in the file
- int numberOfLines2 = Integer.parseInt(sc2.nextLine());
- Customer customers[] = new Customer[numberOfLines2];
- //tokenizes and organizes data
- while (i<numberOfLines2) {
- line2 = sc2.nextLine();
- String tokens[] = line2.split(";", 5);
- String customerCode = tokens[0].trim();
- char type = tokens[1].charAt(0);
- String personCode = tokens[3].trim();
- Person primaryContact = null;
- for(int j=0; j<people.length; j++){
- if(people[j].getPersonCode().equals(personCode)){
- primaryContact = people[j];
- }
- }
- String company = tokens[3].trim();
- String add[] = tokens[4].split(",", 5);
- String street = add[0].trim();
- String city = add[1].trim();
- String state = add[2].trim();
- String zip = add[3].trim();
- String country = add[4].trim();
- Address address = null;
- //test to see if there is a zip code
- if(zip.isEmpty()){
- address = new Address(street, city, state, country);
- }else{
- address = new Address(street, city, state, zip, country);
- }
- //constructs Customer using fields
- customers[i] = new Customer(customerCode, type, primaryContact, company, address);
- System.out.println(customers[i].toString());
- i++;
- }
- sc2.close();
- //Scans and retrieves data from the persons file
- i = 0;
- String line3 = "";
- Scanner sc3 = new Scanner(new File("data/Products.dat"));
- //retrieves the number of lines in the file
- int numberOfLines3 = Integer.parseInt(sc3.nextLine());
- Product products[] = new Product[numberOfLines3];
- //tokenizes and organizes data
- while (i<numberOfLines3){
- line3 = sc3.nextLine();
- String tokens[] = line3.split(";", 5);
- String productCode = tokens[0].trim();
- char type = tokens[1].charAt(0);
- String companyName = tokens[2].trim();
- //Tests to see which subclass of Product the object is and retrieves the object's unique variables and constructs the object
- if(type == 'E'){
- double pricePerUnit = Double.parseDouble(tokens[3].trim());
- Product E = new Equipment(productCode, type, companyName, pricePerUnit);
- products[i] = E;
- }else if(type == 'L'){
- double serviceFee = Double.parseDouble(tokens[3].trim());
- double annualLicenseFee = Double.parseDouble(tokens[4].trim());
- Product L = new License(productCode, type, companyName, serviceFee, annualLicenseFee);
- products[i] = L;
- }else if(type == 'C'){
- String personCode = tokens[3].trim();
- Person consultant = null;
- for(Person p : people){
- if(p.getPersonCode().equals(personCode)) {
- consultant = p;
- }
- }
- double hourlyFee = Double.parseDouble(tokens[4].trim());
- Product C = new Consultation(productCode, type, companyName, consultant, hourlyFee);
- products[i] = C;
- }
- System.out.println(products[i].toString());
- i++;
- }
- sc3.close();
- //writes the data to the respective file
- PrintWriter pw = new PrintWriter(new File("data/Persons.xml"));
- pw.print(Person.arrayToXML(people));
- pw.close();
- PrintWriter pw2 = new PrintWriter(new File("data/Persons.json"));
- pw2.print(Person.arrayToJSON(people));
- pw2.close();
- PrintWriter pw3 = new PrintWriter(new File("data/Customers.xml"));
- pw3.print(Customer.arrayToXML(customers));
- pw3.close();
- PrintWriter pw4 = new PrintWriter(new File("data/Customers.json"));
- pw4.print(Customer.arrayToXML(customers));
- pw4.close();
- PrintWriter pw5 = new PrintWriter(new File("data/Products.xml"));
- pw5.print(Product.arrayToXML(products));
- pw5.close();
- PrintWriter pw6 = new PrintWriter(new File("data/Products.json"));
- pw6.print(Product.arrayToJSON(products));
- pw6.close();
- }
- }
- [-] Product.java
- package cse.unl.edu;
- import com.thoughtworks.xstream.XStream;
- import com.thoughtworks.xstream.io.json.JsonHierarchicalStreamDriver;
- public abstract class Product {
- private String code;
- private char type;
- private String name;
- public Product(String code, char type, String name) {
- this.code = code;
- this.type = type;
- this.name = name;
- }
- @Override
- public String toString() {
- return "Product [" + (code != null ? "code=" + code + ", " : "") + "type=" + type + ", "
- + (name != null ? "name=" + name : "") + "]";
- }
- public String getCode() {
- return code;
- }
- public void setCode(String code) {
- this.code = code;
- }
- public char getType() {
- return type;
- }
- public void setType(char type) {
- this.type = type;
- }
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- //creates XML formatting for an individual Product
- public String toXML(){
- XStream xstream = new XStream();
- xstream.alias("person", Person.class);
- xstream.alias("address", Address.class);
- xstream.aliasField("productCode", Product.class, "code");
- xstream.alias("license", License.class);
- xstream.alias("equipment", Equipment.class);
- xstream.alias("consultation", Consultation.class);
- xstream.omitField(Product.class, "type");
- xstream.aliasField("fee", License.class, "serviceFee");
- xstream.aliasField("annualCost", License.class, "annualLicenseFee");
- xstream.aliasField("pricePerHour", Consultation.class, "hourlyFee");
- return xstream.toXML(this);
- }
- //creates XML formatting for an array of Products
- public static String arrayToXML(Product[] products){
- String xml = "<products>\n";
- for(Product p : products){
- xml += p.toXML() + "\n";
- }
- xml += "</products>";
- return xml;
- }
- //uses xStream and replaces incorrect formatting to create JSON data from the Product
- public String toJSON(){
- XStream xstream = new XStream(new JsonHierarchicalStreamDriver());
- xstream.setMode(XStream.NO_REFERENCES);
- xstream.alias("x", License.class);
- xstream.alias("x", Equipment.class);
- xstream.alias("x", Consultation.class);
- xstream.omitField(Product.class, "type");
- String json = xstream.toXML(this);
- String json2 = json.replace("{\"x\": {", "{");
- String json3 = json2.replaceAll("}}", "},");
- return json3;
- }
- //creates JSON formatting for an array of Products
- static String arrayToJSON(Product[] products){
- String xml = "{\n\"products\": [";
- for(Product p: products){
- xml += Person.addSpace(p.toJSON(), 2) + "\n";
- }
- xml += "]}";
- xml = xml.replaceAll("},\n]}", "}\n]}");
- return xml;
- }
- }
- [-] Customer.java
- package cse.unl.edu;
- import com.thoughtworks.xstream.XStream;
- import com.thoughtworks.xstream.io.json.JsonHierarchicalStreamDriver;
- public class Customer {
- private String customerCode;
- private String companyName;
- private Address address;
- private Person primaryContact;
- private char type;
- public Customer(String customerCode, char type, Person primaryContact, String companyName, Address address) {
- this.customerCode = customerCode;
- this.type = type;
- this.primaryContact = primaryContact;
- this.companyName = companyName;
- this.address = address;
- }
- public String getCustomerCode() {
- return customerCode;
- }
- public void setCustomerCode(String customerCode) {
- this.customerCode = customerCode;
- }
- @Override
- public String toString() {
- return "Customer [" + (customerCode != null ? "customerCode=" + customerCode + ", " : "") + "type=" + type
- + ", " + (primaryContact != null ? "primaryContact=" + primaryContact + ", " : "")
- + (companyName != null ? "companyName=" + companyName + ", " : "")
- + (address != null ? "address=" + address : "") + "]";
- }
- public Address getAddress() {
- return address;
- }
- public void setAddress(Address address) {
- this.address = address;
- }
- public String getCompanyName() {
- return companyName;
- }
- public void setCompanyName(String companyName) {
- this.companyName = companyName;
- }
- public Person getPrimaryContact() {
- return primaryContact;
- }
- public void setPrimaryContact(Person primaryContact) {
- this.primaryContact = primaryContact;
- }
- public char getType() {
- return type;
- }
- public void setType(char type) {
- this.type = type;
- }
- //creates XML formatting for an individual Customer
- public String toXML(){
- XStream xstream = new XStream();
- xstream.alias("person", Person.class);
- xstream.alias("address", Address.class);
- if(this.getType() == 'G'){
- xstream.alias("governmentCustomer", Customer.class);
- }else if(this.getType() == 'C'){
- xstream.alias("companyCustomer", Customer.class);
- }
- xstream.omitField(Customer.class, "type");
- return xstream.toXML(this);
- }
- //creates XML formatting for an array of Customers
- public static String arrayToXML(Customer[] customer){
- String xml = "<customers>\n";
- for(Customer c : customer){
- xml += c.toXML() + "\n";
- }
- xml += "</customers>";
- xml = xml.replaceAll("string", "email");
- return xml;
- }
- //uses xStream and replaces incorrect formatting to create JSON data from the Customer
- public String toJSON(){
- XStream xstream = new XStream(new JsonHierarchicalStreamDriver());
- xstream.setMode(XStream.NO_REFERENCES);
- xstream.alias("c", Customer.class);
- xstream.alias("address", Address.class);
- xstream.omitField(Customer.class, "type");
- String json = xstream.toXML(this);
- String json2 = json.replace("{\"c\": {", "{");
- String json3 = json2.replaceAll("}}", "},");
- return json3;
- }
- //creates JSON formatting for an array of Customers
- public static String arrayToJSON(Customer[] customers){
- String xml = "{\n\"customers\": [\n";
- for(Customer c: customers){
- xml += Person.addSpace(c.toJSON(), 2) + "\n";
- }
- xml += "]}";
- xml = xml.replaceAll("},\n]}","}\n]}");
- return xml;
- }
- }
- [-] License.java
- package cse.unl.edu;
- public class License extends Product {
- private double serviceFee;
- private double annualLicenseFee;
- public License(String code, char type, String name, double serviceFee, double annualLicenseFee) {
- super(code, type, name);
- this.serviceFee = serviceFee;
- this.annualLicenseFee = annualLicenseFee;
- }
- @Override
- public String toString() {
- String li = "License [serviceFee=" + serviceFee + ", annualLicenseFee=" + annualLicenseFee + "]";
- return super.toString() + " " + li;
- }
- public double getServiceFee() {
- return serviceFee;
- }
- public void setServiceFee(double serviceFee) {
- this.serviceFee = serviceFee;
- }
- public double getAnnualLicenseFee() {
- return annualLicenseFee;
- }
- public void setAnnualLicenseFee(double annualLicenseFee) {
- this.annualLicenseFee = annualLicenseFee;
- }
- }
- [-] Consultation.java
- package cse.unl.edu;
- public class Consultation extends Product{
- private Person consultant;
- private double hourlyFee;
- public Consultation(String code, char type, String name, Person consultant, double hourlyFee) {
- super(code, type, name);
- this.consultant = consultant;
- this.hourlyFee = hourlyFee;
- }
- @Override
- public String toString() {
- String con = "Consultation [" + (consultant != null ? "consultant=" + consultant + ", " : "") + "hourlyFee="
- + hourlyFee + "]";
- return super.toString() + " " + con;
- }
- public Person getConsultant() {
- return consultant;
- }
- public void setConsultant(Person consultant) {
- this.consultant = consultant;
- }
- public double getHourlyFee() {
- return hourlyFee;
- }
- public void setHourlyFee(double hourlyFee) {
- this.hourlyFee = hourlyFee;
- }
- }
- [-] Address.java
- package cse.unl.edu;
- public class Address {
- private String street;
- private String city;
- private String state;
- private String zip;
- private String country;
- public Address(String street, String city, String state, String country) {
- this.zip = null;
- this.street = street;
- this.city = city;
- this.state = state;
- this.country = country;
- }
- public Address(String street, String city, String state, String zip, String country) {
- this.street = street;
- this.city = city;
- this.state = state;
- this.zip = zip;
- this.country = country;
- }
- public String getStreet() {
- return street;
- }
- public void setStreet(String street) {
- this.street = street;
- }
- public String getCity() {
- return city;
- }
- public void setCity(String city) {
- this.city = city;
- }
- public String getState() {
- return state;
- }
- public void setState(String state) {
- this.state = state;
- }
- @Override
- public String toString() {
- return "Address [street=" + street + ", city=" + city + ", state=" + state + ", zip=" + zip + ", country="
- + country + "]";
- }
- public String getZip() {
- return zip;
- }
- public void setZip(String zip) {
- this.zip = zip;
- }
- public String getCountry() {
- return country;
- }
- public void setCountry(String country) {
- this.country = country;
- }
- }
- Running Test Module Commands...
- [-] Test Module Cinco Invoice System
- Checking for required files...
- [-] Pre Testing Commands
- [-] Zip Archive File Contents (did you build it right?)
- Archive: DataConverter.zip
- Length Date Time Name
- --------- ---------- ----- ----
- 606 2016-02-09 17:51 Project/.classpath
- 383 2016-02-09 17:48 Project/.project
- 598 2016-02-09 17:48 Project/.settings/org.eclipse.jdt.core.prefs
- 2037 2016-02-09 17:51 Project/bin/cse/unl/edu/Address.class
- 1666 2016-02-09 17:54 Project/bin/cse/unl/edu/Consultation.class
- 4404 2016-02-11 17:57 Project/bin/cse/unl/edu/Customer.class
- 6103 2016-02-11 18:27 Project/bin/cse/unl/edu/DataConverter.class
- 1160 2016-02-09 17:51 Project/bin/cse/unl/edu/Equipment.class
- 1420 2016-02-09 17:51 Project/bin/cse/unl/edu/License.class
- 4963 2016-02-11 17:58 Project/bin/cse/unl/edu/Person.class
- 3753 2016-02-11 17:58 Project/bin/cse/unl/edu/Product.class
- 56702 2016-02-08 19:08 Project/lib/jettison-1.0.1.jar
- 48224 2016-02-08 19:52 Project/lib/json-20151123.jar
- 7188 2016-02-08 16:23 Project/lib/xmlpull-1.1.3.1.jar
- 24956 2016-02-08 16:22 Project/lib/xpp3_min-1.1.4c.jar
- 538830 2016-02-08 16:04 Project/lib/xstream-1.4.8.jar
- 1366 2016-02-08 15:32 Project/src/cse/unl/edu/Address.java
- 861 2016-02-09 17:54 Project/src/cse/unl/edu/Consultation.java
- 3321 2016-02-11 17:57 Project/src/cse/unl/edu/Customer.java
- 5788 2016-02-11 18:27 Project/src/cse/unl/edu/DataConverter.java
- 574 2016-02-05 15:45 Project/src/cse/unl/edu/Equipment.java
- 878 2016-02-05 15:43 Project/src/cse/unl/edu/License.java
- 3828 2016-02-11 17:58 Project/src/cse/unl/edu/Person.java
- 2710 2016-02-11 17:58 Project/src/cse/unl/edu/Product.java
- --------- -------
- 722319 24 files
- [-] Jar File Contents
- META-INF/MANIFEST.MF
- org/
- org/eclipse/
- org/eclipse/jdt/
- org/eclipse/jdt/internal/
- org/eclipse/jdt/internal/jarinjarloader/
- org/eclipse/jdt/internal/jarinjarloader/JIJConstants.class
- org/eclipse/jdt/internal/jarinjarloader/JarRsrcLoader$ManifestInfo.class
- org/eclipse/jdt/internal/jarinjarloader/JarRsrcLoader.class
- org/eclipse/jdt/internal/jarinjarloader/RsrcURLConnection.class
- org/eclipse/jdt/internal/jarinjarloader/RsrcURLStreamHandler.class
- org/eclipse/jdt/internal/jarinjarloader/RsrcURLStreamHandlerFactory.class
- cse/
- cse/unl/
- cse/unl/edu/
- cse/unl/edu/DataConverter.class
- cse/unl/edu/Equipment.class
- cse/unl/edu/Consultation.class
- cse/unl/edu/Person.class
- cse/unl/edu/License.class
- cse/unl/edu/Customer.class
- cse/unl/edu/Address.class
- cse/unl/edu/Product.class
- jettison-1.0.1.jar
- json-20151123.jar
- xmlpull-1.1.3.1.jar
- xpp3_min-1.1.4c.jar
- xstream-1.4.8.jar
- Running Test Cases...
- [-] Test Case Test Case 0 (student's own test case)
- Expected Output
- Data and output files handed in:
- Customers.dat:
- 6
- C001;G;Dept. of Wal-Mart;saslakdfj;6633 Thunder Panda Freeway, Judge Town, MB, R4D-5B5,CA
- C002;G;Dept. of Pizza Hut;sldkfje3;260 Bay Street,Smyrna,GA,30080,USA
- C003;C;Frito-Lay;flksd12;912 B Street,Philadelphia,OH,44663,USA
- C004;G;Dept. of Coca-Cola Co.;3lkjfds;6289 Silver Pines, Surprise Valley, MB, R2P-8B6,CA
- C005;C;Disney;lskdfj;400 Buttonwood Drive,Glendale Heights,IL,60139,USA
- C006;G;Dept. of Toys R Us;sldkf21;996 Cobblestone Court,New Berlin,WI,53151,USA
- Persons.dat:
- 20
- saslakdfj;Christensen, Hal;768 Main Street North,Fairborn,OH,45324,USA;awing-awang@balivision.com
- sldkfje3;Obrien, Minh;826 Tanglewood Drive,Bluffton,SC,29910,USA;balihai@q-net.net.id
- flksd12;Gallagher, Madelene;722 Durham Road,Hoboken,NJ,07030,USA;alampuri@resortgallery.com
- 3lkjfds;George, Joannie;996 Cobblestone Court,New Berlin,WI,53151,USA;info@baliadventuretours.com
- lskdfj;Saunders, Hiroko;716 West Street,Wadsworth,OH,44281,USA;jawi@dps.centrin.net.id
- sldkf21;Moss, Lyle;331 Arlington Avenue,Hackettstown,NJ,07840,USA;wisantaradps@yahoo.com
- 213dlkfj;Fox, Elliott;514 Park Place,Brownsburg,IN,46112,USA;sbtours@indosat.net.id,nbauman663@gmail.com
- 234dfkjd;Martinez, Hannelore;260 Bay Street,Smyrna,GA,30080,USA;evi@mas-travel.com
- 2342kljf;Hampton, Hubert;283 Woodland Avenue,Cambridge,MA,02138,USA;haryo.santoso@trac.astra.co.id
- 32kjlk2l;Lloyd, Mohammed;974 Lexington Drive,Kenosha,WI,53140,USA;marketing@balivisioncomputer.com
- dlkfjk32;Giles, Angie;400 Buttonwood Drive,Glendale Heights,IL,60139,USA;dsartika@internux.net.id
- sldkfjlk3;Lyons, Edelmira;565 Fawn Court,Winter Springs,FL,32708,USA;a6us_kurniawan@yahoo.co.id
- fkjslkj32;Mora, Carletta;561 Edgewood Road,Solon,OH,44139,USA;bernitha_widinansari@yahoo.co.id
- s123askfj;Arellano, Horacio;912 B Street,Philadelphia,OH,44663,USA;elkahiri@yahoo.co.id
- dklfjkkl3;Wong, Kand;621 East Avenue,Brownsburg,IN,46112,USA;faisal_silin@yahoo.com
- laskdfj;Marks, Ebonie;861 Jackson Avenue,Clemmons,NC,27012,USA;fauzantan@yahoo.com
- vnxcmvn8;Orr, Nobuko;6289 Silver Pines, Surprise Valley, MB, R2P-8B6,CA;fidiyono_bali@yahoo.com
- dlskfj24;Soto, Thi;6633 Thunder Panda Freeway, Judge Town, MB, R4D-5B5,CA;gdiezzmewth@yahoo.co.id
- slkdfjllj4;Campbell, Sharita;8807 Quiet Lane, Elephant Butte, YK, Y1O-8K0,CA;itha_ersita@yahoo.com
- slkdfjlk2;Gillespie, Wilber;9590 Dusty Orchard, Red Wash, SK, S1X-1H7,CA;waow_one@yahoo.co.id
- Products.dat:
- 9
- b29e;E;Cinco MIDI Organizer;2500.0
- ff23;E;Cinco-Fone;124.99
- fp12;E;Internette Discs;14.99
- 1239;E;Cinco Video Cube Playback System;5000.00
- 90fa;L;Cinco Long Distance Service;2000.00;12000.00
- 3289;C;Cinco-Fone Training;aef1;25.00
- 782g;C;Server System Setup;321nd;150.00
- 3294;L;Cloud SQL Hosting;0.00;35000.00
- 3295;L;Domain registration;350.00;1200.00
- Customers.xml:
- <?xml version="1.0"?>
- <customers>
- <governmentCustomer>
- <customerCode>C001</customerCode>
- <name>Dept. of Wal-Mart</name>
- <address>
- <street>6633 Thunder Panda Freeway</street>
- <city>Judge Town</city>
- <state>MB</state>
- <zip>R4D-5B5</zip>
- <country>CA</country>
- </address>
- <primaryContact>
- <personCode>saslakdfj</personCode>
- <firstName>Hal</firstName>
- <lastName>Christensen</lastName>
- <address>
- <street>768 Main Street North</street>
- <city>Fairborn</city>
- <state>OH</state>
- <zip>45324</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>awing-awang@balivision.com</email>
- </emails>
- </primaryContact>
- </governmentCustomer>
- <governmentCustomer>
- <customerCode>C002</customerCode>
- <name>Dept. of Pizza Hut</name>
- <address>
- <street>260 Bay Street</street>
- <city>Smyrna</city>
- <state>GA</state>
- <zip>30080</zip>
- <country>USA</country>
- </address>
- <primaryContact>
- <personCode>sldkfje3</personCode>
- <firstName>Minh</firstName>
- <lastName>Obrien</lastName>
- <address>
- <street>826 Tanglewood Drive</street>
- <city>Bluffton</city>
- <state>SC</state>
- <zip>29910</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>balihai@q-net.net.id</email>
- </emails>
- </primaryContact>
- </governmentCustomer>
- <companyCustomer>
- <customerCode>C003</customerCode>
- <name>Frito-Lay</name>
- <address>
- <street>912 B Street</street>
- <city>Philadelphia</city>
- <state>OH</state>
- <zip>44663</zip>
- <country>USA</country>
- </address>
- <primaryContact>
- <personCode>flksd12</personCode>
- <firstName>Madelene</firstName>
- <lastName>Gallagher</lastName>
- <address>
- <street>722 Durham Road</street>
- <city>Hoboken</city>
- <state>NJ</state>
- <zip>07030</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>alampuri@resortgallery.com</email>
- </emails>
- </primaryContact>
- </companyCustomer>
- <governmentCustomer>
- <customerCode>C004</customerCode>
- <name>Dept. of Coca-Cola</name>
- <address>
- <street>6289 Silver Pines</street>
- <city>Surprise Valley</city>
- <state>MB</state>
- <zip>R2P-8B6</zip>
- <country>CA</country>
- </address>
- <primaryContact>
- <personCode>3lkjfds</personCode>
- <firstName>Joannie</firstName>
- <lastName>George</lastName>
- <address>
- <street>996 Cobblestone Court</street>
- <city>New Berlin</city>
- <state>WI</state>
- <zip>53151</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>info@baliadventuretours.com</email>
- </emails>
- </primaryContact>
- </governmentCustomer>
- <companyCustomer>
- <customerCode>C005</customerCode>
- <name>Disney</name>
- <address>
- <street>400 Buttonwood Drive</street>
- <city>Glendale Heights</city>
- <state>IL</state>
- <zip>60139</zip>
- <country>USA</country>
- </address>
- <primaryContact>
- <personCode>lskdfj</personCode>
- <firstName>Hiroko</firstName>
- <lastName>Saunders</lastName>
- <address>
- <street>716 West Street</street>
- <city>Wadsworth</city>
- <state>OH</state>
- <zip>44281</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>jawi@dps.centrin.net.id</email>
- </emails>
- </primaryContact>
- </companyCustomer>
- <governmentCustomer>
- <customerCode>C006</customerCode>
- <name>Dept. Toys R Us</name>
- <address>
- <street>996 Cobblestone Court</street>
- <city>New Berlin</city>
- <state>WI</state>
- <zip>53151</zip>
- <country>USA</country>
- </address>
- <primaryContact>
- <personCode>sldkf21</personCode>
- <firstName>Lyle</firstName>
- <lastName>Moss</lastName>
- <address>
- <street>331 Arlington Avenue</street>
- <city>Hackettstown</city>
- <state>NJ</state>
- <zip>07840</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>wisantaradps@yahoo.com</email>
- </emails>
- </primaryContact>
- </governmentCustomer>
- </customers>
- Persons.xml:
- <?xml version="1.0"?>
- <persons>
- <person>
- <personCode>saslakdfj</personCode>
- <firstName>Hal</firstName>
- <lastName>Christensen</lastName>
- <address>
- <street>768 Main Street North</street>
- <city>Fairborn</city>
- <state>OH</state>
- <zip>45324</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>awing-awang@balivision.com</email>
- </emails>
- </person>
- <person>
- <personCode>sldkfje3</personCode>
- <firstName>Minh</firstName>
- <lastName>Obrien</lastName>
- <address>
- <street>826 Tanglewood Drive</street>
- <city>Bluffton</city>
- <state>SC</state>
- <zip>29910</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>balihai@q-net.net.id</email>
- </emails>
- </person>
- <person>
- <personCode>flksd12</personCode>
- <firstName>Madelene</firstName>
- <lastName>Gallagher</lastName>
- <address>
- <street>722 Durham Road</street>
- <city>Hoboken</city>
- <state>NJ</state>
- <zip>07030</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>alampuri@resortgallery.com</email>
- </emails>
- </person>
- <person>
- <personCode>3lkjfds</personCode>
- <firstName>Joannie</firstName>
- <lastName>George</lastName>
- <address>
- <street>996 Cobblestone Court</street>
- <city>New Berlin</city>
- <state>WI</state>
- <zip>53151</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>info@baliadventuretours.com</email>
- </emails>
- </person>
- <person>
- <personCode>lskdfj</personCode>
- <firstName>Hiroko</firstName>
- <lastName>Saunders</lastName>
- <address>
- <street>716 West Street</street>
- <city>Wadsworth</city>
- <state>OH</state>
- <zip>44281</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>jawi@dps.centrin.net.id</email>
- </emails>
- </person>
- <person>
- <personCode>sldkf21</personCode>
- <firstName>Lyle</firstName>
- <lastName>Moss</lastName>
- <address>
- <street>331 Arlington Avenue</street>
- <city>Hackettstown</city>
- <state>NJ</state>
- <zip>07840</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>wisantaradps@yahoo.com</email>
- </emails>
- </person>
- <person>
- <personCode>213dlkfj</personCode>
- <firstName>Elliott</firstName>
- <lastName>Fox</lastName>
- <address>
- <street>514 Park Place</street>
- <city>Brownsburg</city>
- <state>IN</state>
- <zip>46112</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>sbtours@indosat.net.id</email>
- <email>nbauman663@gmail.com</email>
- </emails>
- </person>
- <person>
- <personCode>234dfkjd</personCode>
- <firstName>Martinez</firstName>
- <lastName>Hannelore</lastName>
- <address>
- <street>260 Bay Street</street>
- <city>Smyrna</city>
- <state>GA</state>
- <zip>30080</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>evi@mas-travel.com</email>
- </emails>
- </person>
- <person>
- <personCode>2342kljf</personCode>
- <firstName>Hampton</firstName>
- <lastName>Hubert</lastName>
- <address>
- <street>283 Woodland Avenue</street>
- <city>Cambridge</city>
- <state>MA</state>
- <zip>02138</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>haryo.santoso@trac.astra.co.id</email>
- </emails>
- </person>
- <person>
- <personCode>32kjlk2l</personCode>
- <firstName>Mohammed</firstName>
- <lastName>Lloyd</lastName>
- <address>
- <street>974 Lexington Drive</street>
- <city>Kenosha</city>
- <state>WI</state>
- <zip>53140</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>marketing@balivisioncomputer.com</email>
- </emails>
- </person>
- <person>
- <personCode>dlkfjk32</personCode>
- <firstName>Angie</firstName>
- <lastName>Giles</lastName>
- <address>
- <street>400 Buttonwood Drive</street>
- <city>Glendale Heights</city>
- <state>IL</state>
- <zip>60139</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>dsartika@internux.net.id</email>
- </emails>
- </person>
- <person>
- <personCode>sldkfjlk3</personCode>
- <firstName>Lyons</firstName>
- <lastName>Edelmira</lastName>
- <address>
- <street>565 Fawn Court</street>
- <city>Winter Springs</city>
- <state>FL</state>
- <zip>32708</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>a6us_kurniawan@yahoo.co.id</email>
- </emails>
- </person>
- <person>
- <personCode>fkjslkj32</personCode>
- <firstName>Mora</firstName>
- <lastName>Carletta</lastName>
- <address>
- <street>561 Edgewood Road</street>
- <city>Solon</city>
- <state>OH</state>
- <zip>44139</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>bernitha_widinansari@yahoo.co.id</email>
- </emails>
- </person>
- <person>
- <personCode>s123askfj</personCode>
- <firstName>Horacio</firstName>
- <lastName>Arellano</lastName>
- <address>
- <street>912 B Street</street>
- <city>Philadelphia</city>
- <state>OH</state>
- <zip>44663</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>elkahiri@yahoo.co.id</email>
- </emails>
- </person>
- <person>
- <personCode>dklfjkkl3</personCode>
- <firstName>Kand</firstName>
- <lastName>Wong</lastName>
- <address>
- <street>621 East Avenue</street>
- <city>Brownsburg</city>
- <state>IN</state>
- <zip>46112</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>faisal_silin@yahoo.com</email>
- </emails>
- </person>
- <person>
- <personCode>laskdfj</personCode>
- <firstName>Ebonie</firstName>
- <lastName>Marks</lastName>
- <address>
- <street>861 Jackson Avenue</street>
- <city>Clemmons</city>
- <state>NC</state>
- <zip>27012</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>fauzantan@yahoo.com</email>
- </emails>
- </person>
- <person>
- <personCode>vnxcmvn8</personCode>
- <firstName>Nobuko</firstName>
- <lastName>Orr</lastName>
- <address>
- <street>6289 Silver Pines</street>
- <city>Surprise Valley</city>
- <state>MB</state>
- <zip>R2P-8B6</zip>
- <country>CA</country>
- </address>
- <emails>
- <email>fidiyono_bali@yahoo.com</email>
- </emails>
- </person>
- <person>
- <personCode>dlskfj24</personCode>
- <firstName>Soto</firstName>
- <lastName>Thi</lastName>
- <address>
- <street>6633 Thunder Panda Freeway</street>
- <city>Judge Town</city>
- <state>MB</state>
- <zip>R4D-5B5</zip>
- <country>CA</country>
- </address>
- <emails>
- <email>gdiezzmewth@yahoo.co.id</email>
- </emails>
- </person>
- <person>
- <personCode>slkdfjllj4</personCode>
- <firstName>Sharita</firstName>
- <lastName>Campbell</lastName>
- <address>
- <street>8807 Quiet Lane</street>
- <city>Elephant Butte</city>
- <state>YK</state>
- <zip>Y1O-8K0</zip>
- <country>CA</country>
- </address>
- <emails>
- <email>itha_ersita@yahoo.com</email>
- </emails>
- </person>
- <person>
- <personCode>slkdfjlk2</personCode>
- <firstName>Wilber</firstName>
- <lastName>Gillespie</lastName>
- <address>
- <street>9590 Dusty Orchard</street>
- <city>Red Wash</city>
- <state>SK</state>
- <zip>S1X-1H7</zip>
- <country>CA</country>
- </address>
- <emails>
- <email>waow_one@yahoo.co.id</email>
- </emails>
- </person>
- </persons>
- Products.xml:
- <?xml version="1.0"?>
- <products>
- <equipment>
- <productCode>dm07</productCode>
- <name>Devify</name>
- <pricePerUnit>151.39</pricePerUnit>
- </equipment>
- <equipment>
- <productCode>7mfy</productCode>
- <name>Kare</name>
- <pricePerUnit>143.64</pricePerUnit>
- </equipment>
- <equipment>
- <productCode>157W</productCode>
- <name>Yata</name>
- <pricePerUnit>440.49</pricePerUnit>
- </equipment>
- <equipment>
- <productCode>6ePC</productCode>
- <name>Vipe</name>
- <pricePerUnit>634.86</pricePerUnit>
- </equipment>
- <equipment>
- <productCode>1KT8</productCode>
- <name>Skynoodle</name>
- <pricePerUnit>197.12</pricePerUnit>
- </equipment>
- <equipment>
- <productCode>FV0W</productCode>
- <name>Mita</name>
- <pricePerUnit>211.56</pricePerUnit>
- </equipment>
- <equipment>
- <productCode>356K</productCode>
- <name>Quamba</name>
- <pricePerUnit>28.35</pricePerUnit>
- </equipment>
- <license>
- <productCode>1m5V</productCode>
- <name>JumpXS</name>
- <fee>265.11</fee>
- <annualCost>1339.07</annualCost>
- </license>
- <license>
- <productCode>326Z</productCode>
- <name>Thoughtworks</name>
- <fee>431.12</fee>
- <annualCost>2023.84</annualCost>
- </license>
- <license>
- <productCode>4rTE</productCode>
- <name>Meemm</name>
- <fee>719.51</fee>
- <annualCost>702.99</annualCost>
- </license>
- <license>
- <productCode>26uk</productCode>
- <name>Minyx</name>
- <fee>542.38</fee>
- <annualCost>1818.2</annualCost>
- </license>
- <license>
- <productCode>402G</productCode>
- <name>Roombo</name>
- <fee>534.12</fee>
- <annualCost>400.79</annualCost>
- </license>
- <consultation>
- <productCode>98TM</productCode>
- <name>Oyoba</name>
- <consultant>
- <personCode>dlskfj24</personCode>
- <firstName>Soto</firstName>
- <lastName>Thi</lastName>
- <address>
- <street>6633 Thunder Panda Freeway</street>
- <city>Judge Town</city>
- <state>MB</state>
- <zip>R4D-5B5</zip>
- <country>CA</country>
- </address>
- <emails>
- <email>gdiezzmewth@yahoo.co.id</email>
- </emails>
- </consultant>
- <pricePerHour>63.39</pricePerHour>
- </consultation>
- <consultation>
- <productCode>566S</productCode>
- <name>Rhybox</name>
- <consultant>
- <personCode>slkdfjlk2</personCode>
- <firstName>Wilber</firstName>
- <lastName>Gillespie</lastName>
- <address>
- <street>9590 Dusty Orchard</street>
- <city>Red Wash</city>
- <state>SK</state>
- <zip>S1X-1H7</zip>
- <country>CA</country>
- </address>
- <emails>
- <email>waow_one@yahoo.co.id</email>
- </emails>
- </consultant>
- <pricePerHour>196.21</pricePerHour>
- </consultation>
- <consultation>
- <productCode>2rg2</productCode>
- <name>Chatterpoint</name>
- <consultant>
- <personCode>slkdfjllj4</personCode>
- <firstName>Sharita</firstName>
- <lastName>Campbell</lastName>
- <address>
- <street>8807 Quiet Lane</street>
- <city>Elephant Butte</city>
- <state>YK</state>
- <zip>Y1O-8K0</zip>
- <country>CA</country>
- </address>
- <emails>
- <email>itha_ersita@yahoo.com</email>
- </emails>
- </consultant>
- <pricePerHour>238.35</pricePerHour>
- </consultation>
- <consultation>
- <productCode>gv4W</productCode>
- <name>Yakidoo</name>
- <consultant>
- <personCode>vnxcmvn8</personCode>
- <firstName>Nobuko</firstName>
- <lastName>Orr</lastName>
- <address>
- <street>6289 Silver Pines</street>
- <city>Surprise Valley</city>
- <state>MB</state>
- <zip>R2P-8B6</zip>
- <country>CA</country>
- </address>
- <emails>
- <email>fidiyono_bali@yahoo.com</email>
- </emails>
- </consultant>
- <pricePerHour>54.03</pricePerHour>
- </consultation>
- <consultation>
- <productCode>NV3U</productCode>
- <name>Twitterbridge</name>
- <consultant>
- <personCode>laskdfj</personCode>
- <firstName>Ebonie</firstName>
- <lastName>Marks</lastName>
- <address>
- <street>861 Jackson Avenue</street>
- <city>Clemmons</city>
- <state>NC</state>
- <zip>27012</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>fauzantan@yahoo.com</email>
- </emails>
- </consultant>
- <pricePerHour>406.45</pricePerHour>
- </consultation>
- <consultation>
- <productCode>2O31</productCode>
- <name>Feedfish</name>
- <consultant>
- <personCode>dklfjkkl3</personCode>
- <firstName>Kand</firstName>
- <lastName>Wong</lastName>
- <address>
- <street>621 East Avenue</street>
- <city>Brownsburg</city>
- <state>IN</state>
- <zip>46112</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>faisal_silin@yahoo.com</email>
- </emails>
- </consultant>
- <pricePerHour>729.14</pricePerHour>
- </consultation>
- <consultation>
- <productCode>n2m1</productCode>
- <name>Youtags</name>
- <consultant>
- <personCode>s123askfj</personCode>
- <firstName>Horacio</firstName>
- <lastName>Arellano</lastName>
- <address>
- <street>912 B Street</street>
- <city>Philadelphia</city>
- <state>OH</state>
- <zip>44663</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>elkahiri@yahoo.co.id</email>
- </emails>
- </consultant>
- <pricePerHour>584.15</pricePerHour>
- </consultation>
- </products>
- Customers.json:
- {
- "customers": {
- "governmentCustomer": [
- {
- "customerCode": "C001",
- "name": "Dept. of Wal-Mart",
- "address": {
- "street": "6633 Thunder Panda Freeway",
- "city": "Judge Town",
- "state": "MB",
- "zip": "R4D-5B5",
- "country": "CA"
- },
- "primaryContact": {
- "personCode": "saslakdfj",
- "firstName": "Hal",
- "lastName": "Christensen",
- "address": {
- "street": "768 Main Street North",
- "city": "Fairborn",
- "state": "OH",
- "zip": "45324",
- "country": "USA"
- },
- "emails": [
- "awing-awang@balivision.com"
- ]
- }
- },
- {
- "customerCode": "C002",
- "name": "Dept. of Pizza Hut",
- "address": {
- "street": "260 Bay Street",
- "city": "Smyrna",
- "state": "GA",
- "zip": "30080",
- "country": "USA"
- },
- "primaryContact": {
- "personCode": "sldkfje3",
- "firstName": "Minh",
- "lastName": "Obrien",
- "address": {
- "street": "826 Tanglewood Drive",
- "city": "Bluffton",
- "state": "SC",
- "zip": "29910",
- "country": "USA"
- },
- "emails": [
- "balihai@q-net.net.id"
- ]
- }
- },
- {
- "customerCode": "C004",
- "name": "Dept. of Coca-Cola",
- "address": {
- "street": "6289 Silver Pines",
- "city": "Surprise Valley",
- "state": "MB",
- "zip": "R2P-8B6",
- "country": "CA"
- },
- "primaryContact": {
- "personCode": "3lkjfds",
- "firstName": "Joannie",
- "lastName": "George",
- "address": {
- "street": "996 Cobblestone Court",
- "city": "New Berlin",
- "state": "WI",
- "zip": "53151",
- "country": "USA"
- },
- "emails": [
- "info@baliadventuretours.com"
- ]
- }
- },
- {
- "customerCode": "C006",
- "name": "Dept. Toys R Us",
- "address": {
- "street": "996 Cobblestone Court",
- "city": "New Berlin",
- "state": "WI",
- "zip": "53151",
- "country": "USA"
- },
- "primaryContact": {
- "personCode": "sldkf21",
- "firstName": "Lyle",
- "lastName": "Moss",
- "address": {
- "street": "331 Arlington Avenue",
- "city": "Hackettstown",
- "state": "NJ",
- "zip": "07840",
- "country": "USA"
- },
- "emails": [
- "wisantaradps@yahoo.com"
- ]
- }
- }
- ],
- "companyCustomer": [
- {
- "customerCode": "C003",
- "name": "Frito-Lay",
- "address": {
- "street": "912 B Street",
- "city": "Philadelphia",
- "state": "OH",
- "zip": "44663",
- "country": "USA"
- },
- "primaryContact": {
- "personCode": "flksd12",
- "firstName": "Madelene",
- "lastName": "Gallagher",
- "address": {
- "street": "722 Durham Road",
- "city": "Hoboken",
- "state": "NJ",
- "zip": "07030",
- "country": "USA"
- },
- "emails": [
- "alampuri@resortgallery.com"
- ]
- }
- },
- {
- "customerCode": "C005",
- "name": "Disney",
- "address": {
- "street": "400 Buttonwood Drive",
- "city": "Glendale Heights",
- "state": "IL",
- "zip": "60139",
- "country": "USA"
- },
- "primaryContact": {
- "personCode": "lskdfj",
- "firstName": "Hiroko",
- "lastName": "Saunders",
- "address": {
- "street": "716 West Street",
- "city": "Wadsworth",
- "state": "OH",
- "zip": "44281",
- "country": "USA"
- },
- "emails": [
- "jawi@dps.centrin.net.id"
- ]
- }
- }
- ]
- }
- }
- Persons.json:
- {
- "persons": {
- "person": [
- {
- "personCode": "saslakdfj",
- "firstName": "Hal",
- "lastName": "Christensen",
- "address": {
- "street": "768 Main Street North",
- "city": "Fairborn",
- "state": "OH",
- "zip": "45324",
- "country": "USA"
- },
- "emails": [
- "awing-awang@balivision.com"
- ]
- },
- {
- "personCode": "sldkfje3",
- "firstName": "Minh",
- "lastName": "Obrien",
- "address": {
- "street": "826 Tanglewood Drive",
- "city": "Bluffton",
- "state": "SC",
- "zip": "29910",
- "country": "USA"
- },
- "emails": [
- "balihai@q-net.net.id"
- ]
- },
- {
- "personCode": "flksd12",
- "firstName": "Madelene",
- "lastName": "Gallagher",
- "address": {
- "street": "722 Durham Road",
- "city": "Hoboken",
- "state": "NJ",
- "zip": "07030",
- "country": "USA"
- },
- "emails": [
- "alampuri@resortgallery.com"
- ]
- },
- {
- "personCode": "3lkjfds",
- "firstName": "Joannie",
- "lastName": "George",
- "address": {
- "street": "996 Cobblestone Court",
- "city": "New Berlin",
- "state": "WI",
- "zip": "53151",
- "country": "USA"
- },
- "emails": [
- "info@baliadventuretours.com"
- ]
- },
- {
- "personCode": "lskdfj",
- "firstName": "Hiroko",
- "lastName": "Saunders",
- "address": {
- "street": "716 West Street",
- "city": "Wadsworth",
- "state": "OH",
- "zip": "44281",
- "country": "USA"
- },
- "emails": [
- "jawi@dps.centrin.net.id"
- ]
- },
- {
- "personCode": "sldkf21",
- "firstName": "Lyle",
- "lastName": "Moss",
- "address": {
- "street": "331 Arlington Avenue",
- "city": "Hackettstown",
- "state": "NJ",
- "zip": "07840",
- "country": "USA"
- },
- "emails": [
- "wisantaradps@yahoo.com"
- ]
- },
- {
- "personCode": "213dlkfj",
- "firstName": "Elliott",
- "lastName": "Fox",
- "address": {
- "street": "514 Park Place",
- "city": "Brownsburg",
- "state": "IN",
- "zip": "46112",
- "country": "USA"
- },
- "emails": [
- "sbtours@indosat.net.id",
- "nbauman663@gmail.com"
- ]
- },
- {
- "personCode": "234dfkjd",
- "firstName": "Martinez",
- "lastName": "Hannelore",
- "address": {
- "street": "260 Bay Street",
- "city": "Smyrna",
- "state": "GA",
- "zip": "30080",
- "country": "USA"
- },
- "emails": [
- "evi@mas-travel.com"
- ]
- },
- {
- "personCode": "2342kljf",
- "firstName": "Hampton",
- "lastName": "Hubert",
- "address": {
- "street": "283 Woodland Avenue",
- "city": "Cambridge",
- "state": "MA",
- "zip": "02138",
- "country": "USA"
- },
- "emails": [
- "haryo.santoso@trac.astra.co.id"
- ]
- },
- {
- "personCode": "32kjlk2l",
- "firstName": "Mohammed",
- "lastName": "Lloyd",
- "address": {
- "street": "974 Lexington Drive",
- "city": "Kenosha",
- "state": "WI",
- "zip": "53140",
- "country": "USA"
- },
- "emails": [
- "marketing@balivisioncomputer.com"
- ]
- },
- {
- "personCode": "dlkfjk32",
- "firstName": "Angie",
- "lastName": "Giles",
- "address": {
- "street": "400 Buttonwood Drive",
- "city": "Glendale Heights",
- "state": "IL",
- "zip": "60139",
- "country": "USA"
- },
- "emails": [
- "dsartika@internux.net.id"
- ]
- },
- {
- "personCode": "sldkfjlk3",
- "firstName": "Lyons",
- "lastName": "Edelmira",
- "address": {
- "street": "565 Fawn Court",
- "city": "Winter Springs",
- "state": "FL",
- "zip": "32708",
- "country": "USA"
- },
- "emails": [
- "a6us_kurniawan@yahoo.co.id"
- ]
- },
- {
- "personCode": "fkjslkj32",
- "firstName": "Mora",
- "lastName": "Carletta",
- "address": {
- "street": "561 Edgewood Road",
- "city": "Solon",
- "state": "OH",
- "zip": "44139",
- "country": "USA"
- },
- "emails": [
- "bernitha_widinansari@yahoo.co.id"
- ]
- },
- {
- "personCode": "s123askfj",
- "firstName": "Horacio",
- "lastName": "Arellano",
- "address": {
- "street": "912 B Street",
- "city": "Philadelphia",
- "state": "OH",
- "zip": "44663",
- "country": "USA"
- },
- "emails": [
- "elkahiri@yahoo.co.id"
- ]
- },
- {
- "personCode": "dklfjkkl3",
- "firstName": "Kand",
- "lastName": "Wong",
- "address": {
- "street": "621 East Avenue",
- "city": "Brownsburg",
- "state": "IN",
- "zip": "46112",
- "country": "USA"
- },
- "emails": [
- "faisal_silin@yahoo.com"
- ]
- },
- {
- "personCode": "laskdfj",
- "firstName": "Ebonie",
- "lastName": "Marks",
- "address": {
- "street": "861 Jackson Avenue",
- "city": "Clemmons",
- "state": "NC",
- "zip": "27012",
- "country": "USA"
- },
- "emails": [
- "email": "fauzantan@yahoo.com"
- ]
- },
- {
- "personCode": "vnxcmvn8",
- "firstName": "Nobuko",
- "lastName": "Orr",
- "address": {
- "street": "6289 Silver Pines",
- "city": "Surprise Valley",
- "state": "MB",
- "zip": "R2P-8B6",
- "country": "CA"
- },
- "emails": [
- "email": "fidiyono_bali@yahoo.com"
- ]
- },
- {
- "personCode": "dlskfj24",
- "firstName": "Soto",
- "lastName": "Thi",
- "address": {
- "street": "6633 Thunder Panda Freeway",
- "city": "Judge Town",
- "state": "MB",
- "zip": "R4D-5B5",
- "country": "CA"
- },
- "emails" [
- "gdiezzmewth@yahoo.co.id"
- ]
- },
- {
- "personCode": "slkdfjllj4",
- "firstName": "Sharita",
- "lastName": "Campbell",
- "address": {
- "street": "8807 Quiet Lane",
- "city": "Elephant Butte",
- "state": "YK",
- "zip": "Y1O-8K0",
- "country": "CA"
- },
- "emails": [
- "itha_ersita@yahoo.com"
- ]
- },
- {
- "personCode": "slkdfjlk2",
- "firstName": "Wilber",
- "lastName": "Gillespie",
- "address": {
- "street": "9590 Dusty Orchard",
- "city": "Red Wash",
- "state": "SK",
- "zip": "S1X-1H7",
- "country": "CA"
- },
- "emails": [
- "email": "waow_one@yahoo.co.id"
- ]
- }
- ]
- }
- }
- Products.json:
- {
- "products": [
- {
- "pricePerUnit": 124.99,
- "productCode": "ff23",
- "name": "Cinco-Fone"
- },
- {
- "consultant": {
- "personCode": "aef1",
- "firstName": "Gordon",
- "lastName": "Gekko",
- "address": {
- "street": "1 Wall Street",
- "city": "New York",
- "state": "NY",
- "zip": "10005-0012",
- "country": "USA"
- },
- "emails": []
- },
- "pricePerHour": 25.0,
- "productCode": "3289",
- "name": "Cinco-Fone Training"
- },
- {
- "consultant": {
- "personCode": "321nd",
- "firstName": "William",
- "lastName": "Hartnell",
- "address": {
- "street": "1060 West Addison Street",
- "city": "Chicago",
- "state": "IL",
- "zip": "60613",
- "country": "USA"
- },
- "emails": [
- "whartnell@doctors.com",
- "dr@who.com"
- ]
- },
- "pricePerHour": 150.0,
- "productCode": "782g",
- "name": "Server System Setup"
- },
- {
- "fee": 2000.0,
- "annualCost": 12000.0,
- "productCode": "90fa",
- "name": "Cinco Long Distance Service"
- },
- {
- "pricePerUnit": 5000.0,
- "productCode": "1239",
- "name": "Cinco Video Cube Playback System"
- },
- {
- "fee": 350.0,
- "annualCost": 1200.0,
- "productCode": "3295",
- "name": "Domain registration"
- },
- {
- "pricePerUnit": 14.99,
- "productCode": "fp12",
- "name": "Internette Discs"
- },
- {
- "fee": 0.0,
- "annualCost": 35000.0,
- "productCode": "3294",
- "name": "Cloud SQL Hosting"
- },
- {
- "pricePerUnit": 2500.0,
- "productCode": "b29e",
- "name": "Cinco MIDI Organizer"
- }
- ]}
- Program Output
- 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]]
- 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]]
- 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]]
- 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]]
- 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]]
- 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]]
- Product [code=b29e, type=E, name=Cinco MIDI Organizer] Equipment [pricePerUnit=2500.0]
- Product [code=ff23, type=E, name=Cinco-Fone] Equipment [pricePerUnit=124.99]
- Product [code=fp12, type=E, name=Internette Discs] Equipment [pricePerUnit=14.99]
- Product [code=1239, type=E, name=Cinco Video Cube Playback System] Equipment [pricePerUnit=5000.0]
- Product [code=90fa, type=L, name=Cinco Long Distance Service] License [serviceFee=2000.0, annualLicenseFee=12000.0]
- Product [code=3289, type=C, name=Cinco-Fone Training] Consultation [hourlyFee=25.0]
- Product [code=782g, type=C, name=Server System Setup] Consultation [hourlyFee=150.0]
- Product [code=3294, type=L, name=Cloud SQL Hosting] License [serviceFee=0.0, annualLicenseFee=35000.0]
- Product [code=3295, type=L, name=Domain registration] License [serviceFee=350.0, annualLicenseFee=1200.0]
- ::::::::::::::
- ./data/Customers.xml
- ::::::::::::::
- <customers>
- <governmentCustomer>
- <customerCode>C001</customerCode>
- <companyName>saslakdfj</companyName>
- <address>
- <street>6633 Thunder Panda Freeway</street>
- <city>Judge Town</city>
- <state>MB</state>
- <zip>R4D-5B5</zip>
- <country>CA</country>
- </address>
- <primaryContact>
- <personCode>saslakdfj</personCode>
- <firstName>Hal</firstName>
- <lastName>Christensen</lastName>
- <address>
- <street>768 Main Street North</street>
- <city>Fairborn</city>
- <state>OH</state>
- <zip>45324</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>awing-awang@balivision.com</email>
- </emails>
- </primaryContact>
- </governmentCustomer>
- <governmentCustomer>
- <customerCode>C002</customerCode>
- <companyName>sldkfje3</companyName>
- <address>
- <street>260 Bay Street</street>
- <city>Smyrna</city>
- <state>GA</state>
- <zip>30080</zip>
- <country>USA</country>
- </address>
- <primaryContact>
- <personCode>sldkfje3</personCode>
- <firstName>Minh</firstName>
- <lastName>Obrien</lastName>
- <address>
- <street>826 Tanglewood Drive</street>
- <city>Bluffton</city>
- <state>SC</state>
- <zip>29910</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>balihai@q-net.net.id</email>
- </emails>
- </primaryContact>
- </governmentCustomer>
- <companyCustomer>
- <customerCode>C003</customerCode>
- <companyName>flksd12</companyName>
- <address>
- <street>912 B Street</street>
- <city>Philadelphia</city>
- <state>OH</state>
- <zip>44663</zip>
- <country>USA</country>
- </address>
- <primaryContact>
- <personCode>flksd12</personCode>
- <firstName>Madelene</firstName>
- <lastName>Gallagher</lastName>
- <address>
- <street>722 Durham Road</street>
- <city>Hoboken</city>
- <state>NJ</state>
- <zip>07030</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>alampuri@resortgallery.com</email>
- </emails>
- </primaryContact>
- </companyCustomer>
- <governmentCustomer>
- <customerCode>C004</customerCode>
- <companyName>3lkjfds</companyName>
- <address>
- <street>6289 Silver Pines</street>
- <city>Surprise Valley</city>
- <state>MB</state>
- <zip>R2P-8B6</zip>
- <country>CA</country>
- </address>
- <primaryContact>
- <personCode>3lkjfds</personCode>
- <firstName>Joannie</firstName>
- <lastName>George</lastName>
- <address>
- <street>996 Cobblestone Court</street>
- <city>New Berlin</city>
- <state>WI</state>
- <zip>53151</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>info@baliadventuretours.com</email>
- </emails>
- </primaryContact>
- </governmentCustomer>
- <companyCustomer>
- <customerCode>C005</customerCode>
- <companyName>lskdfj</companyName>
- <address>
- <street>400 Buttonwood Drive</street>
- <city>Glendale Heights</city>
- <state>IL</state>
- <zip>60139</zip>
- <country>USA</country>
- </address>
- <primaryContact>
- <personCode>lskdfj</personCode>
- <firstName>Hiroko</firstName>
- <lastName>Saunders</lastName>
- <address>
- <street>716 West Street</street>
- <city>Wadsworth</city>
- <state>OH</state>
- <zip>44281</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>jawi@dps.centrin.net.id</email>
- </emails>
- </primaryContact>
- </companyCustomer>
- <governmentCustomer>
- <customerCode>C006</customerCode>
- <companyName>sldkf21</companyName>
- <address>
- <street>996 Cobblestone Court</street>
- <city>New Berlin</city>
- <state>WI</state>
- <zip>53151</zip>
- <country>USA</country>
- </address>
- <primaryContact>
- <personCode>sldkf21</personCode>
- <firstName>Lyle</firstName>
- <lastName>Moss</lastName>
- <address>
- <street>331 Arlington Avenue</street>
- <city>Hackettstown</city>
- <state>NJ</state>
- <zip>07840</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>wisantaradps@yahoo.com</email>
- </emails>
- </primaryContact>
- </governmentCustomer>
- </customers>::::::::::::::
- ./data/Persons.xml
- ::::::::::::::
- <persons>
- <person>
- <personCode>saslakdfj</personCode>
- <firstName>Hal</firstName>
- <lastName>Christensen</lastName>
- <address>
- <street>768 Main Street North</street>
- <city>Fairborn</city>
- <state>OH</state>
- <zip>45324</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>awing-awang@balivision.com</email>
- </emails>
- </person>
- <person>
- <personCode>sldkfje3</personCode>
- <firstName>Minh</firstName>
- <lastName>Obrien</lastName>
- <address>
- <street>826 Tanglewood Drive</street>
- <city>Bluffton</city>
- <state>SC</state>
- <zip>29910</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>balihai@q-net.net.id</email>
- </emails>
- </person>
- <person>
- <personCode>flksd12</personCode>
- <firstName>Madelene</firstName>
- <lastName>Gallagher</lastName>
- <address>
- <street>722 Durham Road</street>
- <city>Hoboken</city>
- <state>NJ</state>
- <zip>07030</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>alampuri@resortgallery.com</email>
- </emails>
- </person>
- <person>
- <personCode>3lkjfds</personCode>
- <firstName>Joannie</firstName>
- <lastName>George</lastName>
- <address>
- <street>996 Cobblestone Court</street>
- <city>New Berlin</city>
- <state>WI</state>
- <zip>53151</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>info@baliadventuretours.com</email>
- </emails>
- </person>
- <person>
- <personCode>lskdfj</personCode>
- <firstName>Hiroko</firstName>
- <lastName>Saunders</lastName>
- <address>
- <street>716 West Street</street>
- <city>Wadsworth</city>
- <state>OH</state>
- <zip>44281</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>jawi@dps.centrin.net.id</email>
- </emails>
- </person>
- <person>
- <personCode>sldkf21</personCode>
- <firstName>Lyle</firstName>
- <lastName>Moss</lastName>
- <address>
- <street>331 Arlington Avenue</street>
- <city>Hackettstown</city>
- <state>NJ</state>
- <zip>07840</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>wisantaradps@yahoo.com</email>
- </emails>
- </person>
- <person>
- <personCode>213dlkfj</personCode>
- <firstName>Elliott</firstName>
- <lastName>Fox</lastName>
- <address>
- <street>514 Park Place</street>
- <city>Brownsburg</city>
- <state>IN</state>
- <zip>46112</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>sbtours@indosat.net.id</email>
- <email>nbauman663@gmail.com</email>
- </emails>
- </person>
- <person>
- <personCode>234dfkjd</personCode>
- <firstName>Hannelore</firstName>
- <lastName>Martinez</lastName>
- <address>
- <street>260 Bay Street</street>
- <city>Smyrna</city>
- <state>GA</state>
- <zip>30080</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>evi@mas-travel.com</email>
- </emails>
- </person>
- <person>
- <personCode>2342kljf</personCode>
- <firstName>Hubert</firstName>
- <lastName>Hampton</lastName>
- <address>
- <street>283 Woodland Avenue</street>
- <city>Cambridge</city>
- <state>MA</state>
- <zip>02138</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>haryo.santoso@trac.astra.co.id</email>
- </emails>
- </person>
- <person>
- <personCode>32kjlk2l</personCode>
- <firstName>Mohammed</firstName>
- <lastName>Lloyd</lastName>
- <address>
- <street>974 Lexington Drive</street>
- <city>Kenosha</city>
- <state>WI</state>
- <zip>53140</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>marketing@balivisioncomputer.com</email>
- </emails>
- </person>
- <person>
- <personCode>dlkfjk32</personCode>
- <firstName>Angie</firstName>
- <lastName>Giles</lastName>
- <address>
- <street>400 Buttonwood Drive</street>
- <city>Glendale Heights</city>
- <state>IL</state>
- <zip>60139</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>dsartika@internux.net.id</email>
- </emails>
- </person>
- <person>
- <personCode>sldkfjlk3</personCode>
- <firstName>Edelmira</firstName>
- <lastName>Lyons</lastName>
- <address>
- <street>565 Fawn Court</street>
- <city>Winter Springs</city>
- <state>FL</state>
- <zip>32708</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>a6us_kurniawan@yahoo.co.id</email>
- </emails>
- </person>
- <person>
- <personCode>fkjslkj32</personCode>
- <firstName>Carletta</firstName>
- <lastName>Mora</lastName>
- <address>
- <street>561 Edgewood Road</street>
- <city>Solon</city>
- <state>OH</state>
- <zip>44139</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>bernitha_widinansari@yahoo.co.id</email>
- </emails>
- </person>
- <person>
- <personCode>s123askfj</personCode>
- <firstName>Horacio</firstName>
- <lastName>Arellano</lastName>
- <address>
- <street>912 B Street</street>
- <city>Philadelphia</city>
- <state>OH</state>
- <zip>44663</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>elkahiri@yahoo.co.id</email>
- </emails>
- </person>
- <person>
- <personCode>dklfjkkl3</personCode>
- <firstName>Kand</firstName>
- <lastName>Wong</lastName>
- <address>
- <street>621 East Avenue</street>
- <city>Brownsburg</city>
- <state>IN</state>
- <zip>46112</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>faisal_silin@yahoo.com</email>
- </emails>
- </person>
- <person>
- <personCode>laskdfj</personCode>
- <firstName>Ebonie</firstName>
- <lastName>Marks</lastName>
- <address>
- <street>861 Jackson Avenue</street>
- <city>Clemmons</city>
- <state>NC</state>
- <zip>27012</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>fauzantan@yahoo.com</email>
- </emails>
- </person>
- <person>
- <personCode>vnxcmvn8</personCode>
- <firstName>Nobuko</firstName>
- <lastName>Orr</lastName>
- <address>
- <street>6289 Silver Pines</street>
- <city>Surprise Valley</city>
- <state>MB</state>
- <zip>R2P-8B6</zip>
- <country>CA</country>
- </address>
- <emails>
- <email>fidiyono_bali@yahoo.com</email>
- </emails>
- </person>
- <person>
- <personCode>dlskfj24</personCode>
- <firstName>Thi</firstName>
- <lastName>Soto</lastName>
- <address>
- <street>6633 Thunder Panda Freeway</street>
- <city>Judge Town</city>
- <state>MB</state>
- <zip>R4D-5B5</zip>
- <country>CA</country>
- </address>
- <emails>
- <email>gdiezzmewth@yahoo.co.id</email>
- </emails>
- </person>
- <person>
- <personCode>slkdfjllj4</personCode>
- <firstName>Sharita</firstName>
- <lastName>Campbell</lastName>
- <address>
- <street>8807 Quiet Lane</street>
- <city>Elephant Butte</city>
- <state>YK</state>
- <zip>Y1O-8K0</zip>
- <country>CA</country>
- </address>
- <emails>
- <email>itha_ersita@yahoo.com</email>
- </emails>
- </person>
- <person>
- <personCode>slkdfjlk2</personCode>
- <firstName>Wilber</firstName>
- <lastName>Gillespie</lastName>
- <address>
- <street>9590 Dusty Orchard</street>
- <city>Red Wash</city>
- <state>SK</state>
- <zip>S1X-1H7</zip>
- <country>CA</country>
- </address>
- <emails>
- <email>waow_one@yahoo.co.id</email>
- </emails>
- </person>
- </persons>::::::::::::::
- ./data/Products.xml
- ::::::::::::::
- <products>
- <equipment>
- <productCode>b29e</productCode>
- <name>Cinco MIDI Organizer</name>
- <pricePerUnit>2500.0</pricePerUnit>
- </equipment>
- <equipment>
- <productCode>ff23</productCode>
- <name>Cinco-Fone</name>
- <pricePerUnit>124.99</pricePerUnit>
- </equipment>
- <equipment>
- <productCode>fp12</productCode>
- <name>Internette Discs</name>
- <pricePerUnit>14.99</pricePerUnit>
- </equipment>
- <equipment>
- <productCode>1239</productCode>
- <name>Cinco Video Cube Playback System</name>
- <pricePerUnit>5000.0</pricePerUnit>
- </equipment>
- <license>
- <productCode>90fa</productCode>
- <name>Cinco Long Distance Service</name>
- <fee>2000.0</fee>
- <annualCost>12000.0</annualCost>
- </license>
- <consultation>
- <productCode>3289</productCode>
- <name>Cinco-Fone Training</name>
- <pricePerHour>25.0</pricePerHour>
- </consultation>
- <consultation>
- <productCode>782g</productCode>
- <name>Server System Setup</name>
- <pricePerHour>150.0</pricePerHour>
- </consultation>
- <license>
- <productCode>3294</productCode>
- <name>Cloud SQL Hosting</name>
- <fee>0.0</fee>
- <annualCost>35000.0</annualCost>
- </license>
- <license>
- <productCode>3295</productCode>
- <name>Domain registration</name>
- <fee>350.0</fee>
- <annualCost>1200.0</annualCost>
- </license>
- </products>
- ::::::::::::::
- ./data/Customers.json
- ::::::::::::::
- <customers>
- <governmentCustomer>
- <customerCode>C001</customerCode>
- <companyName>saslakdfj</companyName>
- <address>
- <street>6633 Thunder Panda Freeway</street>
- <city>Judge Town</city>
- <state>MB</state>
- <zip>R4D-5B5</zip>
- <country>CA</country>
- </address>
- <primaryContact>
- <personCode>saslakdfj</personCode>
- <firstName>Hal</firstName>
- <lastName>Christensen</lastName>
- <address>
- <street>768 Main Street North</street>
- <city>Fairborn</city>
- <state>OH</state>
- <zip>45324</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>awing-awang@balivision.com</email>
- </emails>
- </primaryContact>
- </governmentCustomer>
- <governmentCustomer>
- <customerCode>C002</customerCode>
- <companyName>sldkfje3</companyName>
- <address>
- <street>260 Bay Street</street>
- <city>Smyrna</city>
- <state>GA</state>
- <zip>30080</zip>
- <country>USA</country>
- </address>
- <primaryContact>
- <personCode>sldkfje3</personCode>
- <firstName>Minh</firstName>
- <lastName>Obrien</lastName>
- <address>
- <street>826 Tanglewood Drive</street>
- <city>Bluffton</city>
- <state>SC</state>
- <zip>29910</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>balihai@q-net.net.id</email>
- </emails>
- </primaryContact>
- </governmentCustomer>
- <companyCustomer>
- <customerCode>C003</customerCode>
- <companyName>flksd12</companyName>
- <address>
- <street>912 B Street</street>
- <city>Philadelphia</city>
- <state>OH</state>
- <zip>44663</zip>
- <country>USA</country>
- </address>
- <primaryContact>
- <personCode>flksd12</personCode>
- <firstName>Madelene</firstName>
- <lastName>Gallagher</lastName>
- <address>
- <street>722 Durham Road</street>
- <city>Hoboken</city>
- <state>NJ</state>
- <zip>07030</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>alampuri@resortgallery.com</email>
- </emails>
- </primaryContact>
- </companyCustomer>
- <governmentCustomer>
- <customerCode>C004</customerCode>
- <companyName>3lkjfds</companyName>
- <address>
- <street>6289 Silver Pines</street>
- <city>Surprise Valley</city>
- <state>MB</state>
- <zip>R2P-8B6</zip>
- <country>CA</country>
- </address>
- <primaryContact>
- <personCode>3lkjfds</personCode>
- <firstName>Joannie</firstName>
- <lastName>George</lastName>
- <address>
- <street>996 Cobblestone Court</street>
- <city>New Berlin</city>
- <state>WI</state>
- <zip>53151</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>info@baliadventuretours.com</email>
- </emails>
- </primaryContact>
- </governmentCustomer>
- <companyCustomer>
- <customerCode>C005</customerCode>
- <companyName>lskdfj</companyName>
- <address>
- <street>400 Buttonwood Drive</street>
- <city>Glendale Heights</city>
- <state>IL</state>
- <zip>60139</zip>
- <country>USA</country>
- </address>
- <primaryContact>
- <personCode>lskdfj</personCode>
- <firstName>Hiroko</firstName>
- <lastName>Saunders</lastName>
- <address>
- <street>716 West Street</street>
- <city>Wadsworth</city>
- <state>OH</state>
- <zip>44281</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>jawi@dps.centrin.net.id</email>
- </emails>
- </primaryContact>
- </companyCustomer>
- <governmentCustomer>
- <customerCode>C006</customerCode>
- <companyName>sldkf21</companyName>
- <address>
- <street>996 Cobblestone Court</street>
- <city>New Berlin</city>
- <state>WI</state>
- <zip>53151</zip>
- <country>USA</country>
- </address>
- <primaryContact>
- <personCode>sldkf21</personCode>
- <firstName>Lyle</firstName>
- <lastName>Moss</lastName>
- <address>
- <street>331 Arlington Avenue</street>
- <city>Hackettstown</city>
- <state>NJ</state>
- <zip>07840</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>wisantaradps@yahoo.com</email>
- </emails>
- </primaryContact>
- </governmentCustomer>
- </customers>::::::::::::::
- ./data/Persons.json
- ::::::::::::::
- {
- "persons": {
- "person": [
- {
- "personCode": "saslakdfj",
- "firstName": "Hal",
- "lastName": "Christensen",
- "address": {
- "street": "768 Main Street North",
- "city": "Fairborn",
- "state": "OH",
- "zip": "45324",
- "country": "USA"
- },
- "emails": [
- "awing-awang@balivision.com"
- ]
- },
- {
- "personCode": "sldkfje3",
- "firstName": "Minh",
- "lastName": "Obrien",
- "address": {
- "street": "826 Tanglewood Drive",
- "city": "Bluffton",
- "state": "SC",
- "zip": "29910",
- "country": "USA"
- },
- "emails": [
- "balihai@q-net.net.id"
- ]
- },
- {
- "personCode": "flksd12",
- "firstName": "Madelene",
- "lastName": "Gallagher",
- "address": {
- "street": "722 Durham Road",
- "city": "Hoboken",
- "state": "NJ",
- "zip": "07030",
- "country": "USA"
- },
- "emails": [
- "alampuri@resortgallery.com"
- ]
- },
- {
- "personCode": "3lkjfds",
- "firstName": "Joannie",
- "lastName": "George",
- "address": {
- "street": "996 Cobblestone Court",
- "city": "New Berlin",
- "state": "WI",
- "zip": "53151",
- "country": "USA"
- },
- "emails": [
- "info@baliadventuretours.com"
- ]
- },
- {
- "personCode": "lskdfj",
- "firstName": "Hiroko",
- "lastName": "Saunders",
- "address": {
- "street": "716 West Street",
- "city": "Wadsworth",
- "state": "OH",
- "zip": "44281",
- "country": "USA"
- },
- "emails": [
- "jawi@dps.centrin.net.id"
- ]
- },
- {
- "personCode": "sldkf21",
- "firstName": "Lyle",
- "lastName": "Moss",
- "address": {
- "street": "331 Arlington Avenue",
- "city": "Hackettstown",
- "state": "NJ",
- "zip": "07840",
- "country": "USA"
- },
- "emails": [
- "wisantaradps@yahoo.com"
- ]
- },
- {
- "personCode": "213dlkfj",
- "firstName": "Elliott",
- "lastName": "Fox",
- "address": {
- "street": "514 Park Place",
- "city": "Brownsburg",
- "state": "IN",
- "zip": "46112",
- "country": "USA"
- },
- "emails": [
- "sbtours@indosat.net.id",
- "nbauman663@gmail.com"
- ]
- },
- {
- "personCode": "234dfkjd",
- "firstName": "Hannelore",
- "lastName": "Martinez",
- "address": {
- "street": "260 Bay Street",
- "city": "Smyrna",
- "state": "GA",
- "zip": "30080",
- "country": "USA"
- },
- "emails": [
- "evi@mas-travel.com"
- ]
- },
- {
- "personCode": "2342kljf",
- "firstName": "Hubert",
- "lastName": "Hampton",
- "address": {
- "street": "283 Woodland Avenue",
- "city": "Cambridge",
- "state": "MA",
- "zip": "02138",
- "country": "USA"
- },
- "emails": [
- "haryo.santoso@trac.astra.co.id"
- ]
- },
- {
- "personCode": "32kjlk2l",
- "firstName": "Mohammed",
- "lastName": "Lloyd",
- "address": {
- "street": "974 Lexington Drive",
- "city": "Kenosha",
- "state": "WI",
- "zip": "53140",
- "country": "USA"
- },
- "emails": [
- "marketing@balivisioncomputer.com"
- ]
- },
- {
- "personCode": "dlkfjk32",
- "firstName": "Angie",
- "lastName": "Giles",
- "address": {
- "street": "400 Buttonwood Drive",
- "city": "Glendale Heights",
- "state": "IL",
- "zip": "60139",
- "country": "USA"
- },
- "emails": [
- "dsartika@internux.net.id"
- ]
- },
- {
- "personCode": "sldkfjlk3",
- "firstName": "Edelmira",
- "lastName": "Lyons",
- "address": {
- "street": "565 Fawn Court",
- "city": "Winter Springs",
- "state": "FL",
- "zip": "32708",
- "country": "USA"
- },
- "emails": [
- "a6us_kurniawan@yahoo.co.id"
- ]
- },
- {
- "personCode": "fkjslkj32",
- "firstName": "Carletta",
- "lastName": "Mora",
- "address": {
- "street": "561 Edgewood Road",
- "city": "Solon",
- "state": "OH",
- "zip": "44139",
- "country": "USA"
- },
- "emails": [
- "bernitha_widinansari@yahoo.co.id"
- ]
- },
- {
- "personCode": "s123askfj",
- "firstName": "Horacio",
- "lastName": "Arellano",
- "address": {
- "street": "912 B Street",
- "city": "Philadelphia",
- "state": "OH",
- "zip": "44663",
- "country": "USA"
- },
- "emails": [
- "elkahiri@yahoo.co.id"
- ]
- },
- {
- "personCode": "dklfjkkl3",
- "firstName": "Kand",
- "lastName": "Wong",
- "address": {
- "street": "621 East Avenue",
- "city": "Brownsburg",
- "state": "IN",
- "zip": "46112",
- "country": "USA"
- },
- "emails": [
- "faisal_silin@yahoo.com"
- ]
- },
- {
- "personCode": "laskdfj",
- "firstName": "Ebonie",
- "lastName": "Marks",
- "address": {
- "street": "861 Jackson Avenue",
- "city": "Clemmons",
- "state": "NC",
- "zip": "27012",
- "country": "USA"
- },
- "emails": [
- "fauzantan@yahoo.com"
- ]
- },
- {
- "personCode": "vnxcmvn8",
- "firstName": "Nobuko",
- "lastName": "Orr",
- "address": {
- "street": "6289 Silver Pines",
- "city": "Surprise Valley",
- "state": "MB",
- "zip": "R2P-8B6",
- "country": "CA"
- },
- "emails": [
- "fidiyono_bali@yahoo.com"
- ]
- },
- {
- "personCode": "dlskfj24",
- "firstName": "Thi",
- "lastName": "Soto",
- "address": {
- "street": "6633 Thunder Panda Freeway",
- "city": "Judge Town",
- "state": "MB",
- "zip": "R4D-5B5",
- "country": "CA"
- },
- "emails": [
- "gdiezzmewth@yahoo.co.id"
- ]
- },
- {
- "personCode": "slkdfjllj4",
- "firstName": "Sharita",
- "lastName": "Campbell",
- "address": {
- "street": "8807 Quiet Lane",
- "city": "Elephant Butte",
- "state": "YK",
- "zip": "Y1O-8K0",
- "country": "CA"
- },
- "emails": [
- "itha_ersita@yahoo.com"
- ]
- },
- {
- "personCode": "slkdfjlk2",
- "firstName": "Wilber",
- "lastName": "Gillespie",
- "address": {
- "street": "9590 Dusty Orchard",
- "city": "Red Wash",
- "state": "SK",
- "zip": "S1X-1H7",
- "country": "CA"
- },
- "emails": [
- "waow_one@yahoo.co.id"
- ]
- }
- ]
- }
- }
- ::::::::::::::
- ./data/Products.json
- ::::::::::::::
- {
- "products": [ {
- "code": "b29e",
- "name": "Cinco MIDI Organizer",
- "pricePerUnit": 2500.0
- },
- {
- "code": "ff23",
- "name": "Cinco-Fone",
- "pricePerUnit": 124.99
- },
- {
- "code": "fp12",
- "name": "Internette Discs",
- "pricePerUnit": 14.99
- },
- {
- "code": "1239",
- "name": "Cinco Video Cube Playback System",
- "pricePerUnit": 5000.0
- },
- {
- "code": "90fa",
- "name": "Cinco Long Distance Service",
- "serviceFee": 2000.0,
- "annualLicenseFee": 12000.0
- },
- {
- "code": "3289",
- "name": "Cinco-Fone Training",
- "hourlyFee": 25.0
- },
- {
- "code": "782g",
- "name": "Server System Setup",
- "hourlyFee": 150.0
- },
- {
- "code": "3294",
- "name": "Cloud SQL Hosting",
- "serviceFee": 0.0,
- "annualLicenseFee": 35000.0
- },
- {
- "code": "3295",
- "name": "Domain registration",
- "serviceFee": 350.0,
- "annualLicenseFee": 1200.0
- }
- ]}
- [-] Test Case 1 (case03)
- Expected Output
- Data and output files:
- Customers.dat:
- 6
- C501;G;af1;University of Nebraska-Lincoln;Harper Hall,Lincoln,NE,68588,USA
- C202;C;af1;James Stark Industries;Packer Drive,Green Bay,WI,54301,USA
- C002;C;af1;Ventura Industry;1234 Ventura Way,San Francisco,CA,90200,USA
- C009;G;af1;NSA;980 Savager Rd,Kansas City,MO,66111,USA
- C015;C;af1;Van Industries;1060 North Madison,Chicago,IL,60602,USA
- C006;C;af1;DR. Dre Inc.;2nd South Street,Lincoln,NE,67500,USA
- Persons.dat:
- 20
- 94c;Cast, Star;1060 South Maddison Ave,Sayreville,NY,122,USA;scast@cubs.com,starcasto13@gmail.com
- 06a;Sam, Brockel;123 N ,Lincoln,NE,68116,USA;brocysam@gmail.com,bsam@venture.com
- 55b;Brien, Mile;8753 West 8th St,Housten,TX,75305,USA;brien@ds9.com,brien@enterprise.gov
- 42;OCyrus, Miley;123 Rude Street,Oklahoma City,OK,57011,USA;
- af1;Geo, Gordo;2 Wall Street,New York,NY,10005-0012,USA;
- 3f;Foxeyy, Budeeyyy;32 Bron Street,New York City,NY,10004,USA;bfo@gmail.com,heen@crazy.net
- ma1;Sve, Dalley;1 West Maddison Dr,Kansas City,MO,66111,USA;sve@cubs.com
- 31f;Hart, Willi;11 West Maddison Street,Chicago,IL,60613,USA;hart@doctors.com,drmoo@who.com
- nf3;Trow, Patty;100 SW Maddison St,Chicago,IL,60613,USA;p@cse.unl.edu,ptou32@unl.edu
- 121eu;Pewee, Johny;3rd Front St, FairBanks, AK, 74849, USA;jetwee@whofan.com
- 2;Boy,Tommy;2 Red Hawks Run, Kearny, MO, 64099, USA;famodoc@who.com,er@cse.unl.edu,mostifamous@whovian.com,thedocr@bbc.com
- 6dc;Hurndel, Dick;South West,Pheonix, AR, 00321,USA;Shmeh@cse.unl.edu,DICKY@unl.edu
- 31d;Baka, C.J.;Nebraska Hall,Lincoln,NE,68503,USA;r@baker.com
- 1svndr;Coy,Salle;12th Roosevelt Ave, Mushing, MN,78294,USA;slycoy@hotmail.com,coy@whofan.com
- 12t;Gann, Pauly;MetLife Stadium Drive, East Rutherford, NJ,07073,USA;pcgann@mlb.com,fo@bar.com,mc@unl.edu
- swdoc2;Kilkeny, Christopher;10 North 11th Rd, Brooklyn, NY,10451,USA;oldguy@whovian.com
- 2estd;Ten, Davey;70022 N Dull Ave, St. Louis, MO, 60111,USA;natc@shakespeare.com,tdavey@unl.edu
- wroc;Smity, Matty;333 Weast 35th St, Princeton, NY,20496,USA;msmithy@who.com,thedocy@cse.unl.edu
- bar;Traut, Kayle;3 North, St. Louis, MO, 65935,USA;
- doyc05;Dave, Petey;12 Cabob Lucas, Los Cabos, BCS, , Mexico;
- Products.dat:
- 9
- b2e;E;Uno PID Suplier;500.0
- ff1;E;Cuatro-Pone;12.20
- f12;E;Noternet Things;12.59
- 139;E;Ocho Video Cubix;5000.00
- 90f;L;Ocho Services;200.00;2400.00
- 329;C;Cuatro-Pone Training;af1;20.00
- 72g;C;Server System Meltdown;31f;53.10
- 329;L;Your SQL Host;2.00;55000.00
- 329;L;Yoname Registration;210.00;2000.00
- Customers.xml:
- <?xml version="1.0"?>
- <customers>
- <companyCustomer>
- <customerCode>C006</customerCode>
- <name>DR. Dre Inc.</name>
- <address>
- <street>2nd South Street</street>
- <city>Lincoln</city>
- <state>NE</state>
- <zip>67500</zip>
- <country>USA</country>
- </address>
- </companyCustomer>
- <companyCustomer>
- <customerCode>C015</customerCode>
- <name>Van Industries</name>
- <address>
- <street>1060 North Madison</street>
- <city>Chicago</city>
- <state>IL</state>
- <zip>60602</zip>
- <country>USA</country>
- </address>
- </companyCustomer>
- <governmentCustomer>
- <customerCode>C501</customerCode>
- <name>University of Nebraska-Lincoln</name>
- <address>
- <street>Harper Hall</street>
- <city>Lincoln</city>
- <state>NE</state>
- <zip>68588</zip>
- <country>USA</country>
- </address>
- </governmentCustomer>
- <governmentCustomer>
- <customerCode>C009</customerCode>
- <name>NSA</name>
- <address>
- <street>980 Savager Rd</street>
- <city>Kansas City</city>
- <state>MO</state>
- <zip>66111</zip>
- <country>USA</country>
- </address>
- </governmentCustomer>
- <companyCustomer>
- <customerCode>C202</customerCode>
- <name>James Stark Industries</name>
- <address>
- <street>Packer Drive</street>
- <city>Green Bay</city>
- <state>WI</state>
- <zip>54301</zip>
- <country>USA</country>
- </address>
- </companyCustomer>
- <companyCustomer>
- <customerCode>C002</customerCode>
- <name>Ventura Industry</name>
- <address>
- <street>1234 Ventura Way</street>
- <city>San Francisco</city>
- <state>CA</state>
- <zip>90200</zip>
- <country>USA</country>
- </address>
- </companyCustomer>
- </customers>
- Persons.xml:
- <?xml version="1.0"?>
- <persons>
- <person>
- <personCode>2estd</personCode>
- <firstName>Davey</firstName>
- <lastName>Ten</lastName>
- <address>
- <street>70022 N Dull Ave</street>
- <city>St. Louis</city>
- <state>MO</state>
- <zip>60111</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>tdavey@unl.edu</email>
- <email>natc@shakespeare.com</email>
- </emails>
- </person>
- <person>
- <personCode>af1</personCode>
- <firstName>Gordo</firstName>
- <lastName>Geo</lastName>
- <address>
- <street>2 Wall Street</street>
- <city>New York</city>
- <state>NY</state>
- <zip>10005-0012</zip>
- <country>USA</country>
- </address>
- <emails/>
- </person>
- <person>
- <personCode>12t</personCode>
- <firstName>Pauly</firstName>
- <lastName>Gann</lastName>
- <address>
- <street>MetLife Stadium Drive</street>
- <city>East Rutherford</city>
- <state>NJ</state>
- <zip>07073</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>mc@unl.edu</email>
- <email>fo@bar.com</email>
- <email>pcgann@mlb.com</email>
- </emails>
- </person>
- <person>
- <personCode>nf3</personCode>
- <firstName>Patty</firstName>
- <lastName>Trow</lastName>
- <address>
- <street>100 SW Maddison St</street>
- <city>Chicago</city>
- <state>IL</state>
- <zip>60613</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>ptou32@unl.edu</email>
- <email>p@cse.unl.edu</email>
- </emails>
- </person>
- <person>
- <personCode>6dc</personCode>
- <firstName>Dick</firstName>
- <lastName>Hurndel</lastName>
- <address>
- <street>South West</street>
- <city>Pheonix</city>
- <state>AR</state>
- <zip>00321</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>DICKY@unl.edu</email>
- <email>Shmeh@cse.unl.edu</email>
- </emails>
- </person>
- <person>
- <personCode>swdoc2</personCode>
- <firstName>Christopher</firstName>
- <lastName>Kilkeny</lastName>
- <address>
- <street>10 North 11th Rd</street>
- <city>Brooklyn</city>
- <state>NY</state>
- <zip>10451</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>oldguy@whovian.com</email>
- </emails>
- </person>
- <person>
- <personCode>55b</personCode>
- <firstName>Mile</firstName>
- <lastName>Brien</lastName>
- <address>
- <street>8753 West 8th St</street>
- <city>Housten</city>
- <state>TX</state>
- <zip>75305</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>brien@enterprise.gov</email>
- <email>brien@ds9.com</email>
- </emails>
- </person>
- <person>
- <personCode>doyc05</personCode>
- <firstName>Petey</firstName>
- <lastName>Dave</lastName>
- <address>
- <street>12 Cabob Lucas</street>
- <city>Los Cabos</city>
- <state>BCS</state>
- <zip></zip>
- <country>Mexico</country>
- </address>
- <emails/>
- </person>
- <person>
- <personCode>1svndr</personCode>
- <firstName>Salle</firstName>
- <lastName>Coy</lastName>
- <address>
- <street>12th Roosevelt Ave</street>
- <city>Mushing</city>
- <state>MN</state>
- <zip>78294</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>coy@whofan.com</email>
- <email>slycoy@hotmail.com</email>
- </emails>
- </person>
- <person>
- <personCode>2</personCode>
- <firstName>Tommy</firstName>
- <lastName>Boy</lastName>
- <address>
- <street>2 Red Hawks Run</street>
- <city>Kearny</city>
- <state>MO</state>
- <zip>64099</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>famodoc@who.com</email>
- <email>thedocr@bbc.com</email>
- <email>er@cse.unl.edu</email>
- <email>mostifamous@whovian.com</email>
- </emails>
- </person>
- <person>
- <personCode>121eu</personCode>
- <firstName>Johny</firstName>
- <lastName>Pewee</lastName>
- <address>
- <street>3rd Front St</street>
- <city>FairBanks</city>
- <state>AK</state>
- <zip>74849</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>jetwee@whofan.com</email>
- </emails>
- </person>
- <person>
- <personCode>31f</personCode>
- <firstName>Willi</firstName>
- <lastName>Hart</lastName>
- <address>
- <street>11 West Maddison Street</street>
- <city>Chicago</city>
- <state>IL</state>
- <zip>60613</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>drmoo@who.com</email>
- <email>hart@doctors.com</email>
- </emails>
- </person>
- <person>
- <personCode>42</personCode>
- <firstName>Miley</firstName>
- <lastName>OCyrus</lastName>
- <address>
- <street>123 Rude Street</street>
- <city>Oklahoma City</city>
- <state>OK</state>
- <zip>57011</zip>
- <country>USA</country>
- </address>
- <emails/>
- </person>
- <person>
- <personCode>94c</personCode>
- <firstName>Star</firstName>
- <lastName>Cast</lastName>
- <address>
- <street>1060 South Maddison Ave</street>
- <city>Sayreville</city>
- <state>NY</state>
- <zip>122</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>starcasto13@gmail.com</email>
- <email>scast@cubs.com</email>
- </emails>
- </person>
- <person>
- <personCode>06a</personCode>
- <firstName>Brockel</firstName>
- <lastName>Sam</lastName>
- <address>
- <street>123 N</street>
- <city>Lincoln</city>
- <state>NE</state>
- <zip>68116</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>bsam@venture.com</email>
- <email>brocysam@gmail.com</email>
- </emails>
- </person>
- <person>
- <personCode>3f</personCode>
- <firstName>Budeeyyy</firstName>
- <lastName>Foxeyy</lastName>
- <address>
- <street>32 Bron Street</street>
- <city>New York City</city>
- <state>NY</state>
- <zip>10004</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>bfo@gmail.com</email>
- <email>heen@crazy.net</email>
- </emails>
- </person>
- <person>
- <personCode>bar</personCode>
- <firstName>Kayle</firstName>
- <lastName>Traut</lastName>
- <address>
- <street>3 North</street>
- <city>St. Louis</city>
- <state>MO</state>
- <zip>65935</zip>
- <country>USA</country>
- </address>
- <emails/>
- </person>
- <person>
- <personCode>wroc</personCode>
- <firstName>Matty</firstName>
- <lastName>Smity</lastName>
- <address>
- <street>333 Weast 35th St</street>
- <city>Princeton</city>
- <state>NY</state>
- <zip>20496</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>thedocy@cse.unl.edu</email>
- <email>msmithy@who.com</email>
- </emails>
- </person>
- <person>
- <personCode>31d</personCode>
- <firstName>C.J.</firstName>
- <lastName>Baka</lastName>
- <address>
- <street>Nebraska Hall</street>
- <city>Lincoln</city>
- <state>NE</state>
- <zip>68503</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>r@baker.com</email>
- </emails>
- </person>
- <person>
- <personCode>ma1</personCode>
- <firstName>Dalley</firstName>
- <lastName>Sve</lastName>
- <address>
- <street>1 West Maddison Dr</street>
- <city>Kansas City</city>
- <state>MO</state>
- <zip>66111</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>sve@cubs.com</email>
- </emails>
- </person>
- </persons>
- Products.xml:
- <?xml version="1.0"?>
- <products>
- <equipment>
- <productCode>f12</productCode>
- <name>Noternet Things</name>
- <pricePerUnit>12.59</pricePerUnit>
- </equipment>
- <equipment>
- <productCode>139</productCode>
- <name>Ocho Video Cubix</name>
- <pricePerUnit>5000.0</pricePerUnit>
- </equipment>
- <consultation>
- <productCode>72g</productCode>
- <name>Server System Meltdown</name>
- <pricePerHour>53.1</pricePerHour>
- </consultation>
- <license>
- <productCode>329</productCode>
- <name>Yoname Registration</name>
- <fee>210.0</fee>
- <annualCost>2000.0</annualCost>
- </license>
- <license>
- <productCode>90f</productCode>
- <name>Ocho Services</name>
- <fee>200.0</fee>
- <annualCost>2400.0</annualCost>
- </license>
- <equipment>
- <productCode>ff1</productCode>
- <name>Cuatro-Pone</name>
- <pricePerUnit>12.2</pricePerUnit>
- </equipment>
- <equipment>
- <productCode>b2e</productCode>
- <name>Uno PID Suplier</name>
- <pricePerUnit>500.0</pricePerUnit>
- </equipment>
- </products>
- Customers.json:
- {
- "customers": [
- {
- "customerCode": "C006",
- "name": "DR. Dre Inc.",
- "address": {
- "street": "2nd South Street",
- "city": "Lincoln",
- "state": "NE",
- "zip": "67500",
- "country": "USA"
- }
- },
- {
- "customerCode": "C015",
- "name": "Van Industries",
- "address": {
- "street": "1060 North Madison",
- "city": "Chicago",
- "state": "IL",
- "zip": "60602",
- "country": "USA"
- }
- },
- {
- "customerCode": "C501",
- "name": "University of Nebraska-Lincoln",
- "address": {
- "street": "Harper Hall",
- "city": "Lincoln",
- "state": "NE",
- "zip": "68588",
- "country": "USA"
- }
- },
- {
- "customerCode": "C009",
- "name": "NSA",
- "address": {
- "street": "980 Savager Rd",
- "city": "Kansas City",
- "state": "MO",
- "zip": "66111",
- "country": "USA"
- }
- },
- {
- "customerCode": "C202",
- "name": "James Stark Industries",
- "address": {
- "street": "Packer Drive",
- "city": "Green Bay",
- "state": "WI",
- "zip": "54301",
- "country": "USA"
- }
- },
- {
- "customerCode": "C002",
- "name": "Ventura Industry",
- "address": {
- "street": "1234 Ventura Way",
- "city": "San Francisco",
- "state": "CA",
- "zip": "90200",
- "country": "USA"
- }
- }
- ]}
- Persons.json:
- {
- "persons": [
- {
- "personCode": "2estd",
- "firstName": "Davey",
- "lastName": "Ten",
- "address": {
- "street": "70022 N Dull Ave",
- "city": "St. Louis",
- "state": "MO",
- "zip": "60111",
- "country": "USA"
- },
- "emails": [
- "tdavey@unl.edu",
- "natc@shakespeare.com"
- ]
- },
- {
- "personCode": "af1",
- "firstName": "Gordo",
- "lastName": "Geo",
- "address": {
- "street": "2 Wall Street",
- "city": "New York",
- "state": "NY",
- "zip": "10005-0012",
- "country": "USA"
- },
- "emails": []
- },
- {
- "personCode": "12t",
- "firstName": "Pauly",
- "lastName": "Gann",
- "address": {
- "street": "MetLife Stadium Drive",
- "city": "East Rutherford",
- "state": "NJ",
- "zip": "07073",
- "country": "USA"
- },
- "emails": [
- "mc@unl.edu",
- "fo@bar.com",
- "pcgann@mlb.com"
- ]
- },
- {
- "personCode": "nf3",
- "firstName": "Patty",
- "lastName": "Trow",
- "address": {
- "street": "100 SW Maddison St",
- "city": "Chicago",
- "state": "IL",
- "zip": "60613",
- "country": "USA"
- },
- "emails": [
- "ptou32@unl.edu",
- "p@cse.unl.edu"
- ]
- },
- {
- "personCode": "6dc",
- "firstName": "Dick",
- "lastName": "Hurndel",
- "address": {
- "street": "South West",
- "city": "Pheonix",
- "state": "AR",
- "zip": "00321",
- "country": "USA"
- },
- "emails": [
- "DICKY@unl.edu",
- "Shmeh@cse.unl.edu"
- ]
- },
- {
- "personCode": "swdoc2",
- "firstName": "Christopher",
- "lastName": "Kilkeny",
- "address": {
- "street": "10 North 11th Rd",
- "city": "Brooklyn",
- "state": "NY",
- "zip": "10451",
- "country": "USA"
- },
- "emails": [
- "oldguy@whovian.com"
- ]
- },
- {
- "personCode": "55b",
- "firstName": "Mile",
- "lastName": "Brien",
- "address": {
- "street": "8753 West 8th St",
- "city": "Housten",
- "state": "TX",
- "zip": "75305",
- "country": "USA"
- },
- "emails": [
- "brien@enterprise.gov",
- "brien@ds9.com"
- ]
- },
- {
- "personCode": "doyc05",
- "firstName": "Petey",
- "lastName": "Dave",
- "address": {
- "street": "12 Cabob Lucas",
- "city": "Los Cabos",
- "state": "BCS",
- "zip": "",
- "country": "Mexico"
- },
- "emails": []
- },
- {
- "personCode": "1svndr",
- "firstName": "Salle",
- "lastName": "Coy",
- "address": {
- "street": "12th Roosevelt Ave",
- "city": "Mushing",
- "state": "MN",
- "zip": "78294",
- "country": "USA"
- },
- "emails": [
- "coy@whofan.com",
- "slycoy@hotmail.com"
- ]
- },
- {
- "personCode": "2",
- "firstName": "Tommy",
- "lastName": "Boy",
- "address": {
- "street": "2 Red Hawks Run",
- "city": "Kearny",
- "state": "MO",
- "zip": "64099",
- "country": "USA"
- },
- "emails": [
- "famodoc@who.com",
- "thedocr@bbc.com",
- "er@cse.unl.edu",
- "mostifamous@whovian.com"
- ]
- },
- {
- "personCode": "121eu",
- "firstName": "Johny",
- "lastName": "Pewee",
- "address": {
- "street": "3rd Front St",
- "city": "FairBanks",
- "state": "AK",
- "zip": "74849",
- "country": "USA"
- },
- "emails": [
- "jetwee@whofan.com"
- ]
- },
- {
- "personCode": "31f",
- "firstName": "Willi",
- "lastName": "Hart",
- "address": {
- "street": "11 West Maddison Street",
- "city": "Chicago",
- "state": "IL",
- "zip": "60613",
- "country": "USA"
- },
- "emails": [
- "drmoo@who.com",
- "hart@doctors.com"
- ]
- },
- {
- "personCode": "42",
- "firstName": "Miley",
- "lastName": "OCyrus",
- "address": {
- "street": "123 Rude Street",
- "city": "Oklahoma City",
- "state": "OK",
- "zip": "57011",
- "country": "USA"
- },
- "emails": []
- },
- {
- "personCode": "94c",
- "firstName": "Star",
- "lastName": "Cast",
- "address": {
- "street": "1060 South Maddison Ave",
- "city": "Sayreville",
- "state": "NY",
- "zip": "122",
- "country": "USA"
- },
- "emails": [
- "starcasto13@gmail.com",
- "scast@cubs.com"
- ]
- },
- {
- "personCode": "06a",
- "firstName": "Brockel",
- "lastName": "Sam",
- "address": {
- "street": "123 N",
- "city": "Lincoln",
- "state": "NE",
- "zip": "68116",
- "country": "USA"
- },
- "emails": [
- "bsam@venture.com",
- "brocysam@gmail.com"
- ]
- },
- {
- "personCode": "3f",
- "firstName": "Budeeyyy",
- "lastName": "Foxeyy",
- "address": {
- "street": "32 Bron Street",
- "city": "New York City",
- "state": "NY",
- "zip": "10004",
- "country": "USA"
- },
- "emails": [
- "bfo@gmail.com",
- "heen@crazy.net"
- ]
- },
- {
- "personCode": "bar",
- "firstName": "Kayle",
- "lastName": "Traut",
- "address": {
- "street": "3 North",
- "city": "St. Louis",
- "state": "MO",
- "zip": "65935",
- "country": "USA"
- },
- "emails": []
- },
- {
- "personCode": "wroc",
- "firstName": "Matty",
- "lastName": "Smity",
- "address": {
- "street": "333 Weast 35th St",
- "city": "Princeton",
- "state": "NY",
- "zip": "20496",
- "country": "USA"
- },
- "emails": [
- "thedocy@cse.unl.edu",
- "msmithy@who.com"
- ]
- },
- {
- "personCode": "31d",
- "firstName": "C.J.",
- "lastName": "Baka",
- "address": {
- "street": "Nebraska Hall",
- "city": "Lincoln",
- "state": "NE",
- "zip": "68503",
- "country": "USA"
- },
- "emails": [
- "r@baker.com"
- ]
- },
- {
- "personCode": "ma1",
- "firstName": "Dalley",
- "lastName": "Sve",
- "address": {
- "street": "1 West Maddison Dr",
- "city": "Kansas City",
- "state": "MO",
- "zip": "66111",
- "country": "USA"
- },
- "emails": [
- "sve@cubs.com"
- ]
- }
- ]}
- Products.json:
- {
- "products": [
- {
- "pricePerUnit": 12.59,
- "productCode": "f12",
- "name": "Noternet Things"
- },
- {
- "pricePerUnit": 5000.0,
- "productCode": "139",
- "name": "Ocho Video Cubix"
- },
- {
- "pricePerHour": 53.1,
- "productCode": "72g",
- "name": "Server System Meltdown"
- },
- {
- "fee": 210.0,
- "annualCost": 2000.0,
- "productCode": "329",
- "name": "Yoname Registration"
- },
- {
- "fee": 200.0,
- "annualCost": 2400.0,
- "productCode": "90f",
- "name": "Ocho Services"
- },
- {
- "pricePerUnit": 12.2,
- "productCode": "ff1",
- "name": "Cuatro-Pone"
- },
- {
- "pricePerUnit": 500.0,
- "productCode": "b2e",
- "name": "Uno PID Suplier"
- }
- ]}
- Program Output
- Customer [customerCode=C501, type=G, companyName=University of Nebraska-Lincoln, address=Address [street=Harper Hall, city=Lincoln, state=NE, zip=68588, country=USA]]
- Customer [customerCode=C202, type=C, companyName=James Stark Industries, address=Address [street=Packer Drive, city=Green Bay, state=WI, zip=54301, country=USA]]
- Customer [customerCode=C002, type=C, companyName=Ventura Industry, address=Address [street=1234 Ventura Way, city=San Francisco, state=CA, zip=90200, country=USA]]
- Customer [customerCode=C009, type=G, companyName=NSA, address=Address [street=980 Savager Rd, city=Kansas City, state=MO, zip=66111, country=USA]]
- Customer [customerCode=C015, type=C, companyName=Van Industries, address=Address [street=1060 North Madison, city=Chicago, state=IL, zip=60602, country=USA]]
- Customer [customerCode=C006, type=C, companyName=DR. Dre Inc., address=Address [street=2nd South Street, city=Lincoln, state=NE, zip=67500, country=USA]]
- Product [code=b2e, type=E, name=Uno PID Suplier] Equipment [pricePerUnit=500.0]
- Product [code=ff1, type=E, name=Cuatro-Pone] Equipment [pricePerUnit=12.2]
- Product [code=f12, type=E, name=Noternet Things] Equipment [pricePerUnit=12.59]
- Product [code=139, type=E, name=Ocho Video Cubix] Equipment [pricePerUnit=5000.0]
- Product [code=90f, type=L, name=Ocho Services] License [serviceFee=200.0, annualLicenseFee=2400.0]
- 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]
- 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]
- Product [code=329, type=L, name=Your SQL Host] License [serviceFee=2.0, annualLicenseFee=55000.0]
- Product [code=329, type=L, name=Yoname Registration] License [serviceFee=210.0, annualLicenseFee=2000.0]
- ::::::::::::::
- ./data/Customers.xml
- ::::::::::::::
- <customers>
- <governmentCustomer>
- <customerCode>C501</customerCode>
- <companyName>University of Nebraska-Lincoln</companyName>
- <address>
- <street>Harper Hall</street>
- <city>Lincoln</city>
- <state>NE</state>
- <zip>68588</zip>
- <country>USA</country>
- </address>
- </governmentCustomer>
- <companyCustomer>
- <customerCode>C202</customerCode>
- <companyName>James Stark Industries</companyName>
- <address>
- <street>Packer Drive</street>
- <city>Green Bay</city>
- <state>WI</state>
- <zip>54301</zip>
- <country>USA</country>
- </address>
- </companyCustomer>
- <companyCustomer>
- <customerCode>C002</customerCode>
- <companyName>Ventura Industry</companyName>
- <address>
- <street>1234 Ventura Way</street>
- <city>San Francisco</city>
- <state>CA</state>
- <zip>90200</zip>
- <country>USA</country>
- </address>
- </companyCustomer>
- <governmentCustomer>
- <customerCode>C009</customerCode>
- <companyName>NSA</companyName>
- <address>
- <street>980 Savager Rd</street>
- <city>Kansas City</city>
- <state>MO</state>
- <zip>66111</zip>
- <country>USA</country>
- </address>
- </governmentCustomer>
- <companyCustomer>
- <customerCode>C015</customerCode>
- <companyName>Van Industries</companyName>
- <address>
- <street>1060 North Madison</street>
- <city>Chicago</city>
- <state>IL</state>
- <zip>60602</zip>
- <country>USA</country>
- </address>
- </companyCustomer>
- <companyCustomer>
- <customerCode>C006</customerCode>
- <companyName>DR. Dre Inc.</companyName>
- <address>
- <street>2nd South Street</street>
- <city>Lincoln</city>
- <state>NE</state>
- <zip>67500</zip>
- <country>USA</country>
- </address>
- </companyCustomer>
- </customers>::::::::::::::
- ./data/Persons.xml
- ::::::::::::::
- <persons>
- <person>
- <personCode>94c</personCode>
- <firstName>Star</firstName>
- <lastName>Cast</lastName>
- <address>
- <street>1060 South Maddison Ave</street>
- <city>Sayreville</city>
- <state>NY</state>
- <zip>122</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>scast@cubs.com</email>
- <email>starcasto13@gmail.com</email>
- </emails>
- </person>
- <person>
- <personCode>06a</personCode>
- <firstName>Brockel</firstName>
- <lastName>Sam</lastName>
- <address>
- <street>123 N</street>
- <city>Lincoln</city>
- <state>NE</state>
- <zip>68116</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>brocysam@gmail.com</email>
- <email>bsam@venture.com</email>
- </emails>
- </person>
- <person>
- <personCode>55b</personCode>
- <firstName>Mile</firstName>
- <lastName>Brien</lastName>
- <address>
- <street>8753 West 8th St</street>
- <city>Housten</city>
- <state>TX</state>
- <zip>75305</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>brien@ds9.com</email>
- <email>brien@enterprise.gov</email>
- </emails>
- </person>
- <person>
- <personCode>42</personCode>
- <firstName>Miley</firstName>
- <lastName>OCyrus</lastName>
- <address>
- <street>123 Rude Street</street>
- <city>Oklahoma City</city>
- <state>OK</state>
- <zip>57011</zip>
- <country>USA</country>
- </address>
- </person>
- <person>
- <personCode>af1</personCode>
- <firstName>Gordo</firstName>
- <lastName>Geo</lastName>
- <address>
- <street>2 Wall Street</street>
- <city>New York</city>
- <state>NY</state>
- <zip>10005-0012</zip>
- <country>USA</country>
- </address>
- </person>
- <person>
- <personCode>3f</personCode>
- <firstName>Budeeyyy</firstName>
- <lastName>Foxeyy</lastName>
- <address>
- <street>32 Bron Street</street>
- <city>New York City</city>
- <state>NY</state>
- <zip>10004</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>bfo@gmail.com</email>
- <email>heen@crazy.net</email>
- </emails>
- </person>
- <person>
- <personCode>ma1</personCode>
- <firstName>Dalley</firstName>
- <lastName>Sve</lastName>
- <address>
- <street>1 West Maddison Dr</street>
- <city>Kansas City</city>
- <state>MO</state>
- <zip>66111</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>sve@cubs.com</email>
- </emails>
- </person>
- <person>
- <personCode>31f</personCode>
- <firstName>Willi</firstName>
- <lastName>Hart</lastName>
- <address>
- <street>11 West Maddison Street</street>
- <city>Chicago</city>
- <state>IL</state>
- <zip>60613</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>hart@doctors.com</email>
- <email>drmoo@who.com</email>
- </emails>
- </person>
- <person>
- <personCode>nf3</personCode>
- <firstName>Patty</firstName>
- <lastName>Trow</lastName>
- <address>
- <street>100 SW Maddison St</street>
- <city>Chicago</city>
- <state>IL</state>
- <zip>60613</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>p@cse.unl.edu</email>
- <email>ptou32@unl.edu</email>
- </emails>
- </person>
- <person>
- <personCode>121eu</personCode>
- <firstName>Johny</firstName>
- <lastName>Pewee</lastName>
- <address>
- <street>3rd Front St</street>
- <city>FairBanks</city>
- <state>AK</state>
- <zip>74849</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>jetwee@whofan.com</email>
- </emails>
- </person>
- <person>
- <personCode>2</personCode>
- <firstName>Tommy</firstName>
- <lastName>Boy</lastName>
- <address>
- <street>2 Red Hawks Run</street>
- <city>Kearny</city>
- <state>MO</state>
- <zip>64099</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>famodoc@who.com</email>
- <email>er@cse.unl.edu</email>
- <email>mostifamous@whovian.com</email>
- <email>thedocr@bbc.com</email>
- </emails>
- </person>
- <person>
- <personCode>6dc</personCode>
- <firstName>Dick</firstName>
- <lastName>Hurndel</lastName>
- <address>
- <street>South West</street>
- <city>Pheonix</city>
- <state>AR</state>
- <zip>00321</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>Shmeh@cse.unl.edu</email>
- <email>DICKY@unl.edu</email>
- </emails>
- </person>
- <person>
- <personCode>31d</personCode>
- <firstName>C.J.</firstName>
- <lastName>Baka</lastName>
- <address>
- <street>Nebraska Hall</street>
- <city>Lincoln</city>
- <state>NE</state>
- <zip>68503</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>r@baker.com</email>
- </emails>
- </person>
- <person>
- <personCode>1svndr</personCode>
- <firstName>Salle</firstName>
- <lastName>Coy</lastName>
- <address>
- <street>12th Roosevelt Ave</street>
- <city>Mushing</city>
- <state>MN</state>
- <zip>78294</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>slycoy@hotmail.com</email>
- <email>coy@whofan.com</email>
- </emails>
- </person>
- <person>
- <personCode>12t</personCode>
- <firstName>Pauly</firstName>
- <lastName>Gann</lastName>
- <address>
- <street>MetLife Stadium Drive</street>
- <city>East Rutherford</city>
- <state>NJ</state>
- <zip>07073</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>pcgann@mlb.com</email>
- <email>fo@bar.com</email>
- <email>mc@unl.edu</email>
- </emails>
- </person>
- <person>
- <personCode>swdoc2</personCode>
- <firstName>Christopher</firstName>
- <lastName>Kilkeny</lastName>
- <address>
- <street>10 North 11th Rd</street>
- <city>Brooklyn</city>
- <state>NY</state>
- <zip>10451</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>oldguy@whovian.com</email>
- </emails>
- </person>
- <person>
- <personCode>2estd</personCode>
- <firstName>Davey</firstName>
- <lastName>Ten</lastName>
- <address>
- <street>70022 N Dull Ave</street>
- <city>St. Louis</city>
- <state>MO</state>
- <zip>60111</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>natc@shakespeare.com</email>
- <email>tdavey@unl.edu</email>
- </emails>
- </person>
- <person>
- <personCode>wroc</personCode>
- <firstName>Matty</firstName>
- <lastName>Smity</lastName>
- <address>
- <street>333 Weast 35th St</street>
- <city>Princeton</city>
- <state>NY</state>
- <zip>20496</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>msmithy@who.com</email>
- <email>thedocy@cse.unl.edu</email>
- </emails>
- </person>
- <person>
- <personCode>bar</personCode>
- <firstName>Kayle</firstName>
- <lastName>Traut</lastName>
- <address>
- <street>3 North</street>
- <city>St. Louis</city>
- <state>MO</state>
- <zip>65935</zip>
- <country>USA</country>
- </address>
- </person>
- <person>
- <personCode>doyc05</personCode>
- <firstName>Petey</firstName>
- <lastName>Dave</lastName>
- <address>
- <street>12 Cabob Lucas</street>
- <city>Los Cabos</city>
- <state>BCS</state>
- <country>Mexico</country>
- </address>
- </person>
- </persons>::::::::::::::
- ./data/Products.xml
- ::::::::::::::
- <products>
- <equipment>
- <productCode>b2e</productCode>
- <name>Uno PID Suplier</name>
- <pricePerUnit>500.0</pricePerUnit>
- </equipment>
- <equipment>
- <productCode>ff1</productCode>
- <name>Cuatro-Pone</name>
- <pricePerUnit>12.2</pricePerUnit>
- </equipment>
- <equipment>
- <productCode>f12</productCode>
- <name>Noternet Things</name>
- <pricePerUnit>12.59</pricePerUnit>
- </equipment>
- <equipment>
- <productCode>139</productCode>
- <name>Ocho Video Cubix</name>
- <pricePerUnit>5000.0</pricePerUnit>
- </equipment>
- <license>
- <productCode>90f</productCode>
- <name>Ocho Services</name>
- <fee>200.0</fee>
- <annualCost>2400.0</annualCost>
- </license>
- <consultation>
- <productCode>329</productCode>
- <name>Cuatro-Pone Training</name>
- <consultant>
- <personCode>af1</personCode>
- <firstName>Gordo</firstName>
- <lastName>Geo</lastName>
- <address>
- <street>2 Wall Street</street>
- <city>New York</city>
- <state>NY</state>
- <zip>10005-0012</zip>
- <country>USA</country>
- </address>
- </consultant>
- <pricePerHour>20.0</pricePerHour>
- </consultation>
- <consultation>
- <productCode>72g</productCode>
- <name>Server System Meltdown</name>
- <consultant>
- <personCode>31f</personCode>
- <firstName>Willi</firstName>
- <lastName>Hart</lastName>
- <address>
- <street>11 West Maddison Street</street>
- <city>Chicago</city>
- <state>IL</state>
- <zip>60613</zip>
- <country>USA</country>
- </address>
- <emails>
- <string>hart@doctors.com</string>
- <string>drmoo@who.com</string>
- </emails>
- </consultant>
- <pricePerHour>53.1</pricePerHour>
- </consultation>
- <license>
- <productCode>329</productCode>
- <name>Your SQL Host</name>
- <fee>2.0</fee>
- <annualCost>55000.0</annualCost>
- </license>
- <license>
- <productCode>329</productCode>
- <name>Yoname Registration</name>
- <fee>210.0</fee>
- <annualCost>2000.0</annualCost>
- </license>
- </products>
- ::::::::::::::
- ./data/Customers.json
- ::::::::::::::
- <customers>
- <governmentCustomer>
- <customerCode>C501</customerCode>
- <companyName>University of Nebraska-Lincoln</companyName>
- <address>
- <street>Harper Hall</street>
- <city>Lincoln</city>
- <state>NE</state>
- <zip>68588</zip>
- <country>USA</country>
- </address>
- </governmentCustomer>
- <companyCustomer>
- <customerCode>C202</customerCode>
- <companyName>James Stark Industries</companyName>
- <address>
- <street>Packer Drive</street>
- <city>Green Bay</city>
- <state>WI</state>
- <zip>54301</zip>
- <country>USA</country>
- </address>
- </companyCustomer>
- <companyCustomer>
- <customerCode>C002</customerCode>
- <companyName>Ventura Industry</companyName>
- <address>
- <street>1234 Ventura Way</street>
- <city>San Francisco</city>
- <state>CA</state>
- <zip>90200</zip>
- <country>USA</country>
- </address>
- </companyCustomer>
- <governmentCustomer>
- <customerCode>C009</customerCode>
- <companyName>NSA</companyName>
- <address>
- <street>980 Savager Rd</street>
- <city>Kansas City</city>
- <state>MO</state>
- <zip>66111</zip>
- <country>USA</country>
- </address>
- </governmentCustomer>
- <companyCustomer>
- <customerCode>C015</customerCode>
- <companyName>Van Industries</companyName>
- <address>
- <street>1060 North Madison</street>
- <city>Chicago</city>
- <state>IL</state>
- <zip>60602</zip>
- <country>USA</country>
- </address>
- </companyCustomer>
- <companyCustomer>
- <customerCode>C006</customerCode>
- <companyName>DR. Dre Inc.</companyName>
- <address>
- <street>2nd South Street</street>
- <city>Lincoln</city>
- <state>NE</state>
- <zip>67500</zip>
- <country>USA</country>
- </address>
- </companyCustomer>
- </customers>::::::::::::::
- ./data/Persons.json
- ::::::::::::::
- {
- "persons": {
- "person": [
- {
- "personCode": "94c",
- "firstName": "Star",
- "lastName": "Cast",
- "address": {
- "street": "1060 South Maddison Ave",
- "city": "Sayreville",
- "state": "NY",
- "zip": "122",
- "country": "USA"
- },
- "emails": [
- "scast@cubs.com",
- "starcasto13@gmail.com"
- ]
- },
- {
- "personCode": "06a",
- "firstName": "Brockel",
- "lastName": "Sam",
- "address": {
- "street": "123 N",
- "city": "Lincoln",
- "state": "NE",
- "zip": "68116",
- "country": "USA"
- },
- "emails": [
- "brocysam@gmail.com",
- "bsam@venture.com"
- ]
- },
- {
- "personCode": "55b",
- "firstName": "Mile",
- "lastName": "Brien",
- "address": {
- "street": "8753 West 8th St",
- "city": "Housten",
- "state": "TX",
- "zip": "75305",
- "country": "USA"
- },
- "emails": [
- "brien@ds9.com",
- "brien@enterprise.gov"
- ]
- },
- {
- "personCode": "42",
- "firstName": "Miley",
- "lastName": "OCyrus",
- "address": {
- "street": "123 Rude Street",
- "city": "Oklahoma City",
- "state": "OK",
- "zip": "57011",
- "country": "USA"
- }
- },
- {
- "personCode": "af1",
- "firstName": "Gordo",
- "lastName": "Geo",
- "address": {
- "street": "2 Wall Street",
- "city": "New York",
- "state": "NY",
- "zip": "10005-0012",
- "country": "USA"
- }
- },
- {
- "personCode": "3f",
- "firstName": "Budeeyyy",
- "lastName": "Foxeyy",
- "address": {
- "street": "32 Bron Street",
- "city": "New York City",
- "state": "NY",
- "zip": "10004",
- "country": "USA"
- },
- "emails": [
- "bfo@gmail.com",
- "heen@crazy.net"
- ]
- },
- {
- "personCode": "ma1",
- "firstName": "Dalley",
- "lastName": "Sve",
- "address": {
- "street": "1 West Maddison Dr",
- "city": "Kansas City",
- "state": "MO",
- "zip": "66111",
- "country": "USA"
- },
- "emails": [
- "sve@cubs.com"
- ]
- },
- {
- "personCode": "31f",
- "firstName": "Willi",
- "lastName": "Hart",
- "address": {
- "street": "11 West Maddison Street",
- "city": "Chicago",
- "state": "IL",
- "zip": "60613",
- "country": "USA"
- },
- "emails": [
- "hart@doctors.com",
- "drmoo@who.com"
- ]
- },
- {
- "personCode": "nf3",
- "firstName": "Patty",
- "lastName": "Trow",
- "address": {
- "street": "100 SW Maddison St",
- "city": "Chicago",
- "state": "IL",
- "zip": "60613",
- "country": "USA"
- },
- "emails": [
- "p@cse.unl.edu",
- "ptou32@unl.edu"
- ]
- },
- {
- "personCode": "121eu",
- "firstName": "Johny",
- "lastName": "Pewee",
- "address": {
- "street": "3rd Front St",
- "city": "FairBanks",
- "state": "AK",
- "zip": "74849",
- "country": "USA"
- },
- "emails": [
- "jetwee@whofan.com"
- ]
- },
- {
- "personCode": "2",
- "firstName": "Tommy",
- "lastName": "Boy",
- "address": {
- "street": "2 Red Hawks Run",
- "city": "Kearny",
- "state": "MO",
- "zip": "64099",
- "country": "USA"
- },
- "emails": [
- "famodoc@who.com",
- "er@cse.unl.edu",
- "mostifamous@whovian.com",
- "thedocr@bbc.com"
- ]
- },
- {
- "personCode": "6dc",
- "firstName": "Dick",
- "lastName": "Hurndel",
- "address": {
- "street": "South West",
- "city": "Pheonix",
- "state": "AR",
- "zip": "00321",
- "country": "USA"
- },
- "emails": [
- "Shmeh@cse.unl.edu",
- "DICKY@unl.edu"
- ]
- },
- {
- "personCode": "31d",
- "firstName": "C.J.",
- "lastName": "Baka",
- "address": {
- "street": "Nebraska Hall",
- "city": "Lincoln",
- "state": "NE",
- "zip": "68503",
- "country": "USA"
- },
- "emails": [
- "r@baker.com"
- ]
- },
- {
- "personCode": "1svndr",
- "firstName": "Salle",
- "lastName": "Coy",
- "address": {
- "street": "12th Roosevelt Ave",
- "city": "Mushing",
- "state": "MN",
- "zip": "78294",
- "country": "USA"
- },
- "emails": [
- "slycoy@hotmail.com",
- "coy@whofan.com"
- ]
- },
- {
- "personCode": "12t",
- "firstName": "Pauly",
- "lastName": "Gann",
- "address": {
- "street": "MetLife Stadium Drive",
- "city": "East Rutherford",
- "state": "NJ",
- "zip": "07073",
- "country": "USA"
- },
- "emails": [
- "pcgann@mlb.com",
- "fo@bar.com",
- "mc@unl.edu"
- ]
- },
- {
- "personCode": "swdoc2",
- "firstName": "Christopher",
- "lastName": "Kilkeny",
- "address": {
- "street": "10 North 11th Rd",
- "city": "Brooklyn",
- "state": "NY",
- "zip": "10451",
- "country": "USA"
- },
- "emails": [
- "oldguy@whovian.com"
- ]
- },
- {
- "personCode": "2estd",
- "firstName": "Davey",
- "lastName": "Ten",
- "address": {
- "street": "70022 N Dull Ave",
- "city": "St. Louis",
- "state": "MO",
- "zip": "60111",
- "country": "USA"
- },
- "emails": [
- "natc@shakespeare.com",
- "tdavey@unl.edu"
- ]
- },
- {
- "personCode": "wroc",
- "firstName": "Matty",
- "lastName": "Smity",
- "address": {
- "street": "333 Weast 35th St",
- "city": "Princeton",
- "state": "NY",
- "zip": "20496",
- "country": "USA"
- },
- "emails": [
- "msmithy@who.com",
- "thedocy@cse.unl.edu"
- ]
- },
- {
- "personCode": "bar",
- "firstName": "Kayle",
- "lastName": "Traut",
- "address": {
- "street": "3 North",
- "city": "St. Louis",
- "state": "MO",
- "zip": "65935",
- "country": "USA"
- }
- },
- {
- "personCode": "doyc05",
- "firstName": "Petey",
- "lastName": "Dave",
- "address": {
- "street": "12 Cabob Lucas",
- "city": "Los Cabos",
- "state": "BCS",
- "country": "Mexico"
- }
- }
- ]
- }
- }
- ::::::::::::::
- ./data/Products.json
- ::::::::::::::
- {
- "products": [ {
- "code": "b2e",
- "name": "Uno PID Suplier",
- "pricePerUnit": 500.0
- },
- {
- "code": "ff1",
- "name": "Cuatro-Pone",
- "pricePerUnit": 12.2
- },
- {
- "code": "f12",
- "name": "Noternet Things",
- "pricePerUnit": 12.59
- },
- {
- "code": "139",
- "name": "Ocho Video Cubix",
- "pricePerUnit": 5000.0
- },
- {
- "code": "90f",
- "name": "Ocho Services",
- "serviceFee": 200.0,
- "annualLicenseFee": 2400.0
- },
- {
- "code": "329",
- "name": "Cuatro-Pone Training",
- "consultant": {
- "personCode": "af1",
- "firstName": "Gordo",
- "lastName": "Geo",
- "address": {
- "street": "2 Wall Street",
- "city": "New York",
- "state": "NY",
- "zip": "10005-0012",
- "country": "USA"
- }
- },
- "hourlyFee": 20.0
- },
- {
- "code": "72g",
- "name": "Server System Meltdown",
- "consultant": {
- "personCode": "31f",
- "firstName": "Willi",
- "lastName": "Hart",
- "address": {
- "street": "11 West Maddison Street",
- "city": "Chicago",
- "state": "IL",
- "zip": "60613",
- "country": "USA"
- },
- "emails": [
- "hart@doctors.com",
- "drmoo@who.com"
- ]
- },
- "hourlyFee": 53.1
- },
- {
- "code": "329",
- "name": "Your SQL Host",
- "serviceFee": 2.0,
- "annualLicenseFee": 55000.0
- },
- {
- "code": "329",
- "name": "Yoname Registration",
- "serviceFee": 210.0,
- "annualLicenseFee": 2000.0
- }
- ]}
- [-] Test Case 2 (case11)
- Expected Output
- Data and output files:
- Customers.dat:
- 7
- AB15;C;bfab;Madalay Industries;1060 West Addison,Springfield,IL,60601,USA
- AB11;G;144a;University of Nebraska-Lincoln;420 University Terrace,Lincoln,NE,68588,USA
- AB13;C;149ba;Dunder Mifflin Paper Company;123 Venture Way,Stranton,PA,10456,USA
- AB16;C; ms42;Rockfort Inc.;456 West 7th St.,Rockfort,CA,98500,USA
- AB12;C;499c;Stark Industries;184 Marvel Way,New York,NY,10453,USA
- AB17;G;267a;Department of Motor Vehicles;625 N 46th St.,Lincoln,NE,68503,USA
- AB14;G;344d;National Security Administration;9800 Savage Rd,Fort Meade,MD,20755,USA
- Persons.dat:
- 15
- 144a;Reidesel,Charles;459 N 34th St, Lincoln, NE,68302, USA;creidesel@who.com,chuckreidesel@cse.unl.edu,chuckr@bbc.com
- 55bb;Davis, Miles;8753 West 3rd Ave.,Dallas,TX,75001,USA;davis12@ds9.com,mdav@rockfort.gov
- 321nd;Enders, William;1165 West Madison Street,Chicago,IL,60613,USA;wenders@doctors.com,dr@who.com
- 149ba;Williams, Darren;142 N 14th Street,Omaha,NE,68116,USA;darren_f_williams@gmail.com,dwillaims@venture.com
- ma12;Rediger, Tyler;435 N 51st Street,Lincoln,NE,68502,USA;tred@pubs.com
- 499c;Sonford, Harry;1467 Addison Street,Stillwater,OK,60613,USA;harrysonford@cubs.com,sonford_harry13@gmail.com
- bfab;Hanten, Mathias;320 West 6th Street, South Sioux city, NE, 68776,USA;mhanten@gmail.com
- aef1;Monterroso, Richard;1 Wall Street,Indio,CA,9221-0012,USA;rmont12@yahoo.com
- 267a;Enders, Ryan;1162 West Madison Street,Chicago,IL,60613,USA;render@cse.unl.edu,renders32@unl.edu
- 321na;Lenz, Matthew;301 Front St W, Toronto, ON, M5V 2T6, Canada;jpet@whofan.com
- 344d;Connor, Bryan;344 Lincoln Street,New York,NY,10023,USA;bconnor@gmail.com,cbryan@aol.com
- 1svndr;McCoy,Travis;126-01 Roosevelt Ave, Flushing, NY,11368,USA;slyguy@hotmail.com,mccoy@aol.com
- adhoc;Hammond, Richard;1 E 161st St, Bronx, NY,10451,USA;rhammond@aol.com
- ms42;Smydra, Kordel;Avery Hall,Lincoln,NE,68503,USA;kordel_smydra@baker.com
- asn2;Smith, Matt;333 W 35th St, Chicago, IL,60616,USA;msmith@who.com,thedoc@cse.unl.edu
- Products.dat:
- 8
- s42a;E;Jericho Missile;250000.0
- ab23;E;Rockfort Jdisc;124.99
- fp12;E;Mandalay Jtone;14.99
- 1239;E;Rockfort GameBox;499.00
- 90fa;L;Mandalay Long Distance Service;1899.00;17000.00
- 3289;C;Mandalay-Jtone Training;aef1;32.00
- 298K;C;MServer-Server System Setup and Assistance;321nd;180.00
- 3294;L;MCloud Data Storage;40.00;3000.00
- Customers.xml:
- <?xml version="1.0"?>
- <customers>
- <governmentCustomer>
- <customerCode>AB11</customerCode>
- <name>University of Nebraska-Lincoln</name>
- <address>
- <street>420 University Terrace</street>
- <city>Lincoln</city>
- <state>NE</state>
- <zip>68588</zip>
- <country>USA</country>
- </address>
- <primaryContact>
- <personCode>144a</personCode>
- <firstName>Charles</firstName>
- <lastName>Reidesel</lastName>
- <address>
- <street>459 N 34th St</street>
- <city>Lincoln</city>
- <state>NE</state>
- <zip>68302</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>chuckr@bbc.com</email>
- <email>chuckreidesel@cse.unl.edu</email>
- <email>creidesel@who.com</email>
- </emails>
- </primaryContact>
- </governmentCustomer>
- <companyCustomer>
- <customerCode>AB12</customerCode>
- <name>Stark Industries</name>
- <address>
- <street>184 Marvel Way</street>
- <city>New York</city>
- <state>NY</state>
- <zip>10453</zip>
- <country>USA</country>
- </address>
- <primaryContact>
- <personCode>499c</personCode>
- <firstName>Harry</firstName>
- <lastName>Sonford</lastName>
- <address>
- <street>1467 Addison Street</street>
- <city>Stillwater</city>
- <state>OK</state>
- <zip>60613</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>harrysonford@cubs.com</email>
- <email>sonford_harry13@gmail.com</email>
- </emails>
- </primaryContact>
- </companyCustomer>
- <companyCustomer>
- <customerCode>AB13</customerCode>
- <name>Dunder Mifflin Paper Company</name>
- <address>
- <street>123 Venture Way</street>
- <city>Stranton</city>
- <state>PA</state>
- <zip>10456</zip>
- <country>USA</country>
- </address>
- </companyCustomer>
- <governmentCustomer>
- <customerCode>AB14</customerCode>
- <name>National Security Administration</name>
- <address>
- <street>9800 Savage Rd</street>
- <city>Fort Meade</city>
- <state>MD</state>
- <zip>20755</zip>
- <country>USA</country>
- </address>
- <primaryContact>
- <personCode>344d</personCode>
- <firstName>Bryan</firstName>
- <lastName>Connor</lastName>
- <address>
- <street>344 Lincoln Street</street>
- <city>New York</city>
- <state>NY</state>
- <zip>10023</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>cbryan@aol.com</email>
- <email>bconnor@gmail.com</email>
- </emails>
- </primaryContact>
- </governmentCustomer>
- <companyCustomer>
- <customerCode>AB15</customerCode>
- <name>Madalay Industries</name>
- <address>
- <street>1060 West Addison</street>
- <city>Springfield</city>
- <state>IL</state>
- <zip>60601</zip>
- <country>USA</country>
- </address>
- <primaryContact>
- <personCode>bfab</personCode>
- <firstName>Mathias</firstName>
- <lastName>Hanten</lastName>
- <address>
- <street>320 West 6th Street</street>
- <city>South Sioux city</city>
- <state>NE</state>
- <zip>68776</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>mhanten@gmail.com</email>
- </emails>
- </primaryContact>
- </companyCustomer>
- <companyCustomer>
- <customerCode>AB16</customerCode>
- <name>Rockfort Inc.</name>
- <address>
- <street>456 West 7th St.</street>
- <city>Rockfort</city>
- <state>CA</state>
- <zip>98500</zip>
- <country>USA</country>
- </address>
- <primaryContact>
- <personCode>ms42</personCode>
- <firstName>Kordel</firstName>
- <lastName>Smydra</lastName>
- <address>
- <street>Avery Hall</street>
- <city>Lincoln</city>
- <state>NE</state>
- <zip>68503</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>kordel_smydra@baker.com</email>
- </emails>
- </primaryContact>
- </companyCustomer>
- <governmentCustomer>
- <customerCode>AB17</customerCode>
- <name>Department of Motor Vehicles</name>
- <address>
- <street>625 N 46th St.</street>
- <city>Lincoln</city>
- <state>NE</state>
- <zip>68503</zip>
- <country>USA</country>
- </address>
- <primaryContact>
- <personCode>267a</personCode>
- <firstName>Ryan</firstName>
- <lastName>Enders</lastName>
- <address>
- <street>1162 West Madison Street</street>
- <city>Chicago</city>
- <state>IL</state>
- <zip>60613</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>renders32@unl.edu</email>
- <email>render@cse.unl.edu</email>
- </emails>
- </primaryContact>
- </governmentCustomer>
- </customers>
- Persons.xml:
- <?xml version="1.0"?>
- <persons>
- <person>
- <personCode>149ba</personCode>
- <firstName>Darren</firstName>
- <lastName>Williams</lastName>
- <address>
- <street>142 N 14th Street</street>
- <city>Omaha</city>
- <state>NE</state>
- <zip>68116</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>dwillaims@venture.com</email>
- <email>darren_f_williams@gmail.com</email>
- </emails>
- </person>
- <person>
- <personCode>321na</personCode>
- <firstName>Matthew</firstName>
- <lastName>Lenz</lastName>
- <address>
- <street>301 Front St W</street>
- <city>Toronto</city>
- <state>ON</state>
- <zip>M5V 2T6</zip>
- <country>Canada</country>
- </address>
- <emails>
- <email>jpet@whofan.com</email>
- </emails>
- </person>
- <person>
- <personCode>344d</personCode>
- <firstName>Bryan</firstName>
- <lastName>Connor</lastName>
- <address>
- <street>344 Lincoln Street</street>
- <city>New York</city>
- <state>NY</state>
- <zip>10023</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>cbryan@aol.com</email>
- <email>bconnor@gmail.com</email>
- </emails>
- </person>
- <person>
- <personCode>ms42</personCode>
- <firstName>Kordel</firstName>
- <lastName>Smydra</lastName>
- <address>
- <street>Avery Hall</street>
- <city>Lincoln</city>
- <state>NE</state>
- <zip>68503</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>kordel_smydra@baker.com</email>
- </emails>
- </person>
- <person>
- <personCode>1svndr</personCode>
- <firstName>Travis</firstName>
- <lastName>McCoy</lastName>
- <address>
- <street>126-01 Roosevelt Ave</street>
- <city>Flushing</city>
- <state>NY</state>
- <zip>11368</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>mccoy@aol.com</email>
- <email>slyguy@hotmail.com</email>
- </emails>
- </person>
- <person>
- <personCode>55bb</personCode>
- <firstName>Miles</firstName>
- <lastName>Davis</lastName>
- <address>
- <street>8753 West 3rd Ave.</street>
- <city>Dallas</city>
- <state>TX</state>
- <zip>75001</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>mdav@rockfort.gov</email>
- <email>davis12@ds9.com</email>
- </emails>
- </person>
- <person>
- <personCode>321nd</personCode>
- <firstName>William</firstName>
- <lastName>Enders</lastName>
- <address>
- <street>1165 West Madison Street</street>
- <city>Chicago</city>
- <state>IL</state>
- <zip>60613</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>dr@who.com</email>
- <email>wenders@doctors.com</email>
- </emails>
- </person>
- <person>
- <personCode>144a</personCode>
- <firstName>Charles</firstName>
- <lastName>Reidesel</lastName>
- <address>
- <street>459 N 34th St</street>
- <city>Lincoln</city>
- <state>NE</state>
- <zip>68302</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>chuckr@bbc.com</email>
- <email>chuckreidesel@cse.unl.edu</email>
- <email>creidesel@who.com</email>
- </emails>
- </person>
- <person>
- <personCode>499c</personCode>
- <firstName>Harry</firstName>
- <lastName>Sonford</lastName>
- <address>
- <street>1467 Addison Street</street>
- <city>Stillwater</city>
- <state>OK</state>
- <zip>60613</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>harrysonford@cubs.com</email>
- <email>sonford_harry13@gmail.com</email>
- </emails>
- </person>
- <person>
- <personCode>bfab</personCode>
- <firstName>Mathias</firstName>
- <lastName>Hanten</lastName>
- <address>
- <street>320 West 6th Street</street>
- <city>South Sioux city</city>
- <state>NE</state>
- <zip>68776</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>mhanten@gmail.com</email>
- </emails>
- </person>
- <person>
- <personCode>asn2</personCode>
- <firstName>Matt</firstName>
- <lastName>Smith</lastName>
- <address>
- <street>333 W 35th St</street>
- <city>Chicago</city>
- <state>IL</state>
- <zip>60616</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>msmith@who.com</email>
- <email>thedoc@cse.unl.edu</email>
- </emails>
- </person>
- <person>
- <personCode>aef1</personCode>
- <firstName>Richard</firstName>
- <lastName>Monterroso</lastName>
- <address>
- <street>1 Wall Street</street>
- <city>Indio</city>
- <state>CA</state>
- <zip>9221-0012</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>rmont12@yahoo.com</email>
- </emails>
- </person>
- <person>
- <personCode>ma12</personCode>
- <firstName>Tyler</firstName>
- <lastName>Rediger</lastName>
- <address>
- <street>435 N 51st Street</street>
- <city>Lincoln</city>
- <state>NE</state>
- <zip>68502</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>tred@pubs.com</email>
- </emails>
- </person>
- <person>
- <personCode>267a</personCode>
- <firstName>Ryan</firstName>
- <lastName>Enders</lastName>
- <address>
- <street>1162 West Madison Street</street>
- <city>Chicago</city>
- <state>IL</state>
- <zip>60613</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>renders32@unl.edu</email>
- <email>render@cse.unl.edu</email>
- </emails>
- </person>
- <person>
- <personCode>adhoc</personCode>
- <firstName>Richard</firstName>
- <lastName>Hammond</lastName>
- <address>
- <street>1 E 161st St</street>
- <city>Bronx</city>
- <state>NY</state>
- <zip>10451</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>rhammond@aol.com</email>
- </emails>
- </person>
- </persons>
- Products.xml:
- <?xml version="1.0"?>
- <products>
- <consultation>
- <productCode>298K</productCode>
- <name>MServer-Server System Setup and Assistance</name>
- <consultant>
- <personCode>321nd</personCode>
- <firstName>William</firstName>
- <lastName>Enders</lastName>
- <address>
- <street>1165 West Madison Street</street>
- <city>Chicago</city>
- <state>IL</state>
- <zip>60613</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>dr@who.com</email>
- <email>wenders@doctors.com</email>
- </emails>
- </consultant>
- <pricePerHour>180.0</pricePerHour>
- </consultation>
- <consultation>
- <productCode>3289</productCode>
- <name>Mandalay-Jtone Training</name>
- <consultant>
- <personCode>aef1</personCode>
- <firstName>Richard</firstName>
- <lastName>Monterroso</lastName>
- <address>
- <street>1 Wall Street</street>
- <city>Indio</city>
- <state>CA</state>
- <zip>9221-0012</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>rmont12@yahoo.com</email>
- </emails>
- </consultant>
- <pricePerHour>32.0</pricePerHour>
- </consultation>
- <equipment>
- <productCode>s42a</productCode>
- <name>Jericho Missile</name>
- <pricePerUnit>250000.0</pricePerUnit>
- </equipment>
- <license>
- <productCode>90fa</productCode>
- <name>Mandalay Long Distance Service</name>
- <fee>1899.0</fee>
- <annualCost>17000.0</annualCost>
- </license>
- <equipment>
- <productCode>1239</productCode>
- <name>Rockfort GameBox</name>
- <pricePerUnit>499.0</pricePerUnit>
- </equipment>
- <equipment>
- <productCode>fp12</productCode>
- <name>Mandalay Jtone</name>
- <pricePerUnit>14.99</pricePerUnit>
- </equipment>
- <license>
- <productCode>3294</productCode>
- <name>MCloud Data Storage</name>
- <fee>40.0</fee>
- <annualCost>3000.0</annualCost>
- </license>
- <equipment>
- <productCode>ab23</productCode>
- <name>Rockfort Jdisc</name>
- <pricePerUnit>124.99</pricePerUnit>
- </equipment>
- </products>
- Customers.json:
- {
- "customers": [
- {
- "customerCode": "AB11",
- "name": "University of Nebraska-Lincoln",
- "address": {
- "street": "420 University Terrace",
- "city": "Lincoln",
- "state": "NE",
- "zip": "68588",
- "country": "USA"
- },
- "primaryContact": {
- "personCode": "144a",
- "firstName": "Charles",
- "lastName": "Reidesel",
- "address": {
- "street": "459 N 34th St",
- "city": "Lincoln",
- "state": "NE",
- "zip": "68302",
- "country": "USA"
- },
- "emails": [
- "chuckr@bbc.com",
- "chuckreidesel@cse.unl.edu",
- "creidesel@who.com"
- ]
- }
- },
- {
- "customerCode": "AB12",
- "name": "Stark Industries",
- "address": {
- "street": "184 Marvel Way",
- "city": "New York",
- "state": "NY",
- "zip": "10453",
- "country": "USA"
- },
- "primaryContact": {
- "personCode": "499c",
- "firstName": "Harry",
- "lastName": "Sonford",
- "address": {
- "street": "1467 Addison Street",
- "city": "Stillwater",
- "state": "OK",
- "zip": "60613",
- "country": "USA"
- },
- "emails": [
- "harrysonford@cubs.com",
- "sonford_harry13@gmail.com"
- ]
- }
- },
- {
- "customerCode": "AB13",
- "name": "Dunder Mifflin Paper Company",
- "address": {
- "street": "123 Venture Way",
- "city": "Stranton",
- "state": "PA",
- "zip": "10456",
- "country": "USA"
- }
- },
- {
- "customerCode": "AB14",
- "name": "National Security Administration",
- "address": {
- "street": "9800 Savage Rd",
- "city": "Fort Meade",
- "state": "MD",
- "zip": "20755",
- "country": "USA"
- },
- "primaryContact": {
- "personCode": "344d",
- "firstName": "Bryan",
- "lastName": "Connor",
- "address": {
- "street": "344 Lincoln Street",
- "city": "New York",
- "state": "NY",
- "zip": "10023",
- "country": "USA"
- },
- "emails": [
- "cbryan@aol.com",
- "bconnor@gmail.com"
- ]
- }
- },
- {
- "customerCode": "AB15",
- "name": "Madalay Industries",
- "address": {
- "street": "1060 West Addison",
- "city": "Springfield",
- "state": "IL",
- "zip": "60601",
- "country": "USA"
- },
- "primaryContact": {
- "personCode": "bfab",
- "firstName": "Mathias",
- "lastName": "Hanten",
- "address": {
- "street": "320 West 6th Street",
- "city": "South Sioux city",
- "state": "NE",
- "zip": "68776",
- "country": "USA"
- },
- "emails": [
- "mhanten@gmail.com"
- ]
- }
- },
- {
- "customerCode": "AB16",
- "name": "Rockfort Inc.",
- "address": {
- "street": "456 West 7th St.",
- "city": "Rockfort",
- "state": "CA",
- "zip": "98500",
- "country": "USA"
- },
- "primaryContact": {
- "personCode": "ms42",
- "firstName": "Kordel",
- "lastName": "Smydra",
- "address": {
- "street": "Avery Hall",
- "city": "Lincoln",
- "state": "NE",
- "zip": "68503",
- "country": "USA"
- },
- "emails": [
- "kordel_smydra@baker.com"
- ]
- }
- },
- {
- "customerCode": "AB17",
- "name": "Department of Motor Vehicles",
- "address": {
- "street": "625 N 46th St.",
- "city": "Lincoln",
- "state": "NE",
- "zip": "68503",
- "country": "USA"
- },
- "primaryContact": {
- "personCode": "267a",
- "firstName": "Ryan",
- "lastName": "Enders",
- "address": {
- "street": "1162 West Madison Street",
- "city": "Chicago",
- "state": "IL",
- "zip": "60613",
- "country": "USA"
- },
- "emails": [
- "renders32@unl.edu",
- "render@cse.unl.edu"
- ]
- }
- }
- ]}
- Persons.json:
- {
- "persons": [
- {
- "personCode": "149ba",
- "firstName": "Darren",
- "lastName": "Williams",
- "address": {
- "street": "142 N 14th Street",
- "city": "Omaha",
- "state": "NE",
- "zip": "68116",
- "country": "USA"
- },
- "emails": [
- "dwillaims@venture.com",
- "darren_f_williams@gmail.com"
- ]
- },
- {
- "personCode": "321na",
- "firstName": "Matthew",
- "lastName": "Lenz",
- "address": {
- "street": "301 Front St W",
- "city": "Toronto",
- "state": "ON",
- "zip": "M5V 2T6",
- "country": "Canada"
- },
- "emails": [
- "jpet@whofan.com"
- ]
- },
- {
- "personCode": "344d",
- "firstName": "Bryan",
- "lastName": "Connor",
- "address": {
- "street": "344 Lincoln Street",
- "city": "New York",
- "state": "NY",
- "zip": "10023",
- "country": "USA"
- },
- "emails": [
- "cbryan@aol.com",
- "bconnor@gmail.com"
- ]
- },
- {
- "personCode": "ms42",
- "firstName": "Kordel",
- "lastName": "Smydra",
- "address": {
- "street": "Avery Hall",
- "city": "Lincoln",
- "state": "NE",
- "zip": "68503",
- "country": "USA"
- },
- "emails": [
- "kordel_smydra@baker.com"
- ]
- },
- {
- "personCode": "1svndr",
- "firstName": "Travis",
- "lastName": "McCoy",
- "address": {
- "street": "126-01 Roosevelt Ave",
- "city": "Flushing",
- "state": "NY",
- "zip": "11368",
- "country": "USA"
- },
- "emails": [
- "mccoy@aol.com",
- "slyguy@hotmail.com"
- ]
- },
- {
- "personCode": "55bb",
- "firstName": "Miles",
- "lastName": "Davis",
- "address": {
- "street": "8753 West 3rd Ave.",
- "city": "Dallas",
- "state": "TX",
- "zip": "75001",
- "country": "USA"
- },
- "emails": [
- "mdav@rockfort.gov",
- "davis12@ds9.com"
- ]
- },
- {
- "personCode": "321nd",
- "firstName": "William",
- "lastName": "Enders",
- "address": {
- "street": "1165 West Madison Street",
- "city": "Chicago",
- "state": "IL",
- "zip": "60613",
- "country": "USA"
- },
- "emails": [
- "dr@who.com",
- "wenders@doctors.com"
- ]
- },
- {
- "personCode": "144a",
- "firstName": "Charles",
- "lastName": "Reidesel",
- "address": {
- "street": "459 N 34th St",
- "city": "Lincoln",
- "state": "NE",
- "zip": "68302",
- "country": "USA"
- },
- "emails": [
- "chuckr@bbc.com",
- "chuckreidesel@cse.unl.edu",
- "creidesel@who.com"
- ]
- },
- {
- "personCode": "499c",
- "firstName": "Harry",
- "lastName": "Sonford",
- "address": {
- "street": "1467 Addison Street",
- "city": "Stillwater",
- "state": "OK",
- "zip": "60613",
- "country": "USA"
- },
- "emails": [
- "harrysonford@cubs.com",
- "sonford_harry13@gmail.com"
- ]
- },
- {
- "personCode": "bfab",
- "firstName": "Mathias",
- "lastName": "Hanten",
- "address": {
- "street": "320 West 6th Street",
- "city": "South Sioux city",
- "state": "NE",
- "zip": "68776",
- "country": "USA"
- },
- "emails": [
- "mhanten@gmail.com"
- ]
- },
- {
- "personCode": "asn2",
- "firstName": "Matt",
- "lastName": "Smith",
- "address": {
- "street": "333 W 35th St",
- "city": "Chicago",
- "state": "IL",
- "zip": "60616",
- "country": "USA"
- },
- "emails": [
- "msmith@who.com",
- "thedoc@cse.unl.edu"
- ]
- },
- {
- "personCode": "aef1",
- "firstName": "Richard",
- "lastName": "Monterroso",
- "address": {
- "street": "1 Wall Street",
- "city": "Indio",
- "state": "CA",
- "zip": "9221-0012",
- "country": "USA"
- },
- "emails": [
- "rmont12@yahoo.com"
- ]
- },
- {
- "personCode": "ma12",
- "firstName": "Tyler",
- "lastName": "Rediger",
- "address": {
- "street": "435 N 51st Street",
- "city": "Lincoln",
- "state": "NE",
- "zip": "68502",
- "country": "USA"
- },
- "emails": [
- "tred@pubs.com"
- ]
- },
- {
- "personCode": "267a",
- "firstName": "Ryan",
- "lastName": "Enders",
- "address": {
- "street": "1162 West Madison Street",
- "city": "Chicago",
- "state": "IL",
- "zip": "60613",
- "country": "USA"
- },
- "emails": [
- "renders32@unl.edu",
- "render@cse.unl.edu"
- ]
- },
- {
- "personCode": "adhoc",
- "firstName": "Richard",
- "lastName": "Hammond",
- "address": {
- "street": "1 E 161st St",
- "city": "Bronx",
- "state": "NY",
- "zip": "10451",
- "country": "USA"
- },
- "emails": [
- "rhammond@aol.com"
- ]
- }
- ]}
- Products.json:
- {
- "products": [
- {
- "consultant": {
- "personCode": "321nd",
- "firstName": "William",
- "lastName": "Enders",
- "address": {
- "street": "1165 West Madison Street",
- "city": "Chicago",
- "state": "IL",
- "zip": "60613",
- "country": "USA"
- },
- "emails": [
- "dr@who.com",
- "wenders@doctors.com"
- ]
- },
- "pricePerHour": 180.0,
- "productCode": "298K",
- "name": "MServer-Server System Setup and Assistance"
- },
- {
- "consultant": {
- "personCode": "aef1",
- "firstName": "Richard",
- "lastName": "Monterroso",
- "address": {
- "street": "1 Wall Street",
- "city": "Indio",
- "state": "CA",
- "zip": "9221-0012",
- "country": "USA"
- },
- "emails": [
- "rmont12@yahoo.com"
- ]
- },
- "pricePerHour": 32.0,
- "productCode": "3289",
- "name": "Mandalay-Jtone Training"
- },
- {
- "pricePerUnit": 250000.0,
- "productCode": "s42a",
- "name": "Jericho Missile"
- },
- {
- "fee": 1899.0,
- "annualCost": 17000.0,
- "productCode": "90fa",
- "name": "Mandalay Long Distance Service"
- },
- {
- "pricePerUnit": 499.0,
- "productCode": "1239",
- "name": "Rockfort GameBox"
- },
- {
- "pricePerUnit": 14.99,
- "productCode": "fp12",
- "name": "Mandalay Jtone"
- },
- {
- "fee": 40.0,
- "annualCost": 3000.0,
- "productCode": "3294",
- "name": "MCloud Data Storage"
- },
- {
- "pricePerUnit": 124.99,
- "productCode": "ab23",
- "name": "Rockfort Jdisc"
- }
- ]}
- Program Output
- Customer [customerCode=AB15, type=C, companyName=Madalay Industries, address=Address [street=1060 West Addison, city=Springfield, state=IL, zip=60601, country=USA]]
- Customer [customerCode=AB11, type=G, companyName=University of Nebraska-Lincoln, address=Address [street=420 University Terrace, city=Lincoln, state=NE, zip=68588, country=USA]]
- Customer [customerCode=AB13, type=C, companyName=Dunder Mifflin Paper Company, address=Address [street=123 Venture Way, city=Stranton, state=PA, zip=10456, country=USA]]
- Customer [customerCode=AB16, type=C, companyName=Rockfort Inc., address=Address [street=456 West 7th St., city=Rockfort, state=CA, zip=98500, country=USA]]
- Customer [customerCode=AB12, type=C, companyName=Stark Industries, address=Address [street=184 Marvel Way, city=New York, state=NY, zip=10453, country=USA]]
- 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]]
- Customer [customerCode=AB14, type=G, companyName=National Security Administration, address=Address [street=9800 Savage Rd, city=Fort Meade, state=MD, zip=20755, country=USA]]
- Product [code=s42a, type=E, name=Jericho Missile] Equipment [pricePerUnit=250000.0]
- Product [code=ab23, type=E, name=Rockfort Jdisc] Equipment [pricePerUnit=124.99]
- Product [code=fp12, type=E, name=Mandalay Jtone] Equipment [pricePerUnit=14.99]
- Product [code=1239, type=E, name=Rockfort GameBox] Equipment [pricePerUnit=499.0]
- Product [code=90fa, type=L, name=Mandalay Long Distance Service] License [serviceFee=1899.0, annualLicenseFee=17000.0]
- 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]
- 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]
- Product [code=3294, type=L, name=MCloud Data Storage] License [serviceFee=40.0, annualLicenseFee=3000.0]
- ::::::::::::::
- ./data/Customers.xml
- ::::::::::::::
- <customers>
- <companyCustomer>
- <customerCode>AB15</customerCode>
- <companyName>Madalay Industries</companyName>
- <address>
- <street>1060 West Addison</street>
- <city>Springfield</city>
- <state>IL</state>
- <zip>60601</zip>
- <country>USA</country>
- </address>
- </companyCustomer>
- <governmentCustomer>
- <customerCode>AB11</customerCode>
- <companyName>University of Nebraska-Lincoln</companyName>
- <address>
- <street>420 University Terrace</street>
- <city>Lincoln</city>
- <state>NE</state>
- <zip>68588</zip>
- <country>USA</country>
- </address>
- </governmentCustomer>
- <companyCustomer>
- <customerCode>AB13</customerCode>
- <companyName>Dunder Mifflin Paper Company</companyName>
- <address>
- <street>123 Venture Way</street>
- <city>Stranton</city>
- <state>PA</state>
- <zip>10456</zip>
- <country>USA</country>
- </address>
- </companyCustomer>
- <companyCustomer>
- <customerCode>AB16</customerCode>
- <companyName>Rockfort Inc.</companyName>
- <address>
- <street>456 West 7th St.</street>
- <city>Rockfort</city>
- <state>CA</state>
- <zip>98500</zip>
- <country>USA</country>
- </address>
- </companyCustomer>
- <companyCustomer>
- <customerCode>AB12</customerCode>
- <companyName>Stark Industries</companyName>
- <address>
- <street>184 Marvel Way</street>
- <city>New York</city>
- <state>NY</state>
- <zip>10453</zip>
- <country>USA</country>
- </address>
- </companyCustomer>
- <governmentCustomer>
- <customerCode>AB17</customerCode>
- <companyName>Department of Motor Vehicles</companyName>
- <address>
- <street>625 N 46th St.</street>
- <city>Lincoln</city>
- <state>NE</state>
- <zip>68503</zip>
- <country>USA</country>
- </address>
- </governmentCustomer>
- <governmentCustomer>
- <customerCode>AB14</customerCode>
- <companyName>National Security Administration</companyName>
- <address>
- <street>9800 Savage Rd</street>
- <city>Fort Meade</city>
- <state>MD</state>
- <zip>20755</zip>
- <country>USA</country>
- </address>
- </governmentCustomer>
- </customers>::::::::::::::
- ./data/Persons.xml
- ::::::::::::::
- <persons>
- <person>
- <personCode>144a</personCode>
- <firstName>Charles</firstName>
- <lastName>Reidesel</lastName>
- <address>
- <street>459 N 34th St</street>
- <city>Lincoln</city>
- <state>NE</state>
- <zip>68302</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>creidesel@who.com</email>
- <email>chuckreidesel@cse.unl.edu</email>
- <email>chuckr@bbc.com</email>
- </emails>
- </person>
- <person>
- <personCode>55bb</personCode>
- <firstName>Miles</firstName>
- <lastName>Davis</lastName>
- <address>
- <street>8753 West 3rd Ave.</street>
- <city>Dallas</city>
- <state>TX</state>
- <zip>75001</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>davis12@ds9.com</email>
- <email>mdav@rockfort.gov</email>
- </emails>
- </person>
- <person>
- <personCode>321nd</personCode>
- <firstName>William</firstName>
- <lastName>Enders</lastName>
- <address>
- <street>1165 West Madison Street</street>
- <city>Chicago</city>
- <state>IL</state>
- <zip>60613</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>wenders@doctors.com</email>
- <email>dr@who.com</email>
- </emails>
- </person>
- <person>
- <personCode>149ba</personCode>
- <firstName>Darren</firstName>
- <lastName>Williams</lastName>
- <address>
- <street>142 N 14th Street</street>
- <city>Omaha</city>
- <state>NE</state>
- <zip>68116</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>darren_f_williams@gmail.com</email>
- <email>dwillaims@venture.com</email>
- </emails>
- </person>
- <person>
- <personCode>ma12</personCode>
- <firstName>Tyler</firstName>
- <lastName>Rediger</lastName>
- <address>
- <street>435 N 51st Street</street>
- <city>Lincoln</city>
- <state>NE</state>
- <zip>68502</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>tred@pubs.com</email>
- </emails>
- </person>
- <person>
- <personCode>499c</personCode>
- <firstName>Harry</firstName>
- <lastName>Sonford</lastName>
- <address>
- <street>1467 Addison Street</street>
- <city>Stillwater</city>
- <state>OK</state>
- <zip>60613</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>harrysonford@cubs.com</email>
- <email>sonford_harry13@gmail.com</email>
- </emails>
- </person>
- <person>
- <personCode>bfab</personCode>
- <firstName>Mathias</firstName>
- <lastName>Hanten</lastName>
- <address>
- <street>320 West 6th Street</street>
- <city>South Sioux city</city>
- <state>NE</state>
- <zip>68776</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>mhanten@gmail.com</email>
- </emails>
- </person>
- <person>
- <personCode>aef1</personCode>
- <firstName>Richard</firstName>
- <lastName>Monterroso</lastName>
- <address>
- <street>1 Wall Street</street>
- <city>Indio</city>
- <state>CA</state>
- <zip>9221-0012</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>rmont12@yahoo.com</email>
- </emails>
- </person>
- <person>
- <personCode>267a</personCode>
- <firstName>Ryan</firstName>
- <lastName>Enders</lastName>
- <address>
- <street>1162 West Madison Street</street>
- <city>Chicago</city>
- <state>IL</state>
- <zip>60613</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>render@cse.unl.edu</email>
- <email>renders32@unl.edu</email>
- </emails>
- </person>
- <person>
- <personCode>321na</personCode>
- <firstName>Matthew</firstName>
- <lastName>Lenz</lastName>
- <address>
- <street>301 Front St W</street>
- <city>Toronto</city>
- <state>ON</state>
- <zip>M5V 2T6</zip>
- <country>Canada</country>
- </address>
- <emails>
- <email>jpet@whofan.com</email>
- </emails>
- </person>
- <person>
- <personCode>344d</personCode>
- <firstName>Bryan</firstName>
- <lastName>Connor</lastName>
- <address>
- <street>344 Lincoln Street</street>
- <city>New York</city>
- <state>NY</state>
- <zip>10023</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>bconnor@gmail.com</email>
- <email>cbryan@aol.com</email>
- </emails>
- </person>
- <person>
- <personCode>1svndr</personCode>
- <firstName>Travis</firstName>
- <lastName>McCoy</lastName>
- <address>
- <street>126-01 Roosevelt Ave</street>
- <city>Flushing</city>
- <state>NY</state>
- <zip>11368</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>slyguy@hotmail.com</email>
- <email>mccoy@aol.com</email>
- </emails>
- </person>
- <person>
- <personCode>adhoc</personCode>
- <firstName>Richard</firstName>
- <lastName>Hammond</lastName>
- <address>
- <street>1 E 161st St</street>
- <city>Bronx</city>
- <state>NY</state>
- <zip>10451</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>rhammond@aol.com</email>
- </emails>
- </person>
- <person>
- <personCode>ms42</personCode>
- <firstName>Kordel</firstName>
- <lastName>Smydra</lastName>
- <address>
- <street>Avery Hall</street>
- <city>Lincoln</city>
- <state>NE</state>
- <zip>68503</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>kordel_smydra@baker.com</email>
- </emails>
- </person>
- <person>
- <personCode>asn2</personCode>
- <firstName>Matt</firstName>
- <lastName>Smith</lastName>
- <address>
- <street>333 W 35th St</street>
- <city>Chicago</city>
- <state>IL</state>
- <zip>60616</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>msmith@who.com</email>
- <email>thedoc@cse.unl.edu</email>
- </emails>
- </person>
- </persons>::::::::::::::
- ./data/Products.xml
- ::::::::::::::
- <products>
- <equipment>
- <productCode>s42a</productCode>
- <name>Jericho Missile</name>
- <pricePerUnit>250000.0</pricePerUnit>
- </equipment>
- <equipment>
- <productCode>ab23</productCode>
- <name>Rockfort Jdisc</name>
- <pricePerUnit>124.99</pricePerUnit>
- </equipment>
- <equipment>
- <productCode>fp12</productCode>
- <name>Mandalay Jtone</name>
- <pricePerUnit>14.99</pricePerUnit>
- </equipment>
- <equipment>
- <productCode>1239</productCode>
- <name>Rockfort GameBox</name>
- <pricePerUnit>499.0</pricePerUnit>
- </equipment>
- <license>
- <productCode>90fa</productCode>
- <name>Mandalay Long Distance Service</name>
- <fee>1899.0</fee>
- <annualCost>17000.0</annualCost>
- </license>
- <consultation>
- <productCode>3289</productCode>
- <name>Mandalay-Jtone Training</name>
- <consultant>
- <personCode>aef1</personCode>
- <firstName>Richard</firstName>
- <lastName>Monterroso</lastName>
- <address>
- <street>1 Wall Street</street>
- <city>Indio</city>
- <state>CA</state>
- <zip>9221-0012</zip>
- <country>USA</country>
- </address>
- <emails>
- <string>rmont12@yahoo.com</string>
- </emails>
- </consultant>
- <pricePerHour>32.0</pricePerHour>
- </consultation>
- <consultation>
- <productCode>298K</productCode>
- <name>MServer-Server System Setup and Assistance</name>
- <consultant>
- <personCode>321nd</personCode>
- <firstName>William</firstName>
- <lastName>Enders</lastName>
- <address>
- <street>1165 West Madison Street</street>
- <city>Chicago</city>
- <state>IL</state>
- <zip>60613</zip>
- <country>USA</country>
- </address>
- <emails>
- <string>wenders@doctors.com</string>
- <string>dr@who.com</string>
- </emails>
- </consultant>
- <pricePerHour>180.0</pricePerHour>
- </consultation>
- <license>
- <productCode>3294</productCode>
- <name>MCloud Data Storage</name>
- <fee>40.0</fee>
- <annualCost>3000.0</annualCost>
- </license>
- </products>
- ::::::::::::::
- ./data/Customers.json
- ::::::::::::::
- <customers>
- <companyCustomer>
- <customerCode>AB15</customerCode>
- <companyName>Madalay Industries</companyName>
- <address>
- <street>1060 West Addison</street>
- <city>Springfield</city>
- <state>IL</state>
- <zip>60601</zip>
- <country>USA</country>
- </address>
- </companyCustomer>
- <governmentCustomer>
- <customerCode>AB11</customerCode>
- <companyName>University of Nebraska-Lincoln</companyName>
- <address>
- <street>420 University Terrace</street>
- <city>Lincoln</city>
- <state>NE</state>
- <zip>68588</zip>
- <country>USA</country>
- </address>
- </governmentCustomer>
- <companyCustomer>
- <customerCode>AB13</customerCode>
- <companyName>Dunder Mifflin Paper Company</companyName>
- <address>
- <street>123 Venture Way</street>
- <city>Stranton</city>
- <state>PA</state>
- <zip>10456</zip>
- <country>USA</country>
- </address>
- </companyCustomer>
- <companyCustomer>
- <customerCode>AB16</customerCode>
- <companyName>Rockfort Inc.</companyName>
- <address>
- <street>456 West 7th St.</street>
- <city>Rockfort</city>
- <state>CA</state>
- <zip>98500</zip>
- <country>USA</country>
- </address>
- </companyCustomer>
- <companyCustomer>
- <customerCode>AB12</customerCode>
- <companyName>Stark Industries</companyName>
- <address>
- <street>184 Marvel Way</street>
- <city>New York</city>
- <state>NY</state>
- <zip>10453</zip>
- <country>USA</country>
- </address>
- </companyCustomer>
- <governmentCustomer>
- <customerCode>AB17</customerCode>
- <companyName>Department of Motor Vehicles</companyName>
- <address>
- <street>625 N 46th St.</street>
- <city>Lincoln</city>
- <state>NE</state>
- <zip>68503</zip>
- <country>USA</country>
- </address>
- </governmentCustomer>
- <governmentCustomer>
- <customerCode>AB14</customerCode>
- <companyName>National Security Administration</companyName>
- <address>
- <street>9800 Savage Rd</street>
- <city>Fort Meade</city>
- <state>MD</state>
- <zip>20755</zip>
- <country>USA</country>
- </address>
- </governmentCustomer>
- </customers>::::::::::::::
- ./data/Persons.json
- ::::::::::::::
- {
- "persons": {
- "person": [
- {
- "personCode": "144a",
- "firstName": "Charles",
- "lastName": "Reidesel",
- "address": {
- "street": "459 N 34th St",
- "city": "Lincoln",
- "state": "NE",
- "zip": "68302",
- "country": "USA"
- },
- "emails": [
- "creidesel@who.com",
- "chuckreidesel@cse.unl.edu",
- "chuckr@bbc.com"
- ]
- },
- {
- "personCode": "55bb",
- "firstName": "Miles",
- "lastName": "Davis",
- "address": {
- "street": "8753 West 3rd Ave.",
- "city": "Dallas",
- "state": "TX",
- "zip": "75001",
- "country": "USA"
- },
- "emails": [
- "davis12@ds9.com",
- "mdav@rockfort.gov"
- ]
- },
- {
- "personCode": "321nd",
- "firstName": "William",
- "lastName": "Enders",
- "address": {
- "street": "1165 West Madison Street",
- "city": "Chicago",
- "state": "IL",
- "zip": "60613",
- "country": "USA"
- },
- "emails": [
- "wenders@doctors.com",
- "dr@who.com"
- ]
- },
- {
- "personCode": "149ba",
- "firstName": "Darren",
- "lastName": "Williams",
- "address": {
- "street": "142 N 14th Street",
- "city": "Omaha",
- "state": "NE",
- "zip": "68116",
- "country": "USA"
- },
- "emails": [
- "darren_f_williams@gmail.com",
- "dwillaims@venture.com"
- ]
- },
- {
- "personCode": "ma12",
- "firstName": "Tyler",
- "lastName": "Rediger",
- "address": {
- "street": "435 N 51st Street",
- "city": "Lincoln",
- "state": "NE",
- "zip": "68502",
- "country": "USA"
- },
- "emails": [
- "tred@pubs.com"
- ]
- },
- {
- "personCode": "499c",
- "firstName": "Harry",
- "lastName": "Sonford",
- "address": {
- "street": "1467 Addison Street",
- "city": "Stillwater",
- "state": "OK",
- "zip": "60613",
- "country": "USA"
- },
- "emails": [
- "harrysonford@cubs.com",
- "sonford_harry13@gmail.com"
- ]
- },
- {
- "personCode": "bfab",
- "firstName": "Mathias",
- "lastName": "Hanten",
- "address": {
- "street": "320 West 6th Street",
- "city": "South Sioux city",
- "state": "NE",
- "zip": "68776",
- "country": "USA"
- },
- "emails": [
- "mhanten@gmail.com"
- ]
- },
- {
- "personCode": "aef1",
- "firstName": "Richard",
- "lastName": "Monterroso",
- "address": {
- "street": "1 Wall Street",
- "city": "Indio",
- "state": "CA",
- "zip": "9221-0012",
- "country": "USA"
- },
- "emails": [
- "rmont12@yahoo.com"
- ]
- },
- {
- "personCode": "267a",
- "firstName": "Ryan",
- "lastName": "Enders",
- "address": {
- "street": "1162 West Madison Street",
- "city": "Chicago",
- "state": "IL",
- "zip": "60613",
- "country": "USA"
- },
- "emails": [
- "render@cse.unl.edu",
- "renders32@unl.edu"
- ]
- },
- {
- "personCode": "321na",
- "firstName": "Matthew",
- "lastName": "Lenz",
- "address": {
- "street": "301 Front St W",
- "city": "Toronto",
- "state": "ON",
- "zip": "M5V 2T6",
- "country": "Canada"
- },
- "emails": [
- "jpet@whofan.com"
- ]
- },
- {
- "personCode": "344d",
- "firstName": "Bryan",
- "lastName": "Connor",
- "address": {
- "street": "344 Lincoln Street",
- "city": "New York",
- "state": "NY",
- "zip": "10023",
- "country": "USA"
- },
- "emails": [
- "bconnor@gmail.com",
- "cbryan@aol.com"
- ]
- },
- {
- "personCode": "1svndr",
- "firstName": "Travis",
- "lastName": "McCoy",
- "address": {
- "street": "126-01 Roosevelt Ave",
- "city": "Flushing",
- "state": "NY",
- "zip": "11368",
- "country": "USA"
- },
- "emails": [
- "slyguy@hotmail.com",
- "mccoy@aol.com"
- ]
- },
- {
- "personCode": "adhoc",
- "firstName": "Richard",
- "lastName": "Hammond",
- "address": {
- "street": "1 E 161st St",
- "city": "Bronx",
- "state": "NY",
- "zip": "10451",
- "country": "USA"
- },
- "emails": [
- "rhammond@aol.com"
- ]
- },
- {
- "personCode": "ms42",
- "firstName": "Kordel",
- "lastName": "Smydra",
- "address": {
- "street": "Avery Hall",
- "city": "Lincoln",
- "state": "NE",
- "zip": "68503",
- "country": "USA"
- },
- "emails": [
- "kordel_smydra@baker.com"
- ]
- },
- {
- "personCode": "asn2",
- "firstName": "Matt",
- "lastName": "Smith",
- "address": {
- "street": "333 W 35th St",
- "city": "Chicago",
- "state": "IL",
- "zip": "60616",
- "country": "USA"
- },
- "emails": [
- "msmith@who.com",
- "thedoc@cse.unl.edu"
- ]
- }
- ]
- }
- }
- ::::::::::::::
- ./data/Products.json
- ::::::::::::::
- {
- "products": [ {
- "code": "s42a",
- "name": "Jericho Missile",
- "pricePerUnit": 250000.0
- },
- {
- "code": "ab23",
- "name": "Rockfort Jdisc",
- "pricePerUnit": 124.99
- },
- {
- "code": "fp12",
- "name": "Mandalay Jtone",
- "pricePerUnit": 14.99
- },
- {
- "code": "1239",
- "name": "Rockfort GameBox",
- "pricePerUnit": 499.0
- },
- {
- "code": "90fa",
- "name": "Mandalay Long Distance Service",
- "serviceFee": 1899.0,
- "annualLicenseFee": 17000.0
- },
- {
- "code": "3289",
- "name": "Mandalay-Jtone Training",
- "consultant": {
- "personCode": "aef1",
- "firstName": "Richard",
- "lastName": "Monterroso",
- "address": {
- "street": "1 Wall Street",
- "city": "Indio",
- "state": "CA",
- "zip": "9221-0012",
- "country": "USA"
- },
- "emails": [
- "rmont12@yahoo.com"
- ]
- },
- "hourlyFee": 32.0
- },
- {
- "code": "298K",
- "name": "MServer-Server System Setup and Assistance",
- "consultant": {
- "personCode": "321nd",
- "firstName": "William",
- "lastName": "Enders",
- "address": {
- "street": "1165 West Madison Street",
- "city": "Chicago",
- "state": "IL",
- "zip": "60613",
- "country": "USA"
- },
- "emails": [
- "wenders@doctors.com",
- "dr@who.com"
- ]
- },
- "hourlyFee": 180.0
- },
- {
- "code": "3294",
- "name": "MCloud Data Storage",
- "serviceFee": 40.0,
- "annualLicenseFee": 3000.0
- }
- ]}
- [-] Test Case 3 (case15)
- Expected Output
- Data and output files:
- Customers.dat:
- 7
- C001;C;hsk3r;Gamerwear PC Repair; 724 North 1st Street,Minneapolis,MN,55401,USA
- C002;G;nue78;University of Nebraska-Lincoln;259 Avery Hall,Lincoln,Ne,68588-0115,USA
- C003;G;671gum;City of Seattle; 600 4th Ave. #4,Seattle,WA,98104,USA
- C004;C;701gfk;Johnson and John's Son Computer Repair;1597 NorthWest Drive,Mobile,AL,36602,USA
- C005;C;stl618;Mt Chiliad PC Repair; 1059 South 59th St,Los Angeles,CA,90019,USA
- C006;C;a11r8w;Wayne Industries;1007 Mountain Drive,New York City,NY,13851,USA
- C007;G;mlr891;City of Toronto;100 Queen St W,Toronto,ON,M5H 2N2,Canada
- Persons.dat:
- 10
- 123abc;Smith, Ozzie; 700 Clark Ave, St Louis, MO, 63102, USA; thewizard@cardinals.com
- mlr891;Barneson, John; 333 West Camden Street, Baltimore, MD, 21201, USA;
- a11r8w;Emmerson, Ralph; 401 East Jefferson Street, Phoenix, AZ, 85004, USA;
- hweq51;Tavare,Chris; 115 Federal Street, Pittsburgh, PA, 15212, USA; rogerrabbit@whodunnit.com
- nue78;Richards, James; 2100 Woodward Avenue, Detroit, MI, 48201, USA; james.richards@unl.edu
- hsk3r;Smith,Rickie; 2200 Texas Ave, Houston, TX, 77003, USA; spacebound@nasa.gov
- gqs1582;Fultz,Adam; 9256 S State St, Sandy, UT, 84070, USA; randomtext@stuff.com
- 671gum;Donavon, Landon; 18400 Avalon Boulevard, Carson, CA, 90746, USA; captainamerica@ussoccer.com, goals@mls.com
- 701gfk;Bartholomew, Alfred; 170 Prince's Blvd, Toronto, ON, M6K 3C3, Canada; fakeemail@email.com
- stl618;Palaganas, Brian; 1844 SW Morrison St, Portland, OR, 97205, USA; booseattle@timbers.com, cupchasers@cascadia.com
- Products.dat:
- 5
- a27f;E;Ocho Flux Capacitor;30000.00
- lb92;L;Netservice Web Assist;250.00;700.00
- 23d9;E;Ocho Cassette Storage System;20.00
- vp08;C;Systems Administration Training;123abc;35.00
- me19;L;SafeGuard System Cleanup;0.00;1200.00
- Customers.xml:
- <?xml version="1.0"?>
- <customers>
- <governmentCustomer>
- <customerCode>C003</customerCode>
- <name>City of Seattle</name>
- <address>
- <street>600 4th Ave. #4</street>
- <city>Seattle</city>
- <state>WA</state>
- <zip>98104</zip>
- <country>USA</country>
- </address>
- <primaryContact>
- <personCode>671gum</personCode>
- <firstName>Landon</firstName>
- <lastName>Donavon</lastName>
- <address>
- <street>18400 Avalon Boulevard</street>
- <city>Carson</city>
- <state>CA</state>
- <zip>90746</zip>
- <country>USA</country>
- </address>
- <emails>
- <email> goals@mls.com</email>
- <email> captainamerica@ussoccer.com</email>
- </emails>
- </primaryContact>
- </governmentCustomer>
- <companyCustomer>
- <customerCode>C004</customerCode>
- <name>Johnson and John's Son Computer Repair</name>
- <address>
- <street>1597 NorthWest Drive</street>
- <city>Mobile</city>
- <state>AL</state>
- <zip>36602</zip>
- <country>USA</country>
- </address>
- <primaryContact>
- <personCode>701gfk</personCode>
- <firstName>Alfred</firstName>
- <lastName>Bartholomew</lastName>
- <address>
- <street>170 Prince's Blvd</street>
- <city>Toronto</city>
- <state>ON</state>
- <zip>M6K 3C3</zip>
- <country>Canada</country>
- </address>
- <emails>
- <email> fakeemail@email.com</email>
- </emails>
- </primaryContact>
- </companyCustomer>
- <companyCustomer>
- <customerCode>C005</customerCode>
- <name>Mt Chiliad PC Repair</name>
- <address>
- <street>1059 South 59th St</street>
- <city>Los Angeles</city>
- <state>CA</state>
- <zip>90019</zip>
- <country>USA</country>
- </address>
- <primaryContact>
- <personCode>stl618</personCode>
- <firstName>Brian</firstName>
- <lastName>Palaganas</lastName>
- <address>
- <street>1844 SW Morrison St</street>
- <city>Portland</city>
- <state>OR</state>
- <zip>97205</zip>
- <country>USA</country>
- </address>
- <emails>
- <email> booseattle@timbers.com</email>
- <email> cupchasers@cascadia.com</email>
- </emails>
- </primaryContact>
- </companyCustomer>
- <companyCustomer>
- <customerCode>C006</customerCode>
- <name>Wayne Industries</name>
- <address>
- <street>1007 Mountain Drive</street>
- <city>New York City</city>
- <state>NY</state>
- <zip>13851</zip>
- <country>USA</country>
- </address>
- <primaryContact>
- <personCode>a11r8w</personCode>
- <firstName>Ralph</firstName>
- <lastName>Emmerson</lastName>
- <address>
- <street>401 East Jefferson Street</street>
- <city>Phoenix</city>
- <state>AZ</state>
- <zip>85004</zip>
- <country>USA</country>
- </address>
- <emails/>
- </primaryContact>
- </companyCustomer>
- <governmentCustomer>
- <customerCode>C007</customerCode>
- <name>City of Toronto</name>
- <address>
- <street>100 Queen St W</street>
- <city>Toronto</city>
- <state>ON</state>
- <zip>M5H 2N2</zip>
- <country>Canada</country>
- </address>
- <primaryContact>
- <personCode>mlr891</personCode>
- <firstName>John</firstName>
- <lastName>Barneson</lastName>
- <address>
- <street>333 West Camden Street</street>
- <city>Baltimore</city>
- <state>MD</state>
- <zip>21201</zip>
- <country>USA</country>
- </address>
- <emails/>
- </primaryContact>
- </governmentCustomer>
- <governmentCustomer>
- <customerCode>C002</customerCode>
- <name>University of Nebraska-Lincoln</name>
- <address>
- <street>259 Avery Hall</street>
- <city>Lincoln</city>
- <state>Ne</state>
- <zip>68588-0115</zip>
- <country>USA</country>
- </address>
- <primaryContact>
- <personCode>nue78</personCode>
- <firstName>James</firstName>
- <lastName>Richards</lastName>
- <address>
- <street>2100 Woodward Avenue</street>
- <city>Detroit</city>
- <state>MI</state>
- <zip>48201</zip>
- <country>USA</country>
- </address>
- <emails>
- <email> james.richards@unl.edu</email>
- </emails>
- </primaryContact>
- </governmentCustomer>
- <companyCustomer>
- <customerCode>C001</customerCode>
- <name>Gamerwear PC Repair</name>
- <address>
- <street>724 North 1st Street</street>
- <city>Minneapolis</city>
- <state>MN</state>
- <zip>55401</zip>
- <country>USA</country>
- </address>
- <primaryContact>
- <personCode>hsk3r</personCode>
- <firstName>Rickie</firstName>
- <lastName>Smith</lastName>
- <address>
- <street>2200 Texas Ave</street>
- <city>Houston</city>
- <state>TX</state>
- <zip>77003</zip>
- <country>USA</country>
- </address>
- <emails>
- <email> spacebound@nasa.gov</email>
- </emails>
- </primaryContact>
- </companyCustomer>
- </customers>
- Persons.xml:
- <?xml version="1.0"?>
- <persons>
- <person>
- <personCode>mlr891</personCode>
- <firstName>John</firstName>
- <lastName>Barneson</lastName>
- <address>
- <street>333 West Camden Street</street>
- <city>Baltimore</city>
- <state>MD</state>
- <zip>21201</zip>
- <country>USA</country>
- </address>
- <emails/>
- </person>
- <person>
- <personCode>hsk3r</personCode>
- <firstName>Rickie</firstName>
- <lastName>Smith</lastName>
- <address>
- <street>2200 Texas Ave</street>
- <city>Houston</city>
- <state>TX</state>
- <zip>77003</zip>
- <country>USA</country>
- </address>
- <emails>
- <email> spacebound@nasa.gov</email>
- </emails>
- </person>
- <person>
- <personCode>nue78</personCode>
- <firstName>James</firstName>
- <lastName>Richards</lastName>
- <address>
- <street>2100 Woodward Avenue</street>
- <city>Detroit</city>
- <state>MI</state>
- <zip>48201</zip>
- <country>USA</country>
- </address>
- <emails>
- <email> james.richards@unl.edu</email>
- </emails>
- </person>
- <person>
- <personCode>a11r8w</personCode>
- <firstName>Ralph</firstName>
- <lastName>Emmerson</lastName>
- <address>
- <street>401 East Jefferson Street</street>
- <city>Phoenix</city>
- <state>AZ</state>
- <zip>85004</zip>
- <country>USA</country>
- </address>
- <emails/>
- </person>
- <person>
- <personCode>hweq51</personCode>
- <firstName>Chris</firstName>
- <lastName>Tavare</lastName>
- <address>
- <street>115 Federal Street</street>
- <city>Pittsburgh</city>
- <state>PA</state>
- <zip>15212</zip>
- <country>USA</country>
- </address>
- <emails>
- <email> rogerrabbit@whodunnit.com</email>
- </emails>
- </person>
- <person>
- <personCode>701gfk</personCode>
- <firstName>Alfred</firstName>
- <lastName>Bartholomew</lastName>
- <address>
- <street>170 Prince's Blvd</street>
- <city>Toronto</city>
- <state>ON</state>
- <zip>M6K 3C3</zip>
- <country>Canada</country>
- </address>
- <emails>
- <email> fakeemail@email.com</email>
- </emails>
- </person>
- <person>
- <personCode>stl618</personCode>
- <firstName>Brian</firstName>
- <lastName>Palaganas</lastName>
- <address>
- <street>1844 SW Morrison St</street>
- <city>Portland</city>
- <state>OR</state>
- <zip>97205</zip>
- <country>USA</country>
- </address>
- <emails>
- <email> booseattle@timbers.com</email>
- <email> cupchasers@cascadia.com</email>
- </emails>
- </person>
- <person>
- <personCode>671gum</personCode>
- <firstName>Landon</firstName>
- <lastName>Donavon</lastName>
- <address>
- <street>18400 Avalon Boulevard</street>
- <city>Carson</city>
- <state>CA</state>
- <zip>90746</zip>
- <country>USA</country>
- </address>
- <emails>
- <email> goals@mls.com</email>
- <email> captainamerica@ussoccer.com</email>
- </emails>
- </person>
- <person>
- <personCode>gqs1582</personCode>
- <firstName>Adam</firstName>
- <lastName>Fultz</lastName>
- <address>
- <street>9256 S State St</street>
- <city>Sandy</city>
- <state>UT</state>
- <zip>84070</zip>
- <country>USA</country>
- </address>
- <emails>
- <email> randomtext@stuff.com</email>
- </emails>
- </person>
- <person>
- <personCode>123abc</personCode>
- <firstName>Ozzie</firstName>
- <lastName>Smith</lastName>
- <address>
- <street>700 Clark Ave</street>
- <city>St Louis</city>
- <state>MO</state>
- <zip>63102</zip>
- <country>USA</country>
- </address>
- <emails>
- <email> thewizard@cardinals.com</email>
- </emails>
- </person>
- </persons>
- Products.xml:
- <?xml version="1.0"?>
- <products>
- <license>
- <productCode>me19</productCode>
- <name>SafeGuard System Cleanup</name>
- <fee>0.0</fee>
- <annualCost>1200.0</annualCost>
- </license>
- <equipment>
- <productCode>23d9</productCode>
- <name>Ocho Cassette Storage System</name>
- <pricePerUnit>20.0</pricePerUnit>
- </equipment>
- <consultation>
- <productCode>vp08</productCode>
- <name>Systems Administration Training</name>
- <consultant>
- <personCode>123abc</personCode>
- <firstName>Ozzie</firstName>
- <lastName>Smith</lastName>
- <address>
- <street>700 Clark Ave</street>
- <city>St Louis</city>
- <state>MO</state>
- <zip>63102</zip>
- <country>USA</country>
- </address>
- <emails>
- <email> thewizard@cardinals.com</email>
- </emails>
- </consultant>
- <pricePerHour>35.0</pricePerHour>
- </consultation>
- <license>
- <productCode>lb92</productCode>
- <name>Netservice Web Assist</name>
- <fee>250.0</fee>
- <annualCost>700.0</annualCost>
- </license>
- <equipment>
- <productCode>a27f</productCode>
- <name>Ocho Flux Capacitor</name>
- <pricePerUnit>30000.0</pricePerUnit>
- </equipment>
- </products>
- Customers.json:
- {
- "customers": [
- {
- "customerCode": "C003",
- "name": "City of Seattle",
- "address": {
- "street": "600 4th Ave. #4",
- "city": "Seattle",
- "state": "WA",
- "zip": "98104",
- "country": "USA"
- },
- "primaryContact": {
- "personCode": "671gum",
- "firstName": "Landon",
- "lastName": "Donavon",
- "address": {
- "street": "18400 Avalon Boulevard",
- "city": "Carson",
- "state": "CA",
- "zip": "90746",
- "country": "USA"
- },
- "emails": [
- " goals@mls.com",
- " captainamerica@ussoccer.com"
- ]
- }
- },
- {
- "customerCode": "C004",
- "name": "Johnson and John\u0027s Son Computer Repair",
- "address": {
- "street": "1597 NorthWest Drive",
- "city": "Mobile",
- "state": "AL",
- "zip": "36602",
- "country": "USA"
- },
- "primaryContact": {
- "personCode": "701gfk",
- "firstName": "Alfred",
- "lastName": "Bartholomew",
- "address": {
- "street": "170 Prince\u0027s Blvd",
- "city": "Toronto",
- "state": "ON",
- "zip": "M6K 3C3",
- "country": "Canada"
- },
- "emails": [
- " fakeemail@email.com"
- ]
- }
- },
- {
- "customerCode": "C005",
- "name": "Mt Chiliad PC Repair",
- "address": {
- "street": "1059 South 59th St",
- "city": "Los Angeles",
- "state": "CA",
- "zip": "90019",
- "country": "USA"
- },
- "primaryContact": {
- "personCode": "stl618",
- "firstName": "Brian",
- "lastName": "Palaganas",
- "address": {
- "street": "1844 SW Morrison St",
- "city": "Portland",
- "state": "OR",
- "zip": "97205",
- "country": "USA"
- },
- "emails": [
- " booseattle@timbers.com",
- " cupchasers@cascadia.com"
- ]
- }
- },
- {
- "customerCode": "C006",
- "name": "Wayne Industries",
- "address": {
- "street": "1007 Mountain Drive",
- "city": "New York City",
- "state": "NY",
- "zip": "13851",
- "country": "USA"
- },
- "primaryContact": {
- "personCode": "a11r8w",
- "firstName": "Ralph",
- "lastName": "Emmerson",
- "address": {
- "street": "401 East Jefferson Street",
- "city": "Phoenix",
- "state": "AZ",
- "zip": "85004",
- "country": "USA"
- },
- "emails": []
- }
- },
- {
- "customerCode": "C007",
- "name": "City of Toronto",
- "address": {
- "street": "100 Queen St W",
- "city": "Toronto",
- "state": "ON",
- "zip": "M5H 2N2",
- "country": "Canada"
- },
- "primaryContact": {
- "personCode": "mlr891",
- "firstName": "John",
- "lastName": "Barneson",
- "address": {
- "street": "333 West Camden Street",
- "city": "Baltimore",
- "state": "MD",
- "zip": "21201",
- "country": "USA"
- },
- "emails": []
- }
- },
- {
- "customerCode": "C002",
- "name": "University of Nebraska-Lincoln",
- "address": {
- "street": "259 Avery Hall",
- "city": "Lincoln",
- "state": "Ne",
- "zip": "68588-0115",
- "country": "USA"
- },
- "primaryContact": {
- "personCode": "nue78",
- "firstName": "James",
- "lastName": "Richards",
- "address": {
- "street": "2100 Woodward Avenue",
- "city": "Detroit",
- "state": "MI",
- "zip": "48201",
- "country": "USA"
- },
- "emails": [
- " james.richards@unl.edu"
- ]
- }
- },
- {
- "customerCode": "C001",
- "name": "Gamerwear PC Repair",
- "address": {
- "street": "724 North 1st Street",
- "city": "Minneapolis",
- "state": "MN",
- "zip": "55401",
- "country": "USA"
- },
- "primaryContact": {
- "personCode": "hsk3r",
- "firstName": "Rickie",
- "lastName": "Smith",
- "address": {
- "street": "2200 Texas Ave",
- "city": "Houston",
- "state": "TX",
- "zip": "77003",
- "country": "USA"
- },
- "emails": [
- " spacebound@nasa.gov"
- ]
- }
- }
- ]}
- Persons.json:
- {
- "persons": [
- {
- "personCode": "mlr891",
- "firstName": "John",
- "lastName": "Barneson",
- "address": {
- "street": "333 West Camden Street",
- "city": "Baltimore",
- "state": "MD",
- "zip": "21201",
- "country": "USA"
- },
- "emails": []
- },
- {
- "personCode": "hsk3r",
- "firstName": "Rickie",
- "lastName": "Smith",
- "address": {
- "street": "2200 Texas Ave",
- "city": "Houston",
- "state": "TX",
- "zip": "77003",
- "country": "USA"
- },
- "emails": [
- " spacebound@nasa.gov"
- ]
- },
- {
- "personCode": "nue78",
- "firstName": "James",
- "lastName": "Richards",
- "address": {
- "street": "2100 Woodward Avenue",
- "city": "Detroit",
- "state": "MI",
- "zip": "48201",
- "country": "USA"
- },
- "emails": [
- " james.richards@unl.edu"
- ]
- },
- {
- "personCode": "a11r8w",
- "firstName": "Ralph",
- "lastName": "Emmerson",
- "address": {
- "street": "401 East Jefferson Street",
- "city": "Phoenix",
- "state": "AZ",
- "zip": "85004",
- "country": "USA"
- },
- "emails": []
- },
- {
- "personCode": "hweq51",
- "firstName": "Chris",
- "lastName": "Tavare",
- "address": {
- "street": "115 Federal Street",
- "city": "Pittsburgh",
- "state": "PA",
- "zip": "15212",
- "country": "USA"
- },
- "emails": [
- " rogerrabbit@whodunnit.com"
- ]
- },
- {
- "personCode": "701gfk",
- "firstName": "Alfred",
- "lastName": "Bartholomew",
- "address": {
- "street": "170 Prince\u0027s Blvd",
- "city": "Toronto",
- "state": "ON",
- "zip": "M6K 3C3",
- "country": "Canada"
- },
- "emails": [
- " fakeemail@email.com"
- ]
- },
- {
- "personCode": "stl618",
- "firstName": "Brian",
- "lastName": "Palaganas",
- "address": {
- "street": "1844 SW Morrison St",
- "city": "Portland",
- "state": "OR",
- "zip": "97205",
- "country": "USA"
- },
- "emails": [
- " booseattle@timbers.com",
- " cupchasers@cascadia.com"
- ]
- },
- {
- "personCode": "671gum",
- "firstName": "Landon",
- "lastName": "Donavon",
- "address": {
- "street": "18400 Avalon Boulevard",
- "city": "Carson",
- "state": "CA",
- "zip": "90746",
- "country": "USA"
- },
- "emails": [
- " goals@mls.com",
- " captainamerica@ussoccer.com"
- ]
- },
- {
- "personCode": "gqs1582",
- "firstName": "Adam",
- "lastName": "Fultz",
- "address": {
- "street": "9256 S State St",
- "city": "Sandy",
- "state": "UT",
- "zip": "84070",
- "country": "USA"
- },
- "emails": [
- " randomtext@stuff.com"
- ]
- },
- {
- "personCode": "123abc",
- "firstName": "Ozzie",
- "lastName": "Smith",
- "address": {
- "street": "700 Clark Ave",
- "city": "St Louis",
- "state": "MO",
- "zip": "63102",
- "country": "USA"
- },
- "emails": [
- " thewizard@cardinals.com"
- ]
- }
- ]}
- Products.json:
- {
- "products": [
- {
- "fee": 0.0,
- "annualCost": 1200.0,
- "productCode": "me19",
- "name": "SafeGuard System Cleanup"
- },
- {
- "pricePerUnit": 20.0,
- "productCode": "23d9",
- "name": "Ocho Cassette Storage System"
- },
- {
- "consultant": {
- "personCode": "123abc",
- "firstName": "Ozzie",
- "lastName": "Smith",
- "address": {
- "street": "700 Clark Ave",
- "city": "St Louis",
- "state": "MO",
- "zip": "63102",
- "country": "USA"
- },
- "emails": [
- " thewizard@cardinals.com"
- ]
- },
- "pricePerHour": 35.0,
- "productCode": "vp08",
- "name": "Systems Administration Training"
- },
- {
- "fee": 250.0,
- "annualCost": 700.0,
- "productCode": "lb92",
- "name": "Netservice Web Assist"
- },
- {
- "pricePerUnit": 30000.0,
- "productCode": "a27f",
- "name": "Ocho Flux Capacitor"
- }
- ]}
- Program Output
- Customer [customerCode=C001, type=C, companyName=Gamerwear PC Repair, address=Address [street=724 North 1st Street, city=Minneapolis, state=MN, zip=55401, country=USA]]
- 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]]
- Customer [customerCode=C003, type=G, companyName=City of Seattle, address=Address [street=600 4th Ave. #4, city=Seattle, state=WA, zip=98104, country=USA]]
- 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]]
- 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]]
- Customer [customerCode=C006, type=C, companyName=Wayne Industries, address=Address [street=1007 Mountain Drive, city=New York City, state=NY, zip=13851, country=USA]]
- 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]]
- Product [code=a27f, type=E, name=Ocho Flux Capacitor] Equipment [pricePerUnit=30000.0]
- Product [code=lb92, type=L, name=Netservice Web Assist] License [serviceFee=250.0, annualLicenseFee=700.0]
- Product [code=23d9, type=E, name=Ocho Cassette Storage System] Equipment [pricePerUnit=20.0]
- 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]
- Product [code=me19, type=L, name=SafeGuard System Cleanup] License [serviceFee=0.0, annualLicenseFee=1200.0]
- ::::::::::::::
- ./data/Customers.xml
- ::::::::::::::
- <customers>
- <companyCustomer>
- <customerCode>C001</customerCode>
- <companyName>Gamerwear PC Repair</companyName>
- <address>
- <street>724 North 1st Street</street>
- <city>Minneapolis</city>
- <state>MN</state>
- <zip>55401</zip>
- <country>USA</country>
- </address>
- </companyCustomer>
- <governmentCustomer>
- <customerCode>C002</customerCode>
- <companyName>University of Nebraska-Lincoln</companyName>
- <address>
- <street>259 Avery Hall</street>
- <city>Lincoln</city>
- <state>Ne</state>
- <zip>68588-0115</zip>
- <country>USA</country>
- </address>
- </governmentCustomer>
- <governmentCustomer>
- <customerCode>C003</customerCode>
- <companyName>City of Seattle</companyName>
- <address>
- <street>600 4th Ave. #4</street>
- <city>Seattle</city>
- <state>WA</state>
- <zip>98104</zip>
- <country>USA</country>
- </address>
- </governmentCustomer>
- <companyCustomer>
- <customerCode>C004</customerCode>
- <companyName>Johnson and John's Son Computer Repair</companyName>
- <address>
- <street>1597 NorthWest Drive</street>
- <city>Mobile</city>
- <state>AL</state>
- <zip>36602</zip>
- <country>USA</country>
- </address>
- </companyCustomer>
- <companyCustomer>
- <customerCode>C005</customerCode>
- <companyName>Mt Chiliad PC Repair</companyName>
- <address>
- <street>1059 South 59th St</street>
- <city>Los Angeles</city>
- <state>CA</state>
- <zip>90019</zip>
- <country>USA</country>
- </address>
- </companyCustomer>
- <companyCustomer>
- <customerCode>C006</customerCode>
- <companyName>Wayne Industries</companyName>
- <address>
- <street>1007 Mountain Drive</street>
- <city>New York City</city>
- <state>NY</state>
- <zip>13851</zip>
- <country>USA</country>
- </address>
- </companyCustomer>
- <governmentCustomer>
- <customerCode>C007</customerCode>
- <companyName>City of Toronto</companyName>
- <address>
- <street>100 Queen St W</street>
- <city>Toronto</city>
- <state>ON</state>
- <zip>M5H 2N2</zip>
- <country>Canada</country>
- </address>
- </governmentCustomer>
- </customers>::::::::::::::
- ./data/Persons.xml
- ::::::::::::::
- <persons>
- <person>
- <personCode>123abc</personCode>
- <firstName>Ozzie</firstName>
- <lastName>Smith</lastName>
- <address>
- <street>700 Clark Ave</street>
- <city>St Louis</city>
- <state>MO</state>
- <zip>63102</zip>
- <country>USA</country>
- </address>
- <emails>
- <email> thewizard@cardinals.com</email>
- </emails>
- </person>
- <person>
- <personCode>mlr891</personCode>
- <firstName>John</firstName>
- <lastName>Barneson</lastName>
- <address>
- <street>333 West Camden Street</street>
- <city>Baltimore</city>
- <state>MD</state>
- <zip>21201</zip>
- <country>USA</country>
- </address>
- </person>
- <person>
- <personCode>a11r8w</personCode>
- <firstName>Ralph</firstName>
- <lastName>Emmerson</lastName>
- <address>
- <street>401 East Jefferson Street</street>
- <city>Phoenix</city>
- <state>AZ</state>
- <zip>85004</zip>
- <country>USA</country>
- </address>
- </person>
- <person>
- <personCode>hweq51</personCode>
- <firstName>Chris</firstName>
- <lastName>Tavare</lastName>
- <address>
- <street>115 Federal Street</street>
- <city>Pittsburgh</city>
- <state>PA</state>
- <zip>15212</zip>
- <country>USA</country>
- </address>
- <emails>
- <email> rogerrabbit@whodunnit.com</email>
- </emails>
- </person>
- <person>
- <personCode>nue78</personCode>
- <firstName>James</firstName>
- <lastName>Richards</lastName>
- <address>
- <street>2100 Woodward Avenue</street>
- <city>Detroit</city>
- <state>MI</state>
- <zip>48201</zip>
- <country>USA</country>
- </address>
- <emails>
- <email> james.richards@unl.edu</email>
- </emails>
- </person>
- <person>
- <personCode>hsk3r</personCode>
- <firstName>Rickie</firstName>
- <lastName>Smith</lastName>
- <address>
- <street>2200 Texas Ave</street>
- <city>Houston</city>
- <state>TX</state>
- <zip>77003</zip>
- <country>USA</country>
- </address>
- <emails>
- <email> spacebound@nasa.gov</email>
- </emails>
- </person>
- <person>
- <personCode>gqs1582</personCode>
- <firstName>Adam</firstName>
- <lastName>Fultz</lastName>
- <address>
- <street>9256 S State St</street>
- <city>Sandy</city>
- <state>UT</state>
- <zip>84070</zip>
- <country>USA</country>
- </address>
- <emails>
- <email> randomtext@stuff.com</email>
- </emails>
- </person>
- <person>
- <personCode>671gum</personCode>
- <firstName>Landon</firstName>
- <lastName>Donavon</lastName>
- <address>
- <street>18400 Avalon Boulevard</street>
- <city>Carson</city>
- <state>CA</state>
- <zip>90746</zip>
- <country>USA</country>
- </address>
- <emails>
- <email> captainamerica@ussoccer.com</email>
- <email> goals@mls.com</email>
- </emails>
- </person>
- <person>
- <personCode>701gfk</personCode>
- <firstName>Alfred</firstName>
- <lastName>Bartholomew</lastName>
- <address>
- <street>170 Prince's Blvd</street>
- <city>Toronto</city>
- <state>ON</state>
- <zip>M6K 3C3</zip>
- <country>Canada</country>
- </address>
- <emails>
- <email> fakeemail@email.com</email>
- </emails>
- </person>
- <person>
- <personCode>stl618</personCode>
- <firstName>Brian</firstName>
- <lastName>Palaganas</lastName>
- <address>
- <street>1844 SW Morrison St</street>
- <city>Portland</city>
- <state>OR</state>
- <zip>97205</zip>
- <country>USA</country>
- </address>
- <emails>
- <email> booseattle@timbers.com</email>
- <email> cupchasers@cascadia.com</email>
- </emails>
- </person>
- </persons>::::::::::::::
- ./data/Products.xml
- ::::::::::::::
- <products>
- <equipment>
- <productCode>a27f</productCode>
- <name>Ocho Flux Capacitor</name>
- <pricePerUnit>30000.0</pricePerUnit>
- </equipment>
- <license>
- <productCode>lb92</productCode>
- <name>Netservice Web Assist</name>
- <fee>250.0</fee>
- <annualCost>700.0</annualCost>
- </license>
- <equipment>
- <productCode>23d9</productCode>
- <name>Ocho Cassette Storage System</name>
- <pricePerUnit>20.0</pricePerUnit>
- </equipment>
- <consultation>
- <productCode>vp08</productCode>
- <name>Systems Administration Training</name>
- <consultant>
- <personCode>123abc</personCode>
- <firstName>Ozzie</firstName>
- <lastName>Smith</lastName>
- <address>
- <street>700 Clark Ave</street>
- <city>St Louis</city>
- <state>MO</state>
- <zip>63102</zip>
- <country>USA</country>
- </address>
- <emails>
- <string> thewizard@cardinals.com</string>
- </emails>
- </consultant>
- <pricePerHour>35.0</pricePerHour>
- </consultation>
- <license>
- <productCode>me19</productCode>
- <name>SafeGuard System Cleanup</name>
- <fee>0.0</fee>
- <annualCost>1200.0</annualCost>
- </license>
- </products>
- ::::::::::::::
- ./data/Customers.json
- ::::::::::::::
- <customers>
- <companyCustomer>
- <customerCode>C001</customerCode>
- <companyName>Gamerwear PC Repair</companyName>
- <address>
- <street>724 North 1st Street</street>
- <city>Minneapolis</city>
- <state>MN</state>
- <zip>55401</zip>
- <country>USA</country>
- </address>
- </companyCustomer>
- <governmentCustomer>
- <customerCode>C002</customerCode>
- <companyName>University of Nebraska-Lincoln</companyName>
- <address>
- <street>259 Avery Hall</street>
- <city>Lincoln</city>
- <state>Ne</state>
- <zip>68588-0115</zip>
- <country>USA</country>
- </address>
- </governmentCustomer>
- <governmentCustomer>
- <customerCode>C003</customerCode>
- <companyName>City of Seattle</companyName>
- <address>
- <street>600 4th Ave. #4</street>
- <city>Seattle</city>
- <state>WA</state>
- <zip>98104</zip>
- <country>USA</country>
- </address>
- </governmentCustomer>
- <companyCustomer>
- <customerCode>C004</customerCode>
- <companyName>Johnson and John's Son Computer Repair</companyName>
- <address>
- <street>1597 NorthWest Drive</street>
- <city>Mobile</city>
- <state>AL</state>
- <zip>36602</zip>
- <country>USA</country>
- </address>
- </companyCustomer>
- <companyCustomer>
- <customerCode>C005</customerCode>
- <companyName>Mt Chiliad PC Repair</companyName>
- <address>
- <street>1059 South 59th St</street>
- <city>Los Angeles</city>
- <state>CA</state>
- <zip>90019</zip>
- <country>USA</country>
- </address>
- </companyCustomer>
- <companyCustomer>
- <customerCode>C006</customerCode>
- <companyName>Wayne Industries</companyName>
- <address>
- <street>1007 Mountain Drive</street>
- <city>New York City</city>
- <state>NY</state>
- <zip>13851</zip>
- <country>USA</country>
- </address>
- </companyCustomer>
- <governmentCustomer>
- <customerCode>C007</customerCode>
- <companyName>City of Toronto</companyName>
- <address>
- <street>100 Queen St W</street>
- <city>Toronto</city>
- <state>ON</state>
- <zip>M5H 2N2</zip>
- <country>Canada</country>
- </address>
- </governmentCustomer>
- </customers>::::::::::::::
- ./data/Persons.json
- ::::::::::::::
- {
- "persons": {
- "person": [
- {
- "personCode": "123abc",
- "firstName": "Ozzie",
- "lastName": "Smith",
- "address": {
- "street": "700 Clark Ave",
- "city": "St Louis",
- "state": "MO",
- "zip": "63102",
- "country": "USA"
- },
- "emails": [
- " thewizard@cardinals.com"
- ]
- },
- {
- "personCode": "mlr891",
- "firstName": "John",
- "lastName": "Barneson",
- "address": {
- "street": "333 West Camden Street",
- "city": "Baltimore",
- "state": "MD",
- "zip": "21201",
- "country": "USA"
- }
- },
- {
- "personCode": "a11r8w",
- "firstName": "Ralph",
- "lastName": "Emmerson",
- "address": {
- "street": "401 East Jefferson Street",
- "city": "Phoenix",
- "state": "AZ",
- "zip": "85004",
- "country": "USA"
- }
- },
- {
- "personCode": "hweq51",
- "firstName": "Chris",
- "lastName": "Tavare",
- "address": {
- "street": "115 Federal Street",
- "city": "Pittsburgh",
- "state": "PA",
- "zip": "15212",
- "country": "USA"
- },
- "emails": [
- " rogerrabbit@whodunnit.com"
- ]
- },
- {
- "personCode": "nue78",
- "firstName": "James",
- "lastName": "Richards",
- "address": {
- "street": "2100 Woodward Avenue",
- "city": "Detroit",
- "state": "MI",
- "zip": "48201",
- "country": "USA"
- },
- "emails": [
- " james.richards@unl.edu"
- ]
- },
- {
- "personCode": "hsk3r",
- "firstName": "Rickie",
- "lastName": "Smith",
- "address": {
- "street": "2200 Texas Ave",
- "city": "Houston",
- "state": "TX",
- "zip": "77003",
- "country": "USA"
- },
- "emails": [
- " spacebound@nasa.gov"
- ]
- },
- {
- "personCode": "gqs1582",
- "firstName": "Adam",
- "lastName": "Fultz",
- "address": {
- "street": "9256 S State St",
- "city": "Sandy",
- "state": "UT",
- "zip": "84070",
- "country": "USA"
- },
- "emails": [
- " randomtext@stuff.com"
- ]
- },
- {
- "personCode": "671gum",
- "firstName": "Landon",
- "lastName": "Donavon",
- "address": {
- "street": "18400 Avalon Boulevard",
- "city": "Carson",
- "state": "CA",
- "zip": "90746",
- "country": "USA"
- },
- "emails": [
- " captainamerica@ussoccer.com",
- " goals@mls.com"
- ]
- },
- {
- "personCode": "701gfk",
- "firstName": "Alfred",
- "lastName": "Bartholomew",
- "address": {
- "street": "170 Prince's Blvd",
- "city": "Toronto",
- "state": "ON",
- "zip": "M6K 3C3",
- "country": "Canada"
- },
- "emails": [
- " fakeemail@email.com"
- ]
- },
- {
- "personCode": "stl618",
- "firstName": "Brian",
- "lastName": "Palaganas",
- "address": {
- "street": "1844 SW Morrison St",
- "city": "Portland",
- "state": "OR",
- "zip": "97205",
- "country": "USA"
- },
- "emails": [
- " booseattle@timbers.com",
- " cupchasers@cascadia.com"
- ]
- }
- ]
- }
- }
- ::::::::::::::
- ./data/Products.json
- ::::::::::::::
- {
- "products": [ {
- "code": "a27f",
- "name": "Ocho Flux Capacitor",
- "pricePerUnit": 30000.0
- },
- {
- "code": "lb92",
- "name": "Netservice Web Assist",
- "serviceFee": 250.0,
- "annualLicenseFee": 700.0
- },
- {
- "code": "23d9",
- "name": "Ocho Cassette Storage System",
- "pricePerUnit": 20.0
- },
- {
- "code": "vp08",
- "name": "Systems Administration Training",
- "consultant": {
- "personCode": "123abc",
- "firstName": "Ozzie",
- "lastName": "Smith",
- "address": {
- "street": "700 Clark Ave",
- "city": "St Louis",
- "state": "MO",
- "zip": "63102",
- "country": "USA"
- },
- "emails": [
- " thewizard@cardinals.com"
- ]
- },
- "hourlyFee": 35.0
- },
- {
- "code": "me19",
- "name": "SafeGuard System Cleanup",
- "serviceFee": 0.0,
- "annualLicenseFee": 1200.0
- }
- ]}
- [-] Test Case 4 (case13)
- Expected Output
- Data and output files:
- Customers.dat:
- 4
- C001;C;343i;343 Industries;434 Kirkland Ave,Kirkland,WA,98033,USA
- C002;G;613h;Federal Bureau of Investigation;935 Pennsylvania Avenue,NW Washington DC,D.C.,20535-0001,USA
- C003;G;bbc1;Department of Defense;1000 Defense Pentagon,Washington DC,D.C.,20301-1000,USA
- C004;C;935z;Treyarch;3420 Ocean Park Blvd Suite 1000,Santa Monica,CA,90405,USA
- Persons.dat:
- 5
- 613h;Neilson,Jarod;2157 Sunny Acres,Albertville,CO,80477-1351,USA;jneilson@usa.gov
- 343i;Alden,Jonah;7614 Velvet Butterfly Parade,Runnymeade,NM,87084-6259,USA;jalden@gmail.com,jalden@hotmail.com
- 505t;Spear,Kenneth;9545 Quaking Farm,Quicktown,NM,88354-7661,USA;kspear@yahoo.com,spear117@unl.edu
- 935z;Wallis,Hervey;4382 Thunder Drive,Ohm,WY,82288-1728,USA;hwallis@gmail.com
- bbc1;Odell,Reid;1209 Wishing Manor,Splitlog,NM,87925-3025,USA;rodell@hotmail.com,rodell234@hotmail.com,rodell@me.com
- Products.dat:
- 5
- ff45;E;Internet Router;300.0
- d3d2;L;Cinco Long Distance Calling;1500.0;13500.0
- 44r3;E;Cinco Game Box;450.0
- wqer;C;Teaching: Advanced Computing;505t;125.0
- rr49;C;System Maintenance;505t;250.0
- Customers.xml:
- <?xml version="1.0"?>
- <customers>
- <governmentCustomer>
- <customerCode>C003</customerCode>
- <name>Department of Defense</name>
- <address>
- <street>1000 Defense Pentagon</street>
- <city>Washington DC</city>
- <state>D.C.</state>
- <zip>20301-1000</zip>
- <country>USA</country>
- </address>
- <primaryContact>
- <personCode>bbc1</personCode>
- <firstName>Reid</firstName>
- <lastName>Odell</lastName>
- <address>
- <street>1209 Wishing Manor</street>
- <city>Splitlog</city>
- <state>NM</state>
- <zip>87925-3025</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>rodell234@hotmail.com</email>
- <email>rodell@hotmail.com</email>
- <email>rodell@me.com</email>
- </emails>
- </primaryContact>
- </governmentCustomer>
- <companyCustomer>
- <customerCode>C004</customerCode>
- <name>Treyarch</name>
- <address>
- <street>3420 Ocean Park Blvd Suite 1000</street>
- <city>Santa Monica</city>
- <state>CA</state>
- <zip>90405</zip>
- <country>USA</country>
- </address>
- <primaryContact>
- <personCode>935z</personCode>
- <firstName>Hervey</firstName>
- <lastName>Wallis</lastName>
- <address>
- <street>4382 Thunder Drive</street>
- <city>Ohm</city>
- <state>WY</state>
- <zip>82288-1728</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>hwallis@gmail.com</email>
- </emails>
- </primaryContact>
- </companyCustomer>
- <governmentCustomer>
- <customerCode>C002</customerCode>
- <name>Federal Bureau of Investigation</name>
- <address>
- <street>935 Pennsylvania Avenue</street>
- <city>NW Washington DC</city>
- <state>D.C.</state>
- <zip>20535-0001</zip>
- <country>USA</country>
- </address>
- <primaryContact>
- <personCode>613h</personCode>
- <firstName>Jarod</firstName>
- <lastName>Neilson</lastName>
- <address>
- <street>2157 Sunny Acres</street>
- <city>Albertville</city>
- <state>CO</state>
- <zip>80477-1351</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>jneilson@usa.gov</email>
- </emails>
- </primaryContact>
- </governmentCustomer>
- <companyCustomer>
- <customerCode>C001</customerCode>
- <name>343 Industries</name>
- <address>
- <street>434 Kirkland Ave</street>
- <city>Kirkland</city>
- <state>WA</state>
- <zip>98033</zip>
- <country>USA</country>
- </address>
- <primaryContact>
- <personCode>343i</personCode>
- <firstName>Jonah</firstName>
- <lastName>Alden</lastName>
- <address>
- <street>7614 Velvet Butterfly Parade</street>
- <city>Runnymeade</city>
- <state>NM</state>
- <zip>87084-6259</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>jalden@hotmail.com</email>
- <email>jalden@gmail.com</email>
- </emails>
- </primaryContact>
- </companyCustomer>
- </customers>
- Persons.xml:
- <?xml version="1.0"?>
- <persons>
- <person>
- <personCode>bbc1</personCode>
- <firstName>Reid</firstName>
- <lastName>Odell</lastName>
- <address>
- <street>1209 Wishing Manor</street>
- <city>Splitlog</city>
- <state>NM</state>
- <zip>87925-3025</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>rodell234@hotmail.com</email>
- <email>rodell@hotmail.com</email>
- <email>rodell@me.com</email>
- </emails>
- </person>
- <person>
- <personCode>505t</personCode>
- <firstName>Kenneth</firstName>
- <lastName>Spear</lastName>
- <address>
- <street>9545 Quaking Farm</street>
- <city>Quicktown</city>
- <state>NM</state>
- <zip>88354-7661</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>spear117@unl.edu</email>
- <email>kspear@yahoo.com</email>
- </emails>
- </person>
- <person>
- <personCode>613h</personCode>
- <firstName>Jarod</firstName>
- <lastName>Neilson</lastName>
- <address>
- <street>2157 Sunny Acres</street>
- <city>Albertville</city>
- <state>CO</state>
- <zip>80477-1351</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>jneilson@usa.gov</email>
- </emails>
- </person>
- <person>
- <personCode>935z</personCode>
- <firstName>Hervey</firstName>
- <lastName>Wallis</lastName>
- <address>
- <street>4382 Thunder Drive</street>
- <city>Ohm</city>
- <state>WY</state>
- <zip>82288-1728</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>hwallis@gmail.com</email>
- </emails>
- </person>
- <person>
- <personCode>343i</personCode>
- <firstName>Jonah</firstName>
- <lastName>Alden</lastName>
- <address>
- <street>7614 Velvet Butterfly Parade</street>
- <city>Runnymeade</city>
- <state>NM</state>
- <zip>87084-6259</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>jalden@hotmail.com</email>
- <email>jalden@gmail.com</email>
- </emails>
- </person>
- </persons>
- Products.xml:
- <?xml version="1.0"?>
- <products>
- <consultation>
- <productCode>wqer</productCode>
- <name>Teaching: Advanced Computing</name>
- <consultant>
- <personCode>505t</personCode>
- <firstName>Kenneth</firstName>
- <lastName>Spear</lastName>
- <address>
- <street>9545 Quaking Farm</street>
- <city>Quicktown</city>
- <state>NM</state>
- <zip>88354-7661</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>spear117@unl.edu</email>
- <email>kspear@yahoo.com</email>
- </emails>
- </consultant>
- <pricePerHour>125.0</pricePerHour>
- </consultation>
- <equipment>
- <productCode>ff45</productCode>
- <name>Internet Router</name>
- <pricePerUnit>300.0</pricePerUnit>
- </equipment>
- <consultation>
- <productCode>rr49</productCode>
- <name>System Maintenance</name>
- <consultant>
- <personCode>505t</personCode>
- <firstName>Kenneth</firstName>
- <lastName>Spear</lastName>
- <address>
- <street>9545 Quaking Farm</street>
- <city>Quicktown</city>
- <state>NM</state>
- <zip>88354-7661</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>spear117@unl.edu</email>
- <email>kspear@yahoo.com</email>
- </emails>
- </consultant>
- <pricePerHour>250.0</pricePerHour>
- </consultation>
- <license>
- <productCode>d3d2</productCode>
- <name>Cinco Long Distance Calling</name>
- <fee>1500.0</fee>
- <annualCost>13500.0</annualCost>
- </license>
- <equipment>
- <productCode>44r3</productCode>
- <name>Cinco Game Box</name>
- <pricePerUnit>450.0</pricePerUnit>
- </equipment>
- </products>
- Customers.json:
- {
- "customers": [
- {
- "customerCode": "C003",
- "name": "Department of Defense",
- "address": {
- "street": "1000 Defense Pentagon",
- "city": "Washington DC",
- "state": "D.C.",
- "zip": "20301-1000",
- "country": "USA"
- },
- "primaryContact": {
- "personCode": "bbc1",
- "firstName": "Reid",
- "lastName": "Odell",
- "address": {
- "street": "1209 Wishing Manor",
- "city": "Splitlog",
- "state": "NM",
- "zip": "87925-3025",
- "country": "USA"
- },
- "emails": [
- "rodell234@hotmail.com",
- "rodell@hotmail.com",
- "rodell@me.com"
- ]
- }
- },
- {
- "customerCode": "C004",
- "name": "Treyarch",
- "address": {
- "street": "3420 Ocean Park Blvd Suite 1000",
- "city": "Santa Monica",
- "state": "CA",
- "zip": "90405",
- "country": "USA"
- },
- "primaryContact": {
- "personCode": "935z",
- "firstName": "Hervey",
- "lastName": "Wallis",
- "address": {
- "street": "4382 Thunder Drive",
- "city": "Ohm",
- "state": "WY",
- "zip": "82288-1728",
- "country": "USA"
- },
- "emails": [
- "hwallis@gmail.com"
- ]
- }
- },
- {
- "customerCode": "C002",
- "name": "Federal Bureau of Investigation",
- "address": {
- "street": "935 Pennsylvania Avenue",
- "city": "NW Washington DC",
- "state": "D.C.",
- "zip": "20535-0001",
- "country": "USA"
- },
- "primaryContact": {
- "personCode": "613h",
- "firstName": "Jarod",
- "lastName": "Neilson",
- "address": {
- "street": "2157 Sunny Acres",
- "city": "Albertville",
- "state": "CO",
- "zip": "80477-1351",
- "country": "USA"
- },
- "emails": [
- "jneilson@usa.gov"
- ]
- }
- },
- {
- "customerCode": "C001",
- "name": "343 Industries",
- "address": {
- "street": "434 Kirkland Ave",
- "city": "Kirkland",
- "state": "WA",
- "zip": "98033",
- "country": "USA"
- },
- "primaryContact": {
- "personCode": "343i",
- "firstName": "Jonah",
- "lastName": "Alden",
- "address": {
- "street": "7614 Velvet Butterfly Parade",
- "city": "Runnymeade",
- "state": "NM",
- "zip": "87084-6259",
- "country": "USA"
- },
- "emails": [
- "jalden@hotmail.com",
- "jalden@gmail.com"
- ]
- }
- }
- ]}
- Persons.json:
- {
- "persons": [
- {
- "personCode": "bbc1",
- "firstName": "Reid",
- "lastName": "Odell",
- "address": {
- "street": "1209 Wishing Manor",
- "city": "Splitlog",
- "state": "NM",
- "zip": "87925-3025",
- "country": "USA"
- },
- "emails": [
- "rodell234@hotmail.com",
- "rodell@hotmail.com",
- "rodell@me.com"
- ]
- },
- {
- "personCode": "505t",
- "firstName": "Kenneth",
- "lastName": "Spear",
- "address": {
- "street": "9545 Quaking Farm",
- "city": "Quicktown",
- "state": "NM",
- "zip": "88354-7661",
- "country": "USA"
- },
- "emails": [
- "spear117@unl.edu",
- "kspear@yahoo.com"
- ]
- },
- {
- "personCode": "613h",
- "firstName": "Jarod",
- "lastName": "Neilson",
- "address": {
- "street": "2157 Sunny Acres",
- "city": "Albertville",
- "state": "CO",
- "zip": "80477-1351",
- "country": "USA"
- },
- "emails": [
- "jneilson@usa.gov"
- ]
- },
- {
- "personCode": "935z",
- "firstName": "Hervey",
- "lastName": "Wallis",
- "address": {
- "street": "4382 Thunder Drive",
- "city": "Ohm",
- "state": "WY",
- "zip": "82288-1728",
- "country": "USA"
- },
- "emails": [
- "hwallis@gmail.com"
- ]
- },
- {
- "personCode": "343i",
- "firstName": "Jonah",
- "lastName": "Alden",
- "address": {
- "street": "7614 Velvet Butterfly Parade",
- "city": "Runnymeade",
- "state": "NM",
- "zip": "87084-6259",
- "country": "USA"
- },
- "emails": [
- "jalden@hotmail.com",
- "jalden@gmail.com"
- ]
- }
- ]}
- Products.json:
- {
- "products": [
- {
- "consultant": {
- "personCode": "505t",
- "firstName": "Kenneth",
- "lastName": "Spear",
- "address": {
- "street": "9545 Quaking Farm",
- "city": "Quicktown",
- "state": "NM",
- "zip": "88354-7661",
- "country": "USA"
- },
- "emails": [
- "spear117@unl.edu",
- "kspear@yahoo.com"
- ]
- },
- "pricePerHour": 125.0,
- "productCode": "wqer",
- "name": "Teaching: Advanced Computing"
- },
- {
- "pricePerUnit": 300.0,
- "productCode": "ff45",
- "name": "Internet Router"
- },
- {
- "consultant": {
- "personCode": "505t",
- "firstName": "Kenneth",
- "lastName": "Spear",
- "address": {
- "street": "9545 Quaking Farm",
- "city": "Quicktown",
- "state": "NM",
- "zip": "88354-7661",
- "country": "USA"
- },
- "emails": [
- "spear117@unl.edu",
- "kspear@yahoo.com"
- ]
- },
- "pricePerHour": 250.0,
- "productCode": "rr49",
- "name": "System Maintenance"
- },
- {
- "fee": 1500.0,
- "annualCost": 13500.0,
- "productCode": "d3d2",
- "name": "Cinco Long Distance Calling"
- },
- {
- "pricePerUnit": 450.0,
- "productCode": "44r3",
- "name": "Cinco Game Box"
- }
- ]}
- Program Output
- Customer [customerCode=C001, type=C, companyName=343 Industries, address=Address [street=434 Kirkland Ave, city=Kirkland, state=WA, zip=98033, country=USA]]
- 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]]
- 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]]
- 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]]
- Product [code=ff45, type=E, name=Internet Router] Equipment [pricePerUnit=300.0]
- Product [code=d3d2, type=L, name=Cinco Long Distance Calling] License [serviceFee=1500.0, annualLicenseFee=13500.0]
- Product [code=44r3, type=E, name=Cinco Game Box] Equipment [pricePerUnit=450.0]
- 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]
- 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]
- ::::::::::::::
- ./data/Customers.xml
- ::::::::::::::
- <customers>
- <companyCustomer>
- <customerCode>C001</customerCode>
- <companyName>343 Industries</companyName>
- <address>
- <street>434 Kirkland Ave</street>
- <city>Kirkland</city>
- <state>WA</state>
- <zip>98033</zip>
- <country>USA</country>
- </address>
- </companyCustomer>
- <governmentCustomer>
- <customerCode>C002</customerCode>
- <companyName>Federal Bureau of Investigation</companyName>
- <address>
- <street>935 Pennsylvania Avenue</street>
- <city>NW Washington DC</city>
- <state>D.C.</state>
- <zip>20535-0001</zip>
- <country>USA</country>
- </address>
- </governmentCustomer>
- <governmentCustomer>
- <customerCode>C003</customerCode>
- <companyName>Department of Defense</companyName>
- <address>
- <street>1000 Defense Pentagon</street>
- <city>Washington DC</city>
- <state>D.C.</state>
- <zip>20301-1000</zip>
- <country>USA</country>
- </address>
- </governmentCustomer>
- <companyCustomer>
- <customerCode>C004</customerCode>
- <companyName>Treyarch</companyName>
- <address>
- <street>3420 Ocean Park Blvd Suite 1000</street>
- <city>Santa Monica</city>
- <state>CA</state>
- <zip>90405</zip>
- <country>USA</country>
- </address>
- </companyCustomer>
- </customers>::::::::::::::
- ./data/Persons.xml
- ::::::::::::::
- <persons>
- <person>
- <personCode>613h</personCode>
- <firstName>Jarod</firstName>
- <lastName>Neilson</lastName>
- <address>
- <street>2157 Sunny Acres</street>
- <city>Albertville</city>
- <state>CO</state>
- <zip>80477-1351</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>jneilson@usa.gov</email>
- </emails>
- </person>
- <person>
- <personCode>343i</personCode>
- <firstName>Jonah</firstName>
- <lastName>Alden</lastName>
- <address>
- <street>7614 Velvet Butterfly Parade</street>
- <city>Runnymeade</city>
- <state>NM</state>
- <zip>87084-6259</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>jalden@gmail.com</email>
- <email>jalden@hotmail.com</email>
- </emails>
- </person>
- <person>
- <personCode>505t</personCode>
- <firstName>Kenneth</firstName>
- <lastName>Spear</lastName>
- <address>
- <street>9545 Quaking Farm</street>
- <city>Quicktown</city>
- <state>NM</state>
- <zip>88354-7661</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>kspear@yahoo.com</email>
- <email>spear117@unl.edu</email>
- </emails>
- </person>
- <person>
- <personCode>935z</personCode>
- <firstName>Hervey</firstName>
- <lastName>Wallis</lastName>
- <address>
- <street>4382 Thunder Drive</street>
- <city>Ohm</city>
- <state>WY</state>
- <zip>82288-1728</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>hwallis@gmail.com</email>
- </emails>
- </person>
- <person>
- <personCode>bbc1</personCode>
- <firstName>Reid</firstName>
- <lastName>Odell</lastName>
- <address>
- <street>1209 Wishing Manor</street>
- <city>Splitlog</city>
- <state>NM</state>
- <zip>87925-3025</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>rodell@hotmail.com</email>
- <email>rodell234@hotmail.com</email>
- <email>rodell@me.com</email>
- </emails>
- </person>
- </persons>::::::::::::::
- ./data/Products.xml
- ::::::::::::::
- <products>
- <equipment>
- <productCode>ff45</productCode>
- <name>Internet Router</name>
- <pricePerUnit>300.0</pricePerUnit>
- </equipment>
- <license>
- <productCode>d3d2</productCode>
- <name>Cinco Long Distance Calling</name>
- <fee>1500.0</fee>
- <annualCost>13500.0</annualCost>
- </license>
- <equipment>
- <productCode>44r3</productCode>
- <name>Cinco Game Box</name>
- <pricePerUnit>450.0</pricePerUnit>
- </equipment>
- <consultation>
- <productCode>wqer</productCode>
- <name>Teaching: Advanced Computing</name>
- <consultant>
- <personCode>505t</personCode>
- <firstName>Kenneth</firstName>
- <lastName>Spear</lastName>
- <address>
- <street>9545 Quaking Farm</street>
- <city>Quicktown</city>
- <state>NM</state>
- <zip>88354-7661</zip>
- <country>USA</country>
- </address>
- <emails>
- <string>kspear@yahoo.com</string>
- <string>spear117@unl.edu</string>
- </emails>
- </consultant>
- <pricePerHour>125.0</pricePerHour>
- </consultation>
- <consultation>
- <productCode>rr49</productCode>
- <name>System Maintenance</name>
- <consultant>
- <personCode>505t</personCode>
- <firstName>Kenneth</firstName>
- <lastName>Spear</lastName>
- <address>
- <street>9545 Quaking Farm</street>
- <city>Quicktown</city>
- <state>NM</state>
- <zip>88354-7661</zip>
- <country>USA</country>
- </address>
- <emails>
- <string>kspear@yahoo.com</string>
- <string>spear117@unl.edu</string>
- </emails>
- </consultant>
- <pricePerHour>250.0</pricePerHour>
- </consultation>
- </products>
- ::::::::::::::
- ./data/Customers.json
- ::::::::::::::
- <customers>
- <companyCustomer>
- <customerCode>C001</customerCode>
- <companyName>343 Industries</companyName>
- <address>
- <street>434 Kirkland Ave</street>
- <city>Kirkland</city>
- <state>WA</state>
- <zip>98033</zip>
- <country>USA</country>
- </address>
- </companyCustomer>
- <governmentCustomer>
- <customerCode>C002</customerCode>
- <companyName>Federal Bureau of Investigation</companyName>
- <address>
- <street>935 Pennsylvania Avenue</street>
- <city>NW Washington DC</city>
- <state>D.C.</state>
- <zip>20535-0001</zip>
- <country>USA</country>
- </address>
- </governmentCustomer>
- <governmentCustomer>
- <customerCode>C003</customerCode>
- <companyName>Department of Defense</companyName>
- <address>
- <street>1000 Defense Pentagon</street>
- <city>Washington DC</city>
- <state>D.C.</state>
- <zip>20301-1000</zip>
- <country>USA</country>
- </address>
- </governmentCustomer>
- <companyCustomer>
- <customerCode>C004</customerCode>
- <companyName>Treyarch</companyName>
- <address>
- <street>3420 Ocean Park Blvd Suite 1000</street>
- <city>Santa Monica</city>
- <state>CA</state>
- <zip>90405</zip>
- <country>USA</country>
- </address>
- </companyCustomer>
- </customers>::::::::::::::
- ./data/Persons.json
- ::::::::::::::
- {
- "persons": {
- "person": [
- {
- "personCode": "613h",
- "firstName": "Jarod",
- "lastName": "Neilson",
- "address": {
- "street": "2157 Sunny Acres",
- "city": "Albertville",
- "state": "CO",
- "zip": "80477-1351",
- "country": "USA"
- },
- "emails": [
- "jneilson@usa.gov"
- ]
- },
- {
- "personCode": "343i",
- "firstName": "Jonah",
- "lastName": "Alden",
- "address": {
- "street": "7614 Velvet Butterfly Parade",
- "city": "Runnymeade",
- "state": "NM",
- "zip": "87084-6259",
- "country": "USA"
- },
- "emails": [
- "jalden@gmail.com",
- "jalden@hotmail.com"
- ]
- },
- {
- "personCode": "505t",
- "firstName": "Kenneth",
- "lastName": "Spear",
- "address": {
- "street": "9545 Quaking Farm",
- "city": "Quicktown",
- "state": "NM",
- "zip": "88354-7661",
- "country": "USA"
- },
- "emails": [
- "kspear@yahoo.com",
- "spear117@unl.edu"
- ]
- },
- {
- "personCode": "935z",
- "firstName": "Hervey",
- "lastName": "Wallis",
- "address": {
- "street": "4382 Thunder Drive",
- "city": "Ohm",
- "state": "WY",
- "zip": "82288-1728",
- "country": "USA"
- },
- "emails": [
- "hwallis@gmail.com"
- ]
- },
- {
- "personCode": "bbc1",
- "firstName": "Reid",
- "lastName": "Odell",
- "address": {
- "street": "1209 Wishing Manor",
- "city": "Splitlog",
- "state": "NM",
- "zip": "87925-3025",
- "country": "USA"
- },
- "emails": [
- "rodell@hotmail.com",
- "rodell234@hotmail.com",
- "rodell@me.com"
- ]
- }
- ]
- }
- }
- ::::::::::::::
- ./data/Products.json
- ::::::::::::::
- {
- "products": [ {
- "code": "ff45",
- "name": "Internet Router",
- "pricePerUnit": 300.0
- },
- {
- "code": "d3d2",
- "name": "Cinco Long Distance Calling",
- "serviceFee": 1500.0,
- "annualLicenseFee": 13500.0
- },
- {
- "code": "44r3",
- "name": "Cinco Game Box",
- "pricePerUnit": 450.0
- },
- {
- "code": "wqer",
- "name": "Teaching: Advanced Computing",
- "consultant": {
- "personCode": "505t",
- "firstName": "Kenneth",
- "lastName": "Spear",
- "address": {
- "street": "9545 Quaking Farm",
- "city": "Quicktown",
- "state": "NM",
- "zip": "88354-7661",
- "country": "USA"
- },
- "emails": [
- "kspear@yahoo.com",
- "spear117@unl.edu"
- ]
- },
- "hourlyFee": 125.0
- },
- {
- "code": "rr49",
- "name": "System Maintenance",
- "consultant": {
- "personCode": "505t",
- "firstName": "Kenneth",
- "lastName": "Spear",
- "address": {
- "street": "9545 Quaking Farm",
- "city": "Quicktown",
- "state": "NM",
- "zip": "88354-7661",
- "country": "USA"
- },
- "emails": [
- "kspear@yahoo.com",
- "spear117@unl.edu"
- ]
- },
- "hourlyFee": 250.0
- }
- ]}
- [-] Test Case 5 (case10)
- Expected Output
- Data and output files:
- Customers.dat:
- 3
- C001;G;1fd5;University of Southern California;University Park Campus,Los Angeles, CA, 90089-0911,USA
- C002;C;21f3;Google Inc;1600 Amphitheatre Parkway,Mountain View, CA, 94043,USA
- C003;C;920A;Sandhills Publishing;120 W Harvest Dr,Lincoln, NE, 68521,USA
- Persons.dat:
- 6
- 1fd5;Scott, Dan;2016 J St,Omaha,NE,68116,USA
- 21f3;Henry, Lucas;4012 N 72 St,Lincoln,NE,68522,USA;googleaffairs@gmail.com,LucasHenry116@gmail.com
- 920A;Decker, Kayli;529 N 9th St,Lincoln,NE,68544,USA
- 389W;Walsh, Billy;809 Folsom St,San Diego,CA,90210,USA;walshbilly@hotmail.com
- 302q;Chase, Eric;201 Queens Blvd, New York City,NY,10221,USA;vchase@aol.com
- 021p;Williams, Chris;201 Sunset Blvd, Los Angeles,CA,90212,USA
- Products.dat:
- 4
- 39fn;E;Cinco Visual Interface;500.0
- 49fj;E;Cinco Computer System;1499.99
- f942;C;Internette Discs;389W;14.99
- gj40;L;Cinco Music Shuffler System;500;2500
- Customers.xml:
- <?xml version="1.0"?>
- <customers>
- <companyCustomer>
- <customerCode>C003</customerCode>
- <name>Sandhills Publishing</name>
- <address>
- <street>120 W Harvest Dr</street>
- <city>Lincoln</city>
- <state>NE</state>
- <zip>68521</zip>
- <country>USA</country>
- </address>
- <primaryContact>
- <personCode>920A</personCode>
- <firstName>Kayli</firstName>
- <lastName>Decker</lastName>
- <address>
- <street>529 N 9th St</street>
- <city>Lincoln</city>
- <state>NE</state>
- <zip>68544</zip>
- <country>USA</country>
- </address>
- <emails/>
- </primaryContact>
- </companyCustomer>
- <companyCustomer>
- <customerCode>C002</customerCode>
- <name>Google Inc</name>
- <address>
- <street>1600 Amphitheatre Parkway</street>
- <city>Mountain View</city>
- <state>CA</state>
- <zip>94043</zip>
- <country>USA</country>
- </address>
- <primaryContact>
- <personCode>21f3</personCode>
- <firstName>Lucas</firstName>
- <lastName>Henry</lastName>
- <address>
- <street>4012 N 72 St</street>
- <city>Lincoln</city>
- <state>NE</state>
- <zip>68522</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>googleaffairs@gmail.com</email>
- <email>LucasHenry116@gmail.com</email>
- </emails>
- </primaryContact>
- </companyCustomer>
- <governmentCustomer>
- <customerCode>C001</customerCode>
- <name>University of Southern California</name>
- <address>
- <street>University Park Campus</street>
- <city>Los Angeles</city>
- <state>CA</state>
- <zip>90089-0911</zip>
- <country>USA</country>
- </address>
- <primaryContact>
- <personCode>1fd5</personCode>
- <firstName>Dan</firstName>
- <lastName>Scott</lastName>
- <address>
- <street>2016 J St</street>
- <city>Omaha</city>
- <state>NE</state>
- <zip>68116</zip>
- <country>USA</country>
- </address>
- <emails/>
- </primaryContact>
- </governmentCustomer>
- </customers>
- Persons.xml:
- <?xml version="1.0"?>
- <persons>
- <person>
- <personCode>21f3</personCode>
- <firstName>Lucas</firstName>
- <lastName>Henry</lastName>
- <address>
- <street>4012 N 72 St</street>
- <city>Lincoln</city>
- <state>NE</state>
- <zip>68522</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>googleaffairs@gmail.com</email>
- <email>LucasHenry116@gmail.com</email>
- </emails>
- </person>
- <person>
- <personCode>920A</personCode>
- <firstName>Kayli</firstName>
- <lastName>Decker</lastName>
- <address>
- <street>529 N 9th St</street>
- <city>Lincoln</city>
- <state>NE</state>
- <zip>68544</zip>
- <country>USA</country>
- </address>
- <emails/>
- </person>
- <person>
- <personCode>021p</personCode>
- <firstName>Chris</firstName>
- <lastName>Williams</lastName>
- <address>
- <street>201 Sunset Blvd</street>
- <city>Los Angeles</city>
- <state>CA</state>
- <zip>90212</zip>
- <country>USA</country>
- </address>
- <emails/>
- </person>
- <person>
- <personCode>1fd5</personCode>
- <firstName>Dan</firstName>
- <lastName>Scott</lastName>
- <address>
- <street>2016 J St</street>
- <city>Omaha</city>
- <state>NE</state>
- <zip>68116</zip>
- <country>USA</country>
- </address>
- <emails/>
- </person>
- <person>
- <personCode>302q</personCode>
- <firstName>Eric</firstName>
- <lastName>Chase</lastName>
- <address>
- <street>201 Queens Blvd</street>
- <city>New York City</city>
- <state>NY</state>
- <zip>10221</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>vchase@aol.com</email>
- </emails>
- </person>
- <person>
- <personCode>389W</personCode>
- <firstName>Billy</firstName>
- <lastName>Walsh</lastName>
- <address>
- <street>809 Folsom St</street>
- <city>San Diego</city>
- <state>CA</state>
- <zip>90210</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>walshbilly@hotmail.com</email>
- </emails>
- </person>
- </persons>
- Products.xml:
- <?xml version="1.0"?>
- <products>
- <equipment>
- <productCode>49fj</productCode>
- <name>Cinco Computer System</name>
- <pricePerUnit>1499.99</pricePerUnit>
- </equipment>
- <license>
- <productCode>gj40</productCode>
- <name>Cinco Music Shuffler System</name>
- <fee>500.0</fee>
- <annualCost>2500.0</annualCost>
- </license>
- <consultation>
- <productCode>f942</productCode>
- <name>Internette Discs</name>
- <consultant>
- <personCode>389W</personCode>
- <firstName>Billy</firstName>
- <lastName>Walsh</lastName>
- <address>
- <street>809 Folsom St</street>
- <city>San Diego</city>
- <state>CA</state>
- <zip>90210</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>walshbilly@hotmail.com</email>
- </emails>
- </consultant>
- <pricePerHour>14.99</pricePerHour>
- </consultation>
- <equipment>
- <productCode>39fn</productCode>
- <name>Cinco Visual Interface</name>
- <pricePerUnit>500.0</pricePerUnit>
- </equipment>
- </products>
- Customers.json:
- {
- "customers": [
- {
- "customerCode": "C003",
- "name": "Sandhills Publishing",
- "address": {
- "street": "120 W Harvest Dr",
- "city": "Lincoln",
- "state": "NE",
- "zip": "68521",
- "country": "USA"
- },
- "primaryContact": {
- "personCode": "920A",
- "firstName": "Kayli",
- "lastName": "Decker",
- "address": {
- "street": "529 N 9th St",
- "city": "Lincoln",
- "state": "NE",
- "zip": "68544",
- "country": "USA"
- },
- "emails": []
- }
- },
- {
- "customerCode": "C002",
- "name": "Google Inc",
- "address": {
- "street": "1600 Amphitheatre Parkway",
- "city": "Mountain View",
- "state": "CA",
- "zip": "94043",
- "country": "USA"
- },
- "primaryContact": {
- "personCode": "21f3",
- "firstName": "Lucas",
- "lastName": "Henry",
- "address": {
- "street": "4012 N 72 St",
- "city": "Lincoln",
- "state": "NE",
- "zip": "68522",
- "country": "USA"
- },
- "emails": [
- "googleaffairs@gmail.com",
- "LucasHenry116@gmail.com"
- ]
- }
- },
- {
- "customerCode": "C001",
- "name": "University of Southern California",
- "address": {
- "street": "University Park Campus",
- "city": "Los Angeles",
- "state": "CA",
- "zip": "90089-0911",
- "country": "USA"
- },
- "primaryContact": {
- "personCode": "1fd5",
- "firstName": "Dan",
- "lastName": "Scott",
- "address": {
- "street": "2016 J St",
- "city": "Omaha",
- "state": "NE",
- "zip": "68116",
- "country": "USA"
- },
- "emails": []
- }
- }
- ]}
- Persons.json:
- {
- "persons": [
- {
- "personCode": "21f3",
- "firstName": "Lucas",
- "lastName": "Henry",
- "address": {
- "street": "4012 N 72 St",
- "city": "Lincoln",
- "state": "NE",
- "zip": "68522",
- "country": "USA"
- },
- "emails": [
- "googleaffairs@gmail.com",
- "LucasHenry116@gmail.com"
- ]
- },
- {
- "personCode": "920A",
- "firstName": "Kayli",
- "lastName": "Decker",
- "address": {
- "street": "529 N 9th St",
- "city": "Lincoln",
- "state": "NE",
- "zip": "68544",
- "country": "USA"
- },
- "emails": []
- },
- {
- "personCode": "021p",
- "firstName": "Chris",
- "lastName": "Williams",
- "address": {
- "street": "201 Sunset Blvd",
- "city": "Los Angeles",
- "state": "CA",
- "zip": "90212",
- "country": "USA"
- },
- "emails": []
- },
- {
- "personCode": "1fd5",
- "firstName": "Dan",
- "lastName": "Scott",
- "address": {
- "street": "2016 J St",
- "city": "Omaha",
- "state": "NE",
- "zip": "68116",
- "country": "USA"
- },
- "emails": []
- },
- {
- "personCode": "302q",
- "firstName": "Eric",
- "lastName": "Chase",
- "address": {
- "street": "201 Queens Blvd",
- "city": "New York City",
- "state": "NY",
- "zip": "10221",
- "country": "USA"
- },
- "emails": [
- "vchase@aol.com"
- ]
- },
- {
- "personCode": "389W",
- "firstName": "Billy",
- "lastName": "Walsh",
- "address": {
- "street": "809 Folsom St",
- "city": "San Diego",
- "state": "CA",
- "zip": "90210",
- "country": "USA"
- },
- "emails": [
- "walshbilly@hotmail.com"
- ]
- }
- ]}
- Products.json:
- {
- "products": [
- {
- "pricePerUnit": 1499.99,
- "productCode": "49fj",
- "name": "Cinco Computer System"
- },
- {
- "fee": 500.0,
- "annualCost": 2500.0,
- "productCode": "gj40",
- "name": "Cinco Music Shuffler System"
- },
- {
- "consultant": {
- "personCode": "389W",
- "firstName": "Billy",
- "lastName": "Walsh",
- "address": {
- "street": "809 Folsom St",
- "city": "San Diego",
- "state": "CA",
- "zip": "90210",
- "country": "USA"
- },
- "emails": [
- "walshbilly@hotmail.com"
- ]
- },
- "pricePerHour": 14.99,
- "productCode": "f942",
- "name": "Internette Discs"
- },
- {
- "pricePerUnit": 500.0,
- "productCode": "39fn",
- "name": "Cinco Visual Interface"
- }
- ]}
- Program Output
- 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]]
- Customer [customerCode=C002, type=C, companyName=Google Inc, address=Address [street=1600 Amphitheatre Parkway, city=Mountain View, state=CA, zip=94043, country=USA]]
- Customer [customerCode=C003, type=C, companyName=Sandhills Publishing, address=Address [street=120 W Harvest Dr, city=Lincoln, state=NE, zip=68521, country=USA]]
- Product [code=39fn, type=E, name=Cinco Visual Interface] Equipment [pricePerUnit=500.0]
- Product [code=49fj, type=E, name=Cinco Computer System] Equipment [pricePerUnit=1499.99]
- 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]
- Product [code=gj40, type=L, name=Cinco Music Shuffler System] License [serviceFee=500.0, annualLicenseFee=2500.0]
- ::::::::::::::
- ./data/Customers.xml
- ::::::::::::::
- <customers>
- <governmentCustomer>
- <customerCode>C001</customerCode>
- <companyName>University of Southern California</companyName>
- <address>
- <street>University Park Campus</street>
- <city>Los Angeles</city>
- <state>CA</state>
- <zip>90089-0911</zip>
- <country>USA</country>
- </address>
- </governmentCustomer>
- <companyCustomer>
- <customerCode>C002</customerCode>
- <companyName>Google Inc</companyName>
- <address>
- <street>1600 Amphitheatre Parkway</street>
- <city>Mountain View</city>
- <state>CA</state>
- <zip>94043</zip>
- <country>USA</country>
- </address>
- </companyCustomer>
- <companyCustomer>
- <customerCode>C003</customerCode>
- <companyName>Sandhills Publishing</companyName>
- <address>
- <street>120 W Harvest Dr</street>
- <city>Lincoln</city>
- <state>NE</state>
- <zip>68521</zip>
- <country>USA</country>
- </address>
- </companyCustomer>
- </customers>::::::::::::::
- ./data/Persons.xml
- ::::::::::::::
- <persons>
- <person>
- <personCode>1fd5</personCode>
- <firstName>Dan</firstName>
- <lastName>Scott</lastName>
- <address>
- <street>2016 J St</street>
- <city>Omaha</city>
- <state>NE</state>
- <zip>68116</zip>
- <country>USA</country>
- </address>
- </person>
- <person>
- <personCode>21f3</personCode>
- <firstName>Lucas</firstName>
- <lastName>Henry</lastName>
- <address>
- <street>4012 N 72 St</street>
- <city>Lincoln</city>
- <state>NE</state>
- <zip>68522</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>googleaffairs@gmail.com</email>
- <email>LucasHenry116@gmail.com</email>
- </emails>
- </person>
- <person>
- <personCode>920A</personCode>
- <firstName>Kayli</firstName>
- <lastName>Decker</lastName>
- <address>
- <street>529 N 9th St</street>
- <city>Lincoln</city>
- <state>NE</state>
- <zip>68544</zip>
- <country>USA</country>
- </address>
- </person>
- <person>
- <personCode>389W</personCode>
- <firstName>Billy</firstName>
- <lastName>Walsh</lastName>
- <address>
- <street>809 Folsom St</street>
- <city>San Diego</city>
- <state>CA</state>
- <zip>90210</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>walshbilly@hotmail.com</email>
- </emails>
- </person>
- <person>
- <personCode>302q</personCode>
- <firstName>Eric</firstName>
- <lastName>Chase</lastName>
- <address>
- <street>201 Queens Blvd</street>
- <city>New York City</city>
- <state>NY</state>
- <zip>10221</zip>
- <country>USA</country>
- </address>
- <emails>
- <email>vchase@aol.com</email>
- </emails>
- </person>
- <person>
- <personCode>021p</personCode>
- <firstName>Chris</firstName>
- <lastName>Williams</lastName>
- <address>
- <street>201 Sunset Blvd</street>
- <city>Los Angeles</city>
- <state>CA</state>
- <zip>90212</zip>
- <country>USA</country>
- </address>
- </person>
- </persons>::::::::::::::
- ./data/Products.xml
- ::::::::::::::
- <products>
- <equipment>
- <productCode>39fn</productCode>
- <name>Cinco Visual Interface</name>
- <pricePerUnit>500.0</pricePerUnit>
- </equipment>
- <equipment>
- <productCode>49fj</productCode>
- <name>Cinco Computer System</name>
- <pricePerUnit>1499.99</pricePerUnit>
- </equipment>
- <consultation>
- <productCode>f942</productCode>
- <name>Internette Discs</name>
- <consultant>
- <personCode>389W</personCode>
- <firstName>Billy</firstName>
- <lastName>Walsh</lastName>
- <address>
- <street>809 Folsom St</street>
- <city>San Diego</city>
- <state>CA</state>
- <zip>90210</zip>
- <country>USA</country>
- </address>
- <emails>
- <string>walshbilly@hotmail.com</string>
- </emails>
- </consultant>
- <pricePerHour>14.99</pricePerHour>
- </consultation>
- <license>
- <productCode>gj40</productCode>
- <name>Cinco Music Shuffler System</name>
- <fee>500.0</fee>
- <annualCost>2500.0</annualCost>
- </license>
- </products>
- ::::::::::::::
- ./data/Customers.json
- ::::::::::::::
- <customers>
- <governmentCustomer>
- <customerCode>C001</customerCode>
- <companyName>University of Southern California</companyName>
- <address>
- <street>University Park Campus</street>
- <city>Los Angeles</city>
- <state>CA</state>
- <zip>90089-0911</zip>
- <country>USA</country>
- </address>
- </governmentCustomer>
- <companyCustomer>
- <customerCode>C002</customerCode>
- <companyName>Google Inc</companyName>
- <address>
- <street>1600 Amphitheatre Parkway</street>
- <city>Mountain View</city>
- <state>CA</state>
- <zip>94043</zip>
- <country>USA</country>
- </address>
- </companyCustomer>
- <companyCustomer>
- <customerCode>C003</customerCode>
- <companyName>Sandhills Publishing</companyName>
- <address>
- <street>120 W Harvest Dr</street>
- <city>Lincoln</city>
- <state>NE</state>
- <zip>68521</zip>
- <country>USA</country>
- </address>
- </companyCustomer>
- </customers>::::::::::::::
- ./data/Persons.json
- ::::::::::::::
- {
- "persons": {
- "person": [
- {
- "personCode": "1fd5",
- "firstName": "Dan",
- "lastName": "Scott",
- "address": {
- "street": "2016 J St",
- "city": "Omaha",
- "state": "NE",
- "zip": "68116",
- "country": "USA"
- }
- },
- {
- "personCode": "21f3",
- "firstName": "Lucas",
- "lastName": "Henry",
- "address": {
- "street": "4012 N 72 St",
- "city": "Lincoln",
- "state": "NE",
- "zip": "68522",
- "country": "USA"
- },
- "emails": [
- "googleaffairs@gmail.com",
- "LucasHenry116@gmail.com"
- ]
- },
- {
- "personCode": "920A",
- "firstName": "Kayli",
- "lastName": "Decker",
- "address": {
- "street": "529 N 9th St",
- "city": "Lincoln",
- "state": "NE",
- "zip": "68544",
- "country": "USA"
- }
- },
- {
- "personCode": "389W",
- "firstName": "Billy",
- "lastName": "Walsh",
- "address": {
- "street": "809 Folsom St",
- "city": "San Diego",
- "state": "CA",
- "zip": "90210",
- "country": "USA"
- },
- "emails": [
- "walshbilly@hotmail.com"
- ]
- },
- {
- "personCode": "302q",
- "firstName": "Eric",
- "lastName": "Chase",
- "address": {
- "street": "201 Queens Blvd",
- "city": "New York City",
- "state": "NY",
- "zip": "10221",
- "country": "USA"
- },
- "emails": [
- "vchase@aol.com"
- ]
- },
- {
- "personCode": "021p",
- "firstName": "Chris",
- "lastName": "Williams",
- "address": {
- "street": "201 Sunset Blvd",
- "city": "Los Angeles",
- "state": "CA",
- "zip": "90212",
- "country": "USA"
- }
- }
- ]
- }
- }
- ::::::::::::::
- ./data/Products.json
- ::::::::::::::
- {
- "products": [ {
- "code": "39fn",
- "name": "Cinco Visual Interface",
- "pricePerUnit": 500.0
- },
- {
- "code": "49fj",
- "name": "Cinco Computer System",
- "pricePerUnit": 1499.99
- },
- {
- "code": "f942",
- "name": "Internette Discs",
- "consultant": {
- "personCode": "389W",
- "firstName": "Billy",
- "lastName": "Walsh",
- "address": {
- "street": "809 Folsom St",
- "city": "San Diego",
- "state": "CA",
- "zip": "90210",
- "country": "USA"
- },
- "emails": [
- "walshbilly@hotmail.com"
- ]
- },
- "hourlyFee": 14.99
- },
- {
- "code": "gj40",
- "name": "Cinco Music Shuffler System",
- "serviceFee": 500.0,
- "annualLicenseFee": 2500.0
- }
- ]}
- nbauman
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement