fetching xml file, it has no line breaks = problem



I am fetching some xml files and parsing them using the built in
parser in php. Some of them work fine and i can extract what i need,
but some seem to return nothing, even when I know there is stuff in
there. Looking at the files, I have noticed that the ones that don't
work contain no line breaks. They are all fetched in the same way,
using

$merch = substr($key,1);
$feed = file_get_contents($_POST['data_url'.$merch]);
$fp = fopen("./feeds/feed".$merch.".txt","w+");
fwrite ($fp,$feed);
fclose ($fp);

, so it must be the way they are authored.

Would a lack of line breaks cause the parser any problems please ?

.



Relevant Pages

  • Using PHP to read a PHP compiled XML file
    ... I have created an xml parser in php, which puts the elements into variables. ... However, the xml files I want to parse are compiled by another PHP application, thus the files I am calling are .php not .xml. ... So what I need to know is, how can I use the final outputted xml file in my parser, without having to download it first, put it on my host then use it? ...
    (alt.php)
  • Re: Is D2005 the most expensive editor in the world?
    ... of refactoring, you can't refactor code that doesn't compile (although ... I think you're confusing a parser and a compiler here, ... Parsing a nested procedure is largely the same as parsing any ... Won't that be a problem if the code selected to extract starts in the ...
    (borland.public.delphi.non-technical)
  • XML parser
    ... understand why the parser are done. ... My XML files contains datas and images. ... but I only need to save images and refresh ... I only need to get the art id and every picture for each article, ...
    (comp.lang.php)
  • Re: Parsing HTML
    ... I want to extract the 33,699 and set the value to a ... This can sometimes be done with a simple regular expression, or with a stream editor if a regular expression gets too unwieldy. ... The advantage of the stream editor over a parser is that it doesn't mobilize an arsenal of unneeded functionality and therefore tends to be easier, ...
    (comp.lang.python)
  • Bulk insert into Database
    ... Parse XML files & extract relevant information. ... Write the extracted information to a database. ...
    (microsoft.public.dotnet.framework.adonet)