0

I want to use tidypp based on tidylib, executing the following example works fine, but the following example extract hrefs, witch means tag = "tidytag_A" and attribute ="href", I have no idea how can I extract tags like <h1>, <p>, ...

The example here

I tried to lookout in tidylib sources and i cant find a method to do this,any suggestions please.

Olaf Dietsche
  • 72,253
  • 8
  • 102
  • 198
Redaa
  • 1,540
  • 2
  • 17
  • 28
  • What exactly is your issue? What isn't working and how should it be working? What have you tried so far (provide code examples). Do can you create a fiddle to show the issue? – badAdviceGuy Feb 09 '14 at 23:17
  • @badAdviceGuy i tryed the code in the example provided in the post , this code returns a list of links; i want a list of

    in the html document

    – Redaa Feb 10 '14 at 00:19
  • for my dumphrefs function: void dumphrefs(tidypp::node &node, std::list *dst) { for (tidypp::node child = node.child(); child.valid(); child = child.next()) { bool isheader = node.ish1; // obtain tag id to check if it's a h1 if (isheader) { //code to add the content of

    to the list; } // walk all the children of each children recursively dumphrefs(child, dst); } }

    – Redaa Feb 10 '14 at 00:19
  • sorry i dont know how to write code in comment – Redaa Feb 10 '14 at 00:20
  • What have you tried? Can you show your basic block of code that tries to detect the `

    `? We can't really help you with code that you're hiding from us.

    – MSalters Feb 10 '14 at 10:03

0 Answers0