Page 1 of 1

how to get value from xml into php

Posted: Tue Feb 24, 2009 8:27 am
by kushaljutta
i want to get the data from xml file like following...
pattern 1:
<guestbook>
<entry name="kushal">
<mytext>Hi this is kushal</mytext>
</entry>
<entry name="phnai">
<mytext>Hi this is phnai</mytext>
</entry>
</guestbook>

it is difficult to get data for me but i can get data like following
pattern 2:
<guestbook>
<entry>
<myname>kushal</myname>
<mytext>Hi this is kushal</mytext>
</entry>
<entry>
<myname>phnai</myname>
<mytext>Hi this is phani</mytext>
</entry>
</guestbook>
i want to get pattern1 only please
please anyone help me im in dead condition

Re: how to get value from xml into php

Posted: Tue Feb 24, 2009 8:30 am
by papa

Re: how to get value from xml into php

Posted: Tue Feb 24, 2009 11:51 pm
by kushaljutta
thanks Papa...