Solved

XML/XPATH Question

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
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, …
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

920 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

14 Experts available now in Live!

Get 1:1 Help Now