Spajk Posted June 23, 2013 Share Posted June 23, 2013 This suggestion is really short, please read it. In my opinion, XML system should only work using strings instead of files, reading and writing xml files should be done using file system not XML. So, XML parsing shouldnt be directly connected with files, but file system and its functions should be used as connection. Functions that we should have: xmlLoad(string xml) - Should load the xml structure from string and return the first node xmlSave(node) - Should return the string content of the node and its childern xmlLoadFile wouldnt be needed as we could use file system to open the file and xmlLoad to create nodes from it. Same goes for other xml functions related to files. Link to comment
Recommended Posts