Well, I managed to work with the spaces but using fgetc instead of fscanf.
Scanning char by char, i haven't need to worry about the spaces or new
lines.
2006/9/26, German Piqué <[EMAIL PROTECTED]>:
Hello.
I'm trying to parse some XML files to get all in only one file, deleting
the first and l
Hi
First, if you're parsing XML files, I'd suggest using the XML modules to
do so.
I'm not sure what you're attempting. From the line:
The Communards
are you trying to retrieve all of it, or just "The Communards"? If the
latter then try a regex and not fscanf
This is a little loose on the
All of it :P
I only want to delete the initial and final tags in order to unify various
archives with the sames patterns. To work with this archives I need to put
it one by one, so I thought that I can unify all in only one archive. I'm
doing it in php for my partners, because i'm not the only on
German Piqué wrote:
Well, I managed to work with the spaces but using fgetc instead of fscanf.
Just as a note I think it would be much more efficient to use fgets or
fread and then parse resulting string using regular expressions. Unless
you have some limitations that weren't mentioned.
--