Question

XMLWriter VS. XML helper from CodeIgniter. Which one is faster and better Performance ? Still not see result from anywhere.

ps.already search in stackoverflow and google. ps2.may be , I'm bad searcher. ;w;

Was it helpful?

Solution

XMLWriter and the CodeIgniter XML helper solve very different problems, so I'm not sure a fair comparison can be made between the two. XMLWriter is used to programmatically build XML in a structured and robust manner. The CodeIgniter XML helper provides a single function that just takes a string as input and converts specific reserved XML characters to entities.

If you're building extremely simple XML, you might be OK just using the CodeIgniter XML helper. If there's any complexity in building your XML or you want an OO interface for building the XML, you'll want to use XMLWriter.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top