XML parsing with DOM??
-
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
-
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
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 !
-
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
hi, post proper XML u r using to get soln or or look into XPath query language on MSDN. The chosen One :)
-
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
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