How to convert XML to CSV using Python

In this example we are going to see how we can convert XML data into CSV data. XML is an Extensible Markup Language and CSV is Comma Separated Values. In this example I am going to read both XML file and XML string and show you how to display the converted csv string data in console as well as in the output csv file. You can check also check how to convert csv to xml using Python. Both XML and CSV formats being language agnostic are widely used in different…

Continue

Modifying XML using Python

Introduction Modifying XML using Python programming language means updating or modifying an existing XML file or XML string using Python. Extensible Markup Language (XML) are the most widely used formats for data, because this format is very well supported by modern applications, and is very well suited for further data manipulation and customization. Therefore it is sometimes required to generate XML data using Python or other programming languages. We have seen how to parse or read an existing XML document and build or create a new XML document using Python.…

Continue

Parsing XML using Python

Introduction Parsing XML using Python is a matter of few lines of code has to be written.  The XML could be in a file or XML could be a string. So basically parsing XML using Python means reading the XML node data and further doing something with those data to use in our application. Extensible Markup Language (XML) are the most widely used formats for data, because this format is very well supported by modern applications, and is very well suited for further data manipulation and customization.

Continue

How to Convert XML to CSV using PHP

Introduction The example, convert xml to csv using PHP , shows conversion of xml data to csv data. As the title suggests to convert xml to csv using PHP, so we will convert either xml file to csv file or xml string to csv string. When we convert xml string to csv string you will see the output on the browser and when we convert xml file to csv file then you will see the csv document saved into a file on the physical drive location. So here in this example…

Continue

Read weather information using yahoo API in PHP, MySQL

Many times we see websites that read weather from an RSS feed on another site, here I will show you how to read weather onto your site from Yahoo. Here we will create example on read weather information using yahoo API in php mysql. How to get the XML from To read the weather from Yahoo API, you need to send a request as follows: http://weather.yahooapis.com/forecastrss?p=INXX0028&u=f where p is the location code. In this tutorial I am using “Calcutta/Kolkata, India”, and as you can see the location code or zip…

Continue