Question: Objectives Even though this lab does not involve any programming, it does have an important and fundamental objective, that is , to ensure you understand
Objectives
Even though this lab does not involve any programming, it does have an important and fundamental objective, that is to ensure you understand completely what the value of an XMLTree object looks like. Please make sure you answer each of the questions in this lab carefully and thoughtfully. Discuss them with the classmate sitting next to you and write down all the answers so that an instructor can check them out. If you encounter any problems or you have any doubts about any of the questions, please make sure you ask an instructor for help.
The Problem
The XMLTree family of components provides convenient functionality to read and process XML documents. Understanding the model of an XMLTree is essential to being able to use these components. This lab activity will take you stepbystep through the concepts needed to understand the model. In the next lab you will learn and practice how to manipulate XMLTrees with the methods provided by the XMLTree component.
Method
Carefully consider and answer the questions below.
What's a Tree?
Given the tree of colors below, answer the following questions.
What's the root of the tree?
What are the leaves of the tree?
What are the children of the node blue?
What is the parent of the node cyan?
What nodes are on the path from the root to the node orange?
What is the size of the tree?
What is the height of the tree?
What's XML
Consider the following XML document and answer the questions below.
OK
Building
Dreese Labs
CSE Department
What are the tags in this XML document?
What are the text strings in this XML document?
What are the attributes for each tag in this XML document?
Draw a tree that captures the structure nesting of this XML document.
Now consider the following XML document and answer the questions below.
George Gershwin
Leonard Bernstein
Rhapsody in Blue
An American in Paris
What tags have attributes?
For each tag with attributes, list the attribute name and the corresponding attribute value.
What's an XMLTree?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
