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
Solved

XML/XPATH Question

Posted on 2011-09-23
4
375 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

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Path of Workbook 3 86
XML & .net 5 48
Setting up a IIS 8 Web Server to send and receive XML files 7 33
xslt 1.0 - How to split value 8 25
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…
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.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

809 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