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

  • Home
  • SEARCH
  • 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 1076765
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T21:28:46+00:00 2026-05-16T21:28:46+00:00

Im using HtmlAgilityPack/HAP so that I can use Xpath with HTML documents. I need

  • 0

Im using HtmlAgilityPack/HAP so that I can use Xpath with HTML documents.

I need help selecting the preceding-sibling of div class=”address” in this url:
http://www.yellowpages.ca/search/si-geo/1/sh/Ottawa,+ON
The sibling that I want is h3 class=”listingTitleLine”

Here is a screenshot:

http://i55.tinypic.com/25gc4qo.png
Can I get some help please.

-Dd,

  • 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-16T21:28:47+00:00Added an answer on May 16, 2026 at 9:28 pm

    To select the preceding-sibling H3 element with the class attribute value of “listingTitleLine”:

    preceding-sibling::h3[@class='listingTitleLine']
    

    To select each of the H3 elements with a class attribute value of “linstingTitleLine” that are preceding-siblings of div elements with a class attribute value of “address”:

    //div[@class='address']/preceding-sibling::h3[@class='listingTitleLine']
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to parse this html code using HtmlAgilityPack and C#. I can get
I am using HtmlAgilityPack to parse my html doc, but I can't get the
I am using HtmlAgilityPack. Is there a one line code that I can get
I am using C# with HtmlAgilityPack and I can select divs that have an
Background: I am using HtmlAgilityPack (.Net), so I'm forced to use XPath 1.0, which
I'm using HtmlAgilityPack to parse and analyze HTML pages, and I need to know
Im making a vb.net app and im using htmlagilitypack. I need hap to get
I'm using HtmlAgilityPack how can I get the domain from the following objects? private
So I'm aware of how to select a node using htmlagilitypack: HtmlNode.SelectNodes(.//div[@class='description']) etc... but
I've been using the HtmlAgilityPack to eat some XHTML documents, however, if I want

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.