Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Create a small XML file of courses in a university. Each course should be an ele

ID: 3688755 • Letter: C

Question

Create a small XML file of courses in a university. Each course should be an element, like this:

<course>

...

</course>

Each course element should have child elements department, course_name, course_number, instructor, course_type, time, and room. The course_type element must have attributes lab and lecture, each of which may have values true or false. Don't forget that you will need a root element, too. You could name your root element something like "catalog" or "schedule." Create an XML document named l6p1.xml with the root element and at least three instances of the "course" element. At least one of the courses must have a lab component.

Explanation / Answer

Change data as per your relevance and your requirement

<catalog>
   <course>
       <department>Computers</department>
       <course_name>Computers Basics</course_name>
       <course_number>1</course_number>
       <instructor>John Kerry</instructor>
       <course_type lab="True" lecture ="False">Stage1</course_type>
       <time>4 months</time>
       <room>1</room>
   </course>
<course>
       <department>Physics</department>
       <course_name>Physics Fundamentals</course_name>
       <course_number>2</course_number>
       <instructor>Robert Smith</instructor>
       <course_type lab="False" lecture ="False">Stage1</course_type>
       <time>3 months</time>
       <room>21</room>
   </course>
<course>
       <department>Chemistry</department>
       <course_name>Organic Chemistry</course_name>
       <course_number>3</course_number>
       <instructor>C V Raman</instructor>
       <course_type lab="True" lecture ="True"></course_type>
       <time>2 months</time>
       <room>4</room>
   </course>
</catalog>

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote