Solved

XML/XPATH Question

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Browsing the questions asked to the Experts of this forum, you will be amazed to see how many times people are headaching about monster regular expressions (regex) to select that specific part of some HTML or XML file they want to extract. The examp…
Many times as a report developer I've been asked to display normalized data such as three rows with values Jack, Joe, and Bob as a single comma-separated string such as 'Jack, Joe, Bob', and vice versa.  Here's how to do it. 
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

740 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