I have got the program to accept an xml string into a text box. It then takes the string and puts it into an xml document.
Code:
<API_REQUEST>
<NAME>SP_TEST</NAME>
<PARAMETERS>
<param1>1</param1>
<param2>2</param2>
<param3>3</param3>
</PARAMETERS>
</API_REQUEST>
Above is what the XML document looks like.
Now what I need to do is to read through the document and pull out the NAME, and ParamX. I can pull out the NAME without a problem, but I need to be able to loop through the PARAMETERS and pull out all the different parameters and create a varible for each paramter. Unfortunately the amount of parameters is going to change.
If anyone has got any ideas or code snippets that would be great.
Thanks!!!!