Home » Archive

Articles in the XML Category

Magento, XML »

[17 Feb 2010 | One Comment]

Here, I will be showing you how you can read XML nodes from config.xml file of your module. It’s through the Magento way with Mage::getConfig()->getNode() function. :)
Here is the XML code of my config.xml file. I will be reading the nodes of this XML file.

Magento, XML »

[17 Feb 2010 | 10 Comments]

I will be using Varien_Simplexml_Element class to read write xml nodes. The path to this class file is lib/Varien/Simplexml/Element.php
Here is a sample XML file which I am going to read through Magento code. I will also be adding an XML node to the following XML data.

PHP, XML »

[23 Oct 2009 | 2 Comments]

In this article, I will be showing you how to create and read xml document with php’s DOMDocument.
The DOM extension allows you to operate on XML documents through the DOM API with PHP 5.
Below is the code to create XML file. I have named the output file ‘example.xml’. For better understanding, I have written comment for almost every line of code.

PHP, XML »

[23 Oct 2009 | 2 Comments]

In this article, I will be showing you how to create and read xml document with php’s SimpleXML extension.
The SimpleXML extension provides a very simple and easily usable toolset to convert XML to an object that can be processed with normal property selectors and array iterators.