In: Computer Science
1. Create an xml documents called company.xmlcontaining two sections employees and invoices with the following specifications:
A.
B.
Assume that in the first section (employees) you have chosen tags name, address, date to define the elements employee name, employee address and hire date correspondingly, while in the second section (invoices) you have chosen tags name, address, date to define the elements name of the customer, address of the customer, and date of the ordercorrespondingly. When you create your xml file make sure that one set of tags will not conflict with another (see namespaces in my notes). For example, under the above assumption employees and invoices sectionswill have tags called name, address, date each referring to different types of data depending on the context (e.g. employee name and address vs customer name and address , etc. ). Make sure the documents is well-formed and that your element names follow the specified naming convention in my notes.
Hint. Use namespaces to resolve naming conflicts.
What to turn in: Submit via Canvas an xml file satisfying the specifications of this lab. The grading will reflect thecorrectness of your markup. Check your XML documentwith your browser before turning it in.
<?xml version = "1.0" encoding = "UTF-8"?>
<Company>
<Emp:Employees xmlns:Emp="http://somecompany.com/employees_info">
<Emp:Employee>
<Emp:Name>
<Emp:LastName>Wuckert</Emp:LastName>
<Emp:FirstName>Jamarcus</Emp:FirstName>
</Emp:Name>
<Emp:Address>8447 Kailee Drive, North Johann, DE 54450-9064</Emp:Address>
<Emp:Date>2014-4-5</Emp:Date>
</Emp:Employee>
<Emp:Employee>
<Emp:Name>
<Emp:LastName>Leuschke</Emp:LastName>
<Emp:FirstName>Albina</Emp:FirstName>
</Emp:Name>
<Emp:Address>878 Schowalter Lights, Stammmouth, MA 83049-8313</Emp:Address>
<Emp:HireDate>2005-3-31</Emp:HireDate>
</Emp:Employee>
</Emp:Employees>
<Invoices>
<Invoice>
<Ord:Order OrderNo="112" xmlns:Ord="http://somecompany.com/order_info">
<Ord:Name>Mr. Hubert White</Ord:Name>
<Ord:Address>3976 Macejkovic Isle, Tierramouth, ID 16031</Ord:Address>
<Ord:TotalPrice>321</Ord:TotalPrice>
<Ord:Date>2018-11-8</Ord:Date>
</Ord:Order>
<Ship:ShippingInfo xmlns:Ship="http://somecompany.com/shippping_info">
<Ship:Name>UPS</Ship:Name>
<Ship:TotalPrice>321</Ship:TotalPrice>
<Ship:Date>2018-11-11</Ship:Date>
</Ship:ShippingInfo>
<Description>
<Product>
Product 1 Info
</Product>
<Product>
Product 2 Info
</Product>
</Description>
</Invoice>
<Invoice>
<Ord:Order OrderNo="123" xmlns:Ord="http://somecompany.com/order_info">
<Ord:Name>Juana Kris</Ord:Name>
<Ord:Address>3576 Grimes Track, Danielhaven, IL 09307-3897</Ord:Address>
<Ord:TotalPrice>999</Ord:TotalPrice>
<Ord:Date>2019-1-10</Ord:Date>
</Ord:Order>
<Ship:ShippingInfo xmlns:Ship="http://somecompany.com/shippping_info">
<Ship:Name>Fed Ex</Ship:Name>
<Ship:TotalPrice>999</Ship:TotalPrice>
<Ship:Date>2019-1-15</Ship:Date>
</Ship:ShippingInfo>
<Description>
<Product>
Product 1 Info
</Product>
</Description>
</Invoice>
</Invoices>
</Company>