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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.