Miscellaneous

  Home arrow Miscellaneous arrow Processing XML with PHP
MISCELLANEOUS

Processing XML with PHP
By: bluephoenix
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 3 stars3 stars3 stars3 stars3 stars / 15
    2003-10-12

    Table of Contents:
  • Processing XML with PHP
  • Create the Parser Object
  • Configure the Parser
  • Define the Callbacks
  • Read the XML Document
  • Conclusion

  •  
     

    SEARCH CODEWALKERS

    TOOLS YOU CAN USE

    advertisement

    Processing XML with PHP


    (Page 1 of 6 )

    Join Timothy as he shows you how to process XML with PHP. In this tutorial you will learn the basics of using PHP to interpret XML.

    A markup language is a collection of directions and special symbols that are inserted throughout a document. These directions can identify special sections of a document and further define the information's background and meaning.

    A commonly used markup language on the Internet today is Hyper Text Markup Language (HTML). HTML directions (which are known as elements) are interspersed throughout a text file that can then be viewed by a web browser program. The elements can affect the formatting of text, break the document up into logical sections such as headers, paragraphs and lists and can even link several documents together.

    The eXstensible Markup Language (XML) isn't really a language like HTML. Rather, XML is a subset of rules taken from a larger language known as SGML that lay down guidelines on how new markup languages should be written. Many new and specialized markup languages (called Applications) have cropped up and anyone can use XML to write their own markup language to fit a certain need. Because the Application follows the XML specification, the information within its documents can be easily shared with others and it is easier to write the interpreting programs.

    Some examples of popular XML Applications are:

       BSML - Bioinformatic Sequence Markup Language
       CDF - Channel Definition Format
       CKML - Conceptual Knowledge Markup Language
       CML - Chemical Markup Language
       EAD - Encoded Archival Description
       GedML - Genealogical Data in XML
       ICE - Information and Content Exchange
       IMS - Information Metatdata Specification
       JSML - Java Speech Markup Language
       MathML - Mathematical Markup Language
       OFX - Open Financial eXchange
       OSD - Open Software Description
       RDF - Resource Description Framework
       RSS - Really Simple Syndication
       SMIL - Synchronized Multimedia Integration Language
       SVG - Scalable Vector Graphics
       TIM - Telecommunications Interchange Markup
       UXF- UML eXchange Format
       XHTML - eXstensible Hypertext Markup Language
       XML/EDI - XML/Electronica Data Interchange

    PHP provides several functions to process XML-compliant documents by using the expat library. These functions are made available to the programmer if PHP has been compiled with expat.

    More Miscellaneous Articles
    More By bluephoenix

    blog comments powered by Disqus

    MISCELLANEOUS ARTICLES

    - Oracle Database XE: Indexes and Sequences
    - Modifying Tables in Oracle Database XE
    - Oracle Database XE: Tables and Constraints
    - More on Oracle Databases and Datatypes
    - Oracle Database XE Datatypes: Datetime and L...
    - Oracle Database XE Datatypes: Character and ...
    - From Databases to Datatypes
    - Firefox 3.6.6 Released with Improved Plug-in...
    - Attention Bloggers: WordPress 3.0 Now Releas...
    - Reflection in PHP 5
    - Inheritance and Other Advanced OOP Features
    - Advanced OOP Features
    - Linux from Scratch V.6.6 Review
    - Linux Gaining in Strength
    - Install Slackware on Your Old PC


    © 2003-2012 by Developer Shed. All rights reserved. DS Cluster 8 - Follow our Sitemap