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. C / C++ / MFC
  4. XML parsing with DOM??

XML parsing with DOM??

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++htmlxmljson
4 Posts 4 Posters 0 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.
  • X Offline
    X Offline
    xxhimanshu
    wrote on last edited by
    #1

    hi all, i have an XML file..where i have some data as .net 0% credit card 0% interest credit card 1 800 contacts 1 800 flower 1-800 flower 1-800-flowers I want to perform a search over this XML file as if i have "1-800-flowers". I dont want it to go thru each element and then reach there..it is a slow process as it goes in loop for each keyword tag..is there any way where i can perform a fast search for the data i have..so that it is fast..i am using VC++ with MSXML..Please help me out.. Thanks a lot in advance.. regards, Himanshu

    A A R 3 Replies Last reply
    0
    • X xxhimanshu

      hi all, i have an XML file..where i have some data as .net 0% credit card 0% interest credit card 1 800 contacts 1 800 flower 1-800 flower 1-800-flowers I want to perform a search over this XML file as if i have "1-800-flowers". I dont want it to go thru each element and then reach there..it is a slow process as it goes in loop for each keyword tag..is there any way where i can perform a fast search for the data i have..so that it is fast..i am using VC++ with MSXML..Please help me out.. Thanks a lot in advance.. regards, Himanshu

      A Offline
      A Offline
      act_x
      wrote on last edited by
      #2

      net 0% credit card 0% interest credit card 1 800 contacts 1 800 flower 1-800 flower 1-800-flowers all this is the data embedded between tags that have the same name like <MYTAG>1 800 blah 1 </MYTAG> <MYTAG>1 800 blah 2 </MYTAG> <MYTAG>1 800 blah 3 </MYTAG> <MYTAG>1 800 blah 4</MYTAG> Then I am afraid u ll have to go thru each node and find out . if the tags are unique u can do a "getElementsByTagName" defined by DOM . Engineering is the effort !

      1 Reply Last reply
      0
      • X xxhimanshu

        hi all, i have an XML file..where i have some data as .net 0% credit card 0% interest credit card 1 800 contacts 1 800 flower 1-800 flower 1-800-flowers I want to perform a search over this XML file as if i have "1-800-flowers". I dont want it to go thru each element and then reach there..it is a slow process as it goes in loop for each keyword tag..is there any way where i can perform a fast search for the data i have..so that it is fast..i am using VC++ with MSXML..Please help me out.. Thanks a lot in advance.. regards, Himanshu

        A Offline
        A Offline
        Anand Paranjpe
        wrote on last edited by
        #3

        hi, post proper XML u r using to get soln or or look into XPath query language on MSDN. The chosen One :)

        1 Reply Last reply
        0
        • X xxhimanshu

          hi all, i have an XML file..where i have some data as .net 0% credit card 0% interest credit card 1 800 contacts 1 800 flower 1-800 flower 1-800-flowers I want to perform a search over this XML file as if i have "1-800-flowers". I dont want it to go thru each element and then reach there..it is a slow process as it goes in loop for each keyword tag..is there any way where i can perform a fast search for the data i have..so that it is fast..i am using VC++ with MSXML..Please help me out.. Thanks a lot in advance.. regards, Himanshu

          R Offline
          R Offline
          Ravi Bhavnani
          wrote on last edited by
          #4

          You could use XPath (Xalan). Not sure how compatible it is with MSXML. I use Xerces to parse XML. /ravi Let's put "civil" back in "civilization" Home | Articles | Freeware | Music ravib@ravib.com

          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