PHP - XML Introduction !!
In this article we will discuss about PHP - XML.we will learn what is xml ? and why we use xml ?
What Is XML ?
- XML stands for eXtensible Markup Language
- XML is a markup language like HTML
- XML was designed to store and transfer data which is not possible in HTML
- XML parsers are use to read and update the data by using web browsers.
- XML stores data in the form of 'text'.
- XML is human-readable and machine-readable both.
Difference Between XML And HTML
- HTML uses only predefined tags. In XML we can make own tags.
- HTML makes static web page through XML we can store and transfer the data.
- XML focus on what data is and HTML focus on how data actually looks like.
Types Of XML
- Tree based
- Event based
XML Parser Extension
XML parser work based on libxml/
Types Of XML Parser
- Simple XML Parser
- DOM Parser
- XML Parse
- XML Reader
Simple XML Parser
It is tree based XML parser.
It parses the simple xml file.
It only load the xml file from the specific path.
DOM Parser
It is used to parse highly complex xml file.
It is used as a interface for modify the xml file.
It encoded with UTF-8 characterset encoding.
It is also known as complex node parser.
XML Parse
It creates the XML file and parse xml fle.
It is faster than above parsers.
It is based on SAX Parse.
XML Reader
It is used to read the XML file in the faster way.
It is work with xml validation for complex xml document.
It is also known as PULL XML Parse.
Syntax Of XML
<root element>
<child>
<sub child>....data....</sub child>
<sub child>....data....</sub child>
<sub child>....data....</sub child>
</child>
</root element>
Example :
note.xml
<class>
<notebook>
<name> xyz </name>
<author> antia hamelton </author>
<price>300</price>
</notebook>
</class>
Here, in above example we create a XML file which save with ' .xml ' extension.
Here Root element is class.
Child element is notebook and sub child element is name, author, price.
In this we discuss about XML, types of XML, different XML parsers and other things. I hope you eill like it.for more PHP-XML articles keep join us.
You Can Also Search For :
Mesothelioma Survival Rates , Mesothelioma Attorneys California , Seattle Mesothelioma Lawyer , Mesothelioma Suit , Mesothelioma Claim , Wisconsin Mesothelioma Attorney , Mesothelioma Attorney illinois , Mesothelioma Trial Attorney ,Houston Mesothelioma Attorney , Mesothelioma Lawyer Dallas , New York Mesothelioma Law Firm,Mesothelioma Lawyer Asbestos Cancer Lawsuit , Mesothelioma Lawyers San Diego,Mesothelioma Litigation , Mesothelioma Attorney Assistance , Mesothelioma Lawyer Asbestos Cancer Lawsuit , Mesothelioma Lawyer Chicago , New York Mesothelioma Law Firm ,
Houston Mesothelioma Attorney , Mesothelioma Lawyer Dallas , Mesothelioma Care , Mesothelioma Trial Attorney , Mesothelioma Lawyer Texas , Lawsuit Mesothelioma , Truck Accident Attorney Los Angeles ,Asbestos Exposure Lawyers , Mesothelioma Cases , Emergency Response Plan ppt , Mesothelioma Lawyers San Diego , Asbestos Mesothelioma Lawsuit , Tennessee Mesothelioma Lawyer , Meso Lawyer , Mesothelioma Settlements Amounts , Mesothelioma Law Firms , New Mexico Mesothelioma Lawyer , Accident Attorneys Orange County , Mesothelioma Lawsuit ,Personal Injury Accident Lawyer , Purchase Structured Settlements , Firm Law Mesothelioma , Car Accident Lawyers Los Angeles , Mesothelioma Attorneys , Structured Settlement Company , Auto Accident Lawyer San Francisco , Mesotheolima , Los Angeles Motorcycle Accident Lawyer
Mesothelioma , Mesothelioma Lawyer Virginia , Seattle Mesothelioma Lawyer , Mesothelioma Attorney illinois , Mesothelioma Drug , Mesothelioma Attorney DirectoryMesothelioma Settlements , Mesothelioma Help , Mesothelioma ct , Mesothelioma Attorney Florida , Washington Mesothelioma Attorney , Best Mesothelioma Lawyers , Diagnosed With Mesothelioma , Mesothelioma Settlement Amounts , Mesothelioma Personal Injury Lawyers , Mesothelioma Compensation , Attorney Lawyer Mesothelioma ,Colorado Mesothelioma Lawyers,Mesothelioma Lawsuits , Mesothelioma Claims , Average Mesothelioma Settlement , Average Mesothelioma Settlement , Mesothelioma Law Suit , Alabama Mesothelioma Lawyer , alabama Mesothelioma Lawyer , utah mesothelioma lawyer , Dallas Mesothelioma Lawyer , Mesothelioma Attorney California , Mesothelioma Lawyer California ,Mesothelioma Survival Rates ,
Mesothelioma Attorneys California, Wisconsin Mesothelioma Attorney Mesotheliama , Mesothelioma Lawyer Virginia , Seattle Mesothelioma Lawyer , Mesothelioma Attorney illinois, Mesothelioma Trial Attorney Injury Lawyer Houston tx , Baltimore Mesothelioma Attorneys , Mesothelioma Care ,Mesothelioma Trial Attorney ,Mesothelioma Lawyer Texas , Mesothelioma Lawyer Dallas , Mesothelioma Care , Mesothelioma Trial Attorney , Mesothelioma Lawyer Texas , California Mesothelioma Attorney Philadelphia Mesothelioma Lawyer , Illinois Mesothelioma Lawyer , Mesothelioma Attorney , Mesothelioma Claims , Average Mesothelioma Settlement
Integrated ehr , Mesothelioma Law Sui , Mesothelioma Lawyer California,Mesothelioma Attorney California ,Mesothelioma Law Suits ,Dallas Mesothelioma Attorneys ,Mesothelioma Drug ,Mesothelioma Attorney Directory