Hah, no there isn't ;P
You'd have to manually parse through the xml, grab the next line and the previous 4 lines once you've found any containing "?f=4"
Edit:
The above method is a bit stupid and would take much longer to process in php, plus you'd need a lot more code and a lot more variables.
I thought about the way I'd do this...
I'd have one function like this:
functions.php
Code: Select all
<?php
function postXML(date, author, title, content, originator) {
if(originator==4) {
// format and output the content
}
}
?>
And then I'd have in index.php somewhere
Code: Select all
<?php
include('functions.php');
// read the file in
// parse through until you're at the start of the new posts
// loop until end of file {
// string functions to get the content
// parseXML(all the content);
// }
?>
Ie, you just read the entire thing in and just ouput the ones that were from the right sections. This way is also much easier to change later on
