Introduction Based on the capacity provided by the "simplexml_load_file()" function, I went through the development of different practical examples, aimed at illustrating how a specific XML file can be basically parsed in different ways, including the loading of XML data onto objects, as well as the localization (and eventually the extraction) of particular nodes within a file. In addition, due to the ubiquitous nature of this extension, I showed how to build a basic XML parsing class, which worked as a simple wrapper for the "simplexml_load_file()" function, allowing the retrieval of different nodes contained within an XML file, and more. Hopefully, all the examples shown in the previous article have provided you with the right pointers to start using the "simpleXML" library with only minor hassles, therefore in this second tutorial, I'll continue exploring other helpful functions, focused primarily on loading XML data strings, as well as searching and accessing nodes. Provided that all the topics that I mentioned before already caught your attention, let's continue exploring the handy functions included within the "simpleXML" extension. Let's get started!
blog comments powered by Disqus |