Question

XQUERY QUESTION Suppose you have two .xml documents called file one and file two ====================================FILEONE============================================== <?xml...

XQUERY QUESTION

Suppose you have two .xml documents called file one and file two
====================================FILEONE==============================================

<?xml version="1.0" encoding="UTF-8"?>
<banks>
<bank bid="p123">
<checking>
<name>ashley</name>
</checking>
<savings>
<name>bill</name>
</savings>
</bank>
<bank bid="p456">
<checking>
<name>Joe</name>
</checking>
</bank>
<bank bid="p789">
<checking>
<name>doug</name>
</checking>
<savings>
<name>ashley</name>
</savings>
</bank>
</banks>
==========================================================================================

===================================FILETWO===============================================

<?xml version="1.0" encoding="UTF-8"?>
<bankCustomer>
<account type="checking,savings" name="ashley">
<banks>
<bid>b123</bid>
<bid>b789</bid>
</banks>
</account>
<account type="savings" name="bill">
<banks>
<bid>b123</bid>
</banks>
</account>
<account type="checking" name="doug">
<banks>
<bid>b789</bid>
</banks>
</account>
<account type="checking" name="Joe">
<banks>
<bid>b456</bid>
</banks>
</account>
</bankCustomer>

==========================================================================================

We are asked to convert file1 to file2 using a xquery using this website to test it Testing http://www.xpathtester.com/xquery

Please Help!

0 0
Add a comment Improve this question Transcribed image text
Request Professional Answer

Request Answer!

We need at least 10 more requests to produce the answer.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the answer will be notified once they are available.
Know the answer?
Add Answer to:
XQUERY QUESTION Suppose you have two .xml documents called file one and file two ====================================FILEONE============================================== <?xml...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Similar Homework Help Questions
  • I need help referencing an XML file that serves as a lookup for another XML file using XSL and ke...

    I need help referencing an XML file that serves as a lookup for another XML file using XSL and keys. Instead of just printing the customer ID from the main XML file as shown in the screenshot, I need to also print the customer's first name, last name, etc., as referenced in the supplemental customersxml file. Thank you. ---------------------------------------------------------------------- XSL: <?xml version="1.0" encoding="UTF-8" ?> <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:variable name="rentals" select="rentals"/> <xsl:output method="html" doctype-system="about:legacy-compat" encoding="UTF-8" indent="yes" /> <xsl:template match="/"> <html>                <head>                   ...

  • The following XML document describes a selection of books from a library. <?xml version="1.0" encoding="UTF-8" ?>...

    The following XML document describes a selection of books from a library. <?xml version="1.0" encoding="UTF-8" ?> <!-- file name: library.xml --> <library> <book category="COOKING"> <title lang="en">My Kitchen Year</title> <author>Ruth Reichl</author> <year>2015</year> <price>35.00</price> <pages>352</pages> </book> <book category="CHILDREN"> <title lang="en">Harry Potter</title> <author>J. K. Rowling</author> <year>2005</year> <price cover="soft">29.99</price> </book> <book category="XML"> <title lang="en">XQuery Kick Start</title> <author>Brian Benz</author> <author> John Durant</author> <year>2003</year> <price cover="hard">149.99</price> <pages>984</pages> </book> <book category="XML"> <title lang="en">XML Primer</title> <author> Nicholas Chase</author> <year>2002</year> <price>39.95</price> <pages>1024</pages> <description> I highly recommend this book. It's...

  • You have been given an encrypted copy of the Final exam study guide here, but how do you decrypt and read it??? Along with the encrypted copy, some mysterious person has also given you the following documents: helloworld.txt -- Maybe this file decrypts

    You have been given an encrypted copy of the Final exam study guide here, but how do you decrypt and read it???Along with the encrypted copy, some mysterious person has also given you the following documents:helloworld.txt -- Maybe this file decrypts to say "Hello world!". Hmmm.hints.txt -- Seems important.In a file called pa11.py write a method called decode(inputfile,outputfile).  Decode should take two parameters - both of which are strings.  The first should be the name of an encoded file (either helloworld.txt or superdupertopsecretstudyguide.txt or...

  • c++ help please. Savings accounts: Suppose that the bank offers two types of savings accounts: one...

    c++ help please. Savings accounts: Suppose that the bank offers two types of savings accounts: one that has no minimum balance and a lower interest rate and another that requires a minimum balance but has a higher interest rate (the benefit here being larger growth in this type of account). Checking accounts: Suppose that the bank offers three types of checking accounts: one with a monthly service charge, limited check writing, no minimum balance, and no interest; another with no...

  • You must first compile both .cs file into .exe. Then, run the server in one command...

    You must first compile both .cs file into .exe. Then, run the server in one command prompt window and run two cilents, each in a separate command prompt window. To quit a client, you may enter no book title but just hit the enter or enter Ctrl-C. The server always displays a message whenever a client is connected and disconnected. <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key = "U101" value="PHYSICS"/> <add key = "U102" value="EDU"/> <add key = "U103"...

  • Need help to build a fingerprint app that we have sslserversocket to tell a file use finger print...

    need help to build a fingerprint app that we have sslserversocket to tell a file use finger print before open the file what have been done below Here is my mainactivity.java and fingerprintHandler.java below <?xml version="1.0" encoding="utf-8"?> <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity"> <TextView android:id="@+id/heading" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="8dp" android:layout_marginTop="8dp" android:layout_marginEnd="8dp" android:layout_marginBottom="8dp" android:padding="20dp" android:text="Fingerprint Authentication" android:textAlignment="center" android:textColor="@android:color/black" android:textSize="18sp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" app:layout_constraintVertical_bias="0.0" /> <TextView android:id="@+id/paraMessage" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="8dp" android:layout_marginTop="8dp" android:layout_marginEnd="8dp" android:layout_marginBottom="8dp" android:text="Place your finger on the fingerprint scanner to...

  • 1-Suppose you write an application in which one class contains code that keeps track of the...

    1-Suppose you write an application in which one class contains code that keeps track of the state of a board game, a separate class sets up a GUI to display the board, and a CSS is used to control the stylistic details of the GUI (for example, the color of the board.) This is an example of a.Duck Typing b.Separation of Concerns c.Functional Programming d.Polymorphism e.Enumerated Values 2-JUnit assertions should be designed so that they a.Fail (ie, are false) if...

  • Beverly and Ken Hair have been married for 3 years. Beverly works as an accountant at...

    Beverly and Ken Hair have been married for 3 years. Beverly works as an accountant at Cypress Corporation. Ken is a full-time student at Southwest Missouri State University (SMSU) and also works part-time during the summer at Cypress Corp. Ken's birthdate is January 12, 1993 and Beverly's birthdate is November 4, 1995. Beverly and Ken each received a W-2 form from Cypress Corporation (see separate tab). The Hairs have interest income of $1,000 on City of St. Louis bonds. Beverly...

  • Please read the article and answer about questions. You and the Law Business and law are...

    Please read the article and answer about questions. You and the Law Business and law are inseparable. For B-Money, the two predictably merged when he was negotiat- ing a deal for his tracks. At other times, the merger is unpredictable, like when your business faces an unexpected auto accident, product recall, or government regulation change. In either type of situation, when business owners know the law, they can better protect themselves and sometimes even avoid the problems completely. This chapter...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT