Welcome to Dream.In.Code
Getting Help is Easy!

Join 107,398 Programmers for FREE! Ask your question and get quick answers from experts. There are 1,192 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



Spliting the xml string

 
Reply to this topicStart new topic

Spliting the xml string

honeys
post 14 May, 2008 - 03:14 AM
Post #1


New D.I.C Head

*
Joined: 13 May, 2008
Posts: 1

HI,

Please any one help me in splitting the xml string.
My xml string is as follows:

<STRING>
<RESPONSE>TRUE</RESPONSE>
<URL>http://www.dreamincode.net/forums/index.php?act=post&do=new_post&f=62
</URL>
</STRING>

Now i need to split this string such that i will get ony the values that are assigned to Response and URL.

Thanks in Advance
smile.gif

User is offlineProfile CardPM

Go to the top of the page


2457
post 15 May, 2008 - 02:26 AM
Post #2


D.I.C Head

**
Joined: 9 Apr, 2008
Posts: 69

if you could.. tell what language would it be suitable for You I'm sure you could get a reply.

Anyways in php I would explode it as string, to get only the part after
<URL>http://www.dreamincode.net/forums/index.php?

and afterward further explode the remaining by "=", so You would get the variable name and values passed to it.

//note I'm not highly educated and there should be a better solution than my clumsy/newb approach. As I see my approach is not too eficient, but should work..
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 8/28/08 04:13PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month