Question

In: Computer Science

1. Create one XML data file and one DTD file for the entire data set (using...

1. Create one XML data file and one DTD file for the entire data set (using a subset of SQL assignment – see below). [Use of ID and IDREF are not required.]

2. Write and execute XML statements for the following two queries:

Q1. Find the name of an employee who lives in Lincoln and works in Omaha.

Q2. Find salaries of employees who live in the same cities as the companies for which they work.

[You can replace one of the above with a query of your own choice – but it must not be too simple. If this is the case, state the English statement before present the XML query and the result.]

Data to be used for this assignment

Employee

Name                            street          city               gender

--------------------------------------------------------

Anderson, Susan L          108th        Omaha           F

Brady, Dan L                  P street     Lincoln         M

Chen, Peter K                124th           Omaha       M

Clemson, Ann M             O              Lincoln          F

Dale, Mary K                  132th        Omaha           F

Gill, Mary L                   P street      Lincoln       F

Harrison, Susan M          Old Mill           Omaha F

Jackson, Kim A               178th         Omaha          F

Jason, Pat M                   8th             C.Bluffs        M

Kumar, Paul T           Dodge           Omaha     M

Works: employee_name         company_name      salary

------------------------------------------------

Anderson, Susan L     Mutual of Omaha   48000

Brady, Dan L          FDR               42000

Chen, Peter K                FDR                 53000

Clemson, Ann M        First Bank        39000

Dale, Mary K          Mutual of Omaha   58000

Gill, Mary L                  Union Pacific     48700

Harrison, Susan M          Union Pacific 54320     

Jackson, Kim A        FDR               68000

Jason, Pat M          FDR               83000

Kumar, Paul T          FDR               44000

Company:

company_name          city

-----------------------------

First Bank                       Omaha

FDR                   Omaha

Lincoln Star                    Lincoln

Mutual of Omaha       Omaha

Union Pacific     (UP)                 Omaha

Solutions

Expert Solution


Related Solutions

Create and display an XML file in Android studio that has -One edittext box the does...
Create and display an XML file in Android studio that has -One edittext box the does NOT use material design -One edittext box that DOES use material design Provide a “hint” for each, and make sure the string that comprises the hint is referenced from the strings.xml file. Observe the differences in how the hints are displayed. Here is sample code for a material design editText: <android.support.design.widget.TextInputLayout         android:id="@+id/input_layout_price1Text"         android:layout_width="80dp"         android:layout_height="40dp"            >     <EditText             android:id="@+id/price1Text"             android:importantForAutofill="no"...
3.1. Create an XML schema to validate the following XML file. <?xml version="1.0" encoding="utf-8"?> <root> <whats>Everything</whats>...
3.1. Create an XML schema to validate the following XML file. <?xml version="1.0" encoding="utf-8"?> <root> <whats>Everything</whats> <up>Is</up> <doc>Fine</doc> </root> Schema starter: <xsd:schema xmlns:xsd=""> <xsd:element name="root" type="rootType" /> <xsd:complexType name="rootType">     <xsd:sequence>       <xsd:element name="" type="" minOccurs="1" />       <xsd:element name="” type="" minOccurs="1" />       <xsd:element name="" type="" minOccurs="1" />     </xsd:sequence> </xsd:complexType> </xsd:schema> 3.2. Use your schema to validate the XML file.                     3.2.1. You can use Visual Studio or online utilities to apply the schema to the XML file....
c# Create a console application that protects an XML file, such as the following example. Note...
c# Create a console application that protects an XML file, such as the following example. Note that the customer's credit card number and password are currently stored in clear text. The credit card must be encrypted so that it can be decrypted and used later, and the password must be salted and hashed: <?xml version="1.0" encoding="utf-8" ?> <customers> <customer> <name>Bob Smith</name> <creditcard>1234-5678-9012-3456</creditcard> <password>Pa$$w0rd</password> </customer> </customers>
Using node.js, create the following tasks. 1. Set up a server and HTML file server as...
Using node.js, create the following tasks. 1. Set up a server and HTML file server as shown in the videos. Once you have it successfully running, make the following adjustments A. When a 404 error (file not found) occurs, display a funny message about the file missing and/or did you forget how to type? B. If the user enters a request for the home page (index.html) then: Display an index.html page you have created which includes your name, course number,...
XML 1) Create an XML schema for a catalog of cars, where each car has the...
XML 1) Create an XML schema for a catalog of cars, where each car has the child elements make, model, year, color, engine, number_of_doors, transmission_type, and accessories. The engine element has the child elements number_of_cylinders and fuel_system (carbureted or fuel injected). The accessories element has the attributes radio, air_conditioning, power_windows, power_steering, and power_brakes, each of which is required and has the possible values yes and no. 2) Create an XML document with at least three instances of the car element...
Exercise 1 Create a data file in SPSS using the following memory scores for this sample...
Exercise 1 Create a data file in SPSS using the following memory scores for this sample of 15 fictional patients with dementia: 8 3 11 7 6 5 4 8 9 8 7 9 5 4 10 Higher memory number indicates better memory performance. Use this information to complete the following in SPSS. 17) Run descriptive statistics on the dementia patients’ memory scores (make sure to include the mean and confidence interval by using the “Explore” option as shown in...
Using the SATGPA data set in Stat2Data package. Test by using α= .05. 1) Create the...
Using the SATGPA data set in Stat2Data package. Test by using α= .05. 1) Create the following three variables and then print out all the six variables. Create a new variable “SAT”, which is the sum of MathSAT and VerbalSAT. Create second new variable “SATLevel”, and assign the value of “SATLevel” as 1 when SAT<=1100, 2 when 1100<SAT<=1200, 3 when 1200<SAT<=1300, and 4 when SAT>1300. Create third new variable “GPALevel” and assign the value of “GPALevel” as 1 when GPA<=2.8,...
Displaying Content of an XML File Using PHP Script or Code In this week, you are...
Displaying Content of an XML File Using PHP Script or Code In this week, you are going to write the PHP script or code to read an XML file and display its content on the screen. The file you will modify is the Products page, which you created in Week 1 Project. Given the following data in XML format, modify the Products page to read and display the information in the Products page: <Product> <Item> <Name>T-Shirt</Name> <Price>12.5</Price> </Item> <Item> <Name>Pants</Name>...
Using the entire data set of 65 stocks, count up the number of stocks in your...
Using the entire data set of 65 stocks, count up the number of stocks in your data that have a high stock price that is at least $20. State this value here: Verify this by copying the stem-and-leaf display for the high prices below. Stem and Leaf Plot of High   Leaf Digit Unit = 10            Minimum  1.1400 3 9 represents 390              Median   27.930                                 Maximum  393.00 Depth   Stem  Leaves   (46)     0   0000000000000001111111111122222222223333344444    19       0   5677888999     9       1   23     7       1   6     6       2   0003     2       2   8     1       3        1       3   9 65 cases included   0 missing cases    Suppose it is desired to determine...
Using the entire data set of 65 stocks, count up the number of stocks in your...
Using the entire data set of 65 stocks, count up the number of stocks in your data that have a high stock price that is at least $20. State this value here: ___28____. (is it)? Verify this by copying the stem-and-leaf display for the high prices below. Stem and Leaf Plot of high Leaf Digit Unit = 10 Minimum 0.1100 4 3 represents 430     Median   26.400                                                 Maximum 430.80 Depth       Stem        Leaves (46)           0           0000000000000000000111111111222222222333334444    19            0          ...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT