Jump to content

[SOLVED] Parsing XML data contained in variable as string


Arekanderu

Recommended Posts

Hello,

 

I am using soap to communicate with the web services of a server. Everything so far so good....The return of the server however has the following format:

 

<ELEMENTS_WRAPPER>
<elementA attribute1="data_here" attribute2="data_here" attribute3="data3" />
<elementB attribute1="data_here" attribute2="data_here" attribute3="data3" />
</ELEMENTS_WRAPPER>

 

I have searched to see if i could find a class that takes a string as xml and not a file but i wasn't happy with the results. At the moment as a work around i have created a function which through string manipulation i get the value i want between two other strings. It's a solution i do not like and i would appreciate it if someone has to suggest something else

 

Regards

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.