Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class SimpleXmlStreamer extends XmlStreamer {
- public function processNode($xmlString, $elementName, $nodeIndex) {
- $xml = simplexml_load_string($xmlString);
- // Do something with your SimpleXML object
- return true;
- }
- }
- $streamer = new SimpleXmlStreamer("myLargeXmlFile.xml");
- $streamer->parse();
Add Comment
Please, Sign In to add comment