Hope you are well.
Just a little problem; seemingly easy but doesn't seem quite so straightforward as it should be. I am pulling an XML file from a server using the web browser control and the using the DOM innertext property to assign the contents of that XML page to a variable.
I would like to be able to efficiently parse through this variable as if it were an XML file. I have posted the output below.
I can work out how to load an XML file using the LoadXML method from a disc or URL but I would prefer to parse it from within the variable. I know this should be simple but I was wondering what the best class to use would be as the most efficient / easy way of parsing data.
I am basically looking to extract each of the details for each <application> into an array.
Code:- <response> - <result> <application_owner>mdcpinpoint</application_owner> - <application_list> - <applications> - <application> <application_name>Activity Log</application_name> <link_name>activity-log</link_name> <access>private</access> <created_time>2011-12-01 07:33:35.0</created_time> </application> - <application> <application_name>Contact</application_name> <link_name>contact</link_name> <access>private</access> <created_time>2011-12-01 07:32:53.0</created_time> </application> - <application> <application_name>Visicode New Business</application_name> <link_name>visicode-new-business</link_name> <access>private</access> <created_time>2011-11-24 03:54:19.0</created_time> </application> </applications> </application_list> </result> </response>:)




Reply With Quote