Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
C#
<div id="caption">
<div>
    Position: Passenger Side Front
    <br></br>
    Color: Black
    <br></br>
    Finish: Smooth / Paintable
    <br></br>
    Part Brand: LatchWell
    <br></br>
    Lifetime Warranty
</div>


<pre lang="xml">I need xpath  that should  fetch **Part Brand :** values.My desired OP is<br/>
**LatchWell**

Here is my code :


C#
tag = htmlDoc.DocumentNode.SelectSingleNode("//div[@id='caption']//div");
                if (tag != null)
                {
                    wi.Brand = tag.InnerText.Trim();
                }


I am not able to split by using split functions because the data above and below Part Brand are dynamic.
Posted
Comments
ashok rathod 30-Jun-14 1:38am    
your problem statement is not looking appropriate. Can you please elaborate more?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900