Posted by lazypig06@gmail.com on 06/21/06 18:08
Hi !
I am a PHP beginner.
I hope somebody can help me with this problem that I've been having.
I've been trying to clean up junk data that I have at the begining and
ending of an xml file. Let's say I have an xml file with some junk data
like below
--------------------------------------------------------------
Junk dataflasjfasj
<firsttag>
<secondtag>data</secondtag>
<thirdtag>whatever</thirdtag>
</firsttag>
junk dataga.
---------------------------------------------------------------
Does someone know how to remove the junk in the file and just return
the actual xml stuff( including the <firsttag> tag ?
I tried to use strpos and substr but somehow the tag in the string is
not being returned.
Any help would be appreciated !
Thanks,
Lazy Pig
[Back to original message]
|