Ruby programing

timer Asked: Mar 2nd, 2016

Question description

Hi ,

  1. For the first exercise you will have to download the example.xml file from the lab4 folder in bbweb and save it in the working folder (the folder you have been working in the last few weeks). Refer to pages 21-24 of Murty Chapter 2. (20 Pts)

  1. Use irb to parse the example.xml document.

  2. Add a new bucket and a name element with the following text à ‘Lab4Exercise’

  3. Write this modified xml structure to a new file called – modified.xml (Hint: You will have to create a new file object in write mode and pass the file object to the write method of the document object)

Copy the code and the results in the space below

  1. An important aspect of interacting with AWS is handling service errors. Refer to Example 2-1 in the text in pages 25-26 to write down the main steps in developing a error handling routine. (10 Pts)

I attached all the files need it the XML example and the solution of the assignment as a powerpoint also this is the link of the book


Tutor Answer

(Top Tutor) Studypool Tutor
School: Boston College
Studypool has helped 1,244,100 students
flag Report DMCA
Similar Questions
Hot Questions
Related Tags

Brown University

1271 Tutors

California Institute of Technology

2131 Tutors

Carnegie Mellon University

982 Tutors

Columbia University

1256 Tutors

Dartmouth University

2113 Tutors

Emory University

2279 Tutors

Harvard University

599 Tutors

Massachusetts Institute of Technology

2319 Tutors

New York University

1645 Tutors

Notre Dam University

1911 Tutors

Oklahoma University

2122 Tutors

Pennsylvania State University

932 Tutors

Princeton University

1211 Tutors

Stanford University

983 Tutors

University of California

1282 Tutors

Oxford University

123 Tutors

Yale University

2325 Tutors