Solved

XML/XPATH Question

Posted on 2011-09-23
4
372 Views
Last Modified: 2012-05-12
•For each of the following, think of appropriate XPath to find what is desired. Test out your XPath using the simulator and write down/type your XPath answer to turn-in.1.All the 'title' elements
2.All the 'about' attributes
3.The title of all elements where that element had at least 10 votes
4.The description of all elements where a title was 'Web 2.0 at Prague'

•Turn-in (hardcopy): 1.Correct XPath for each of the above

 0-raw.xml
0
Comment
Question by:halukonm
  • 3
4 Comments
 
LVL 60

Accepted Solution

by:
Geert Bormans earned 500 total points
ID: 36587264
1 //title
2 //@about
3 //*[votes >= 10]/title
4 //*[title = 'Web 2.0 at Prague']/description

Please notify your professor that you asked someone at EE to do your homework.
Most universities and certification instances consider help on forums for homework/certification exams as fraude.
0
 
LVL 60

Expert Comment

by:Geert Bormans
ID: 36587294
These are by the way very simple XPath expressions
If you are doing homework or a certification, please consider actually learning the stuff you now pretend you learnt.
If you need, I can help you with references
0
 

Author Closing Comment

by:halukonm
ID: 36587314
Well, the reason why I ask you is that I am not in the class, but I thought this was a useful exercise to test one's knowledge of XPATH and I wanted to get the answer key. I already asked the instructor for the answer key.

Thanks Michele
0
 
LVL 60

Expert Comment

by:Geert Bormans
ID: 36587359
welcome Michele,

was just covering myself. Good luck learning.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

The Client Need Led Us to RSS I recently had an investment company ask me how they might notify their constituents about their newsworthy publications.  Probably you would think "Facebook" or "Twitter" but this is an interesting client.  Their cons…
The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now