Solved

XML/XPATH Question

Posted on 2011-09-23
4
379 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Get HTML5 Certified

Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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, …
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

624 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