Levels Tought:
Elementary,Middle School,High School,College,University,PHD
Teaching Since: | Apr 2017 |
Last Sign in: | 10 Weeks Ago |
Questions Answered: | 4870 |
Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
Assignment Instructions
Instructions:
You are given the XML file assignment6.xml in the attachment
You are asked to create a program that uses LINQ to XML to display the contents of the above XML document. You may use the Elements methods, and other common traversal methods. However, as a catch, you should know the ontology of your document and prefix the content you display with descriptive prefixes related to data content. For example: Enterprise data exchange should be prefixed by Title. (See the start of Chapter 12 for examples.)
Â
You are not required to write a working LINQ and/or C#, VB program. If you are not comfortable writing code, you can write an essay to explain how it works instead.
Â
Hint:  https://msdn.microsoft.com/en-us/library/bb387061.aspxhttps://msdn.microsoft.com/en-us/library/bb943906.aspx (Please note, the textbook Chapter 12, may not provide the latest for all IDEs.)
 If using XElement in the latest version of Microsoft Visual Studio brings about errors, I suggested using the "System.Xml.Linq.XElement".
Â
<?xml version="1.0" encoding="utf-8"?>
<movies>
<movie>
<title>Harry Potter and The Half-Blood Prince</title>
<id>200900489</id>
<actors>
<main>Harry Potter</main>
<supporting>Dobby</supporting>
</actors>
<year>2009</year>
<rotten_tomato>3.5</rotten_tomato>
</movie>
</movies>