Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Managed C++/CLI
  4. retrieve words in a HTML page

retrieve words in a HTML page

Scheduled Pinned Locked Moved Managed C++/CLI
javascripthtmltoolsxmlhelp
5 Posts 2 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    neterfari
    wrote on last edited by
    #1

    Hello , I have a problem. I have a HTML page like this:

    <title> Test HTML</title>
    

    </head>
    <body>
    <div id="alert"></div>
    <div class="data">
    <div class="line-item">word1 word2 word3 word 4 word5 <br /> word7 word8 word9
    </div>
    </div>
    <div class="footer"><span class="segmented"><a href="#" id="2" class="button enabled">Arreter</a><a href="#" id="3" class="button enabled">Annuler</a></span></div>
    <script type="text/javascript" src="/repertoire1/test/.js">
    $(document).ready(function () {
    init();
    });

    I record this page in xml or txt file. I walk through the xml file and I have only recovered one by one word while cleaning the html tag like this one: word1 word2 word3 ... The question is : how to retrieve the words one by one, please Thank you in advance.

    L 1 Reply Last reply
    0
    • N neterfari

      Hello , I have a problem. I have a HTML page like this:

      <title> Test HTML</title>
      

      </head>
      <body>
      <div id="alert"></div>
      <div class="data">
      <div class="line-item">word1 word2 word3 word 4 word5 <br /> word7 word8 word9
      </div>
      </div>
      <div class="footer"><span class="segmented"><a href="#" id="2" class="button enabled">Arreter</a><a href="#" id="3" class="button enabled">Annuler</a></span></div>
      <script type="text/javascript" src="/repertoire1/test/.js">
      $(document).ready(function () {
      init();
      });

      I record this page in xml or txt file. I walk through the xml file and I have only recovered one by one word while cleaning the html tag like this one: word1 word2 word3 ... The question is : how to retrieve the words one by one, please Thank you in advance.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      This is the Managed C++ forum; please post your question in the proper place.

      N 1 Reply Last reply
      0
      • L Lost User

        This is the Managed C++ forum; please post your question in the proper place.

        N Offline
        N Offline
        neterfari
        wrote on last edited by
        #3

        I think I'm good endroit.parce I have to do all this in c + + / cli. I get the source code of the site with c + + and I have records in a xml file. I route the file and now I have to recover word and it will be with c + + / cli.

        L 1 Reply Last reply
        0
        • N neterfari

          I think I'm good endroit.parce I have to do all this in c + + / cli. I get the source code of the site with c + + and I have records in a xml file. I route the file and now I have to recover word and it will be with c + + / cli.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Sorry, but it is not clear what your problem is. If you are looking for a simple XML parser then try http://msdn.microsoft.com/en-us/magazine/cc163436.aspx[^].

          N 1 Reply Last reply
          0
          • L Lost User

            Sorry, but it is not clear what your problem is. If you are looking for a simple XML parser then try http://msdn.microsoft.com/en-us/magazine/cc163436.aspx[^].

            N Offline
            N Offline
            neterfari
            wrote on last edited by
            #5

            Thank you

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups