You are here: Re: Remove data outside a pair of xml tags. « PHP Programming Language « IT news, forums, messages
Re: Remove data outside a pair of xml tags.

Posted by Alvaro G. Vicario on 06/21/06 22:53

*** lazypig06@gmail.com escribió/wrote (21 Jun 2006 15:40:00 -0700):
> I did some research on the web and it turned out the junks that I have
> in the xml file are Greek's characters (The junks are "1ffc", "fa1",
> and some numbers including number 0 at the end of xml file. These junks
> prevent the xml to be parsed correctly.
>
> Does anybody have any idea to to get rid of these junk/ convert these
> characters to empty string/characters ?

This reminds me of raw responses when using the "chunked" transfer
encoding. Check user notes in fsockopen() and fpassthru() manual pages.

Also, if you're downloading the file from your script, I'd suggest you try
Curl functions and see if garbage goes away.



--
-+ Álvaro G. Vicario - Burgos, Spain
++ http://bits.demogracia.com es mi sitio para programadores web
+- http://www.demogracia.com es mi web de humor libre de cloro
--

 

Navigation:

[Reply to this 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

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