Arekanderu Posted November 22, 2007 Share Posted November 22, 2007 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 https://forums.phpfreaks.com/topic/78383-solved-parsing-xml-data-contained-in-variable-as-string/ Share on other sites More sharing options...
Arekanderu Posted November 22, 2007 Author Share Posted November 22, 2007 Ignore, next time i should read more carefully about simplexml_load_string Link to comment https://forums.phpfreaks.com/topic/78383-solved-parsing-xml-data-contained-in-variable-as-string/#findComment-396671 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.