Skip to content

Instantly share code, notes, and snippets.

View birawaich's full-sized avatar

birawaich birawaich

View GitHub Profile
@birawaich
birawaich / function_writeOneNode.php
Created July 30, 2018 21:50
PHP: used to write 1 XML Node with the XMLWriter, based on where an XMLReader is
/**
* writes one node based on nodetype
*
* _implementation_
* In an object which has the properties 'xmlReader' and 'xmlWriter' which are instances of the XMLReader/XMLWriter class respectively.
*
* can be used after each XMLReader::read()
* there are 3 groups
* - handled types (they get written)
* - ignored types (they get purposely ignored)