Reply to Remove data outside a pair of xml tags.

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация