Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6374545
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:30:06+00:00 2026-05-25T01:30:06+00:00

I am a completly noob on XPath, I am doing application to fetch data

  • 0

I am a completly noob on XPath, I am doing application to fetch data from a website, and I need to find 2 things:

1- all the span tags that start with: ctl00_Main_GridView_lieutenants

2- the href of the parent tag on the span…. errr.. I will try to explain:

<a href="something.html"><span id="ctl00_Main_GridView_lieutenants_ctl03_lbl_nick">Text</span></a>

I need the Text and the link 😉

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T01:30:06+00:00Added an answer on May 25, 2026 at 1:30 am
    //span[starts-with(@id, 'ctl00_Main_GridView_lieutenants')]
    

    Selects all span which @id starts with ctl00_Main_GridView_lieutenants

    //a[span[starts-with(@id, 'ctl00_Main_GridView_lieutenants')]]/@href
    

    Selects all @href of a which have child span which @id starts with ctl00_Main_GridView_lieutenants

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im trying to get a completly data copy from a gridview, itryed clone(), tryed
OK, completely noob to JSP here. I need to find the code that handles
First of all, I am a complete Java NOOB. I want to handle multiple
I'm a complete noob to regex and I need help with splitting a string.
I am a complete noob to programming and CakePHP all together, so please be
I'm a complete noob to JQUERY, learning things slowly. But I have been downloaded
I'm doing a website (for portuguese speaking countries) that displays phrases one at a
I'm completely noob with json. I need to parse a json that returns a
This might be a noob question, but I need help. I screwed up my
complete noob to Haskell here with probably an even noobier question. I'm trying to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.