The expat parser in php sometimes says a line is not well formed when it really is like this:
string(42) "XmlParse error: not well-formed at line 51"
Is that because I read in the file this way:
while ( $data = fread( $filePointer, $this->streamSize ) ) {
if ( !xml_parse( $this->parserHandle, $data, feof( $filePointer ) ) ) {
return $this->getErrorMessage();
}
}
It's odd because sometimes it works and others it doesn't