Miscellaneous
  Home arrow Miscellaneous arrow Processing XML with PHP
Codewalker Forums 
  Tutorials  
Database Articles  
Miscellaneous  
Navigation Usability  
PEAR Articles  
Programming Basics  
Server Administration  
XML Tutorials  
  Reviews  
Database Book Reviews  
Linux Book Reviews  
Miscellaneous Reviews  
PHP Book Reviews  
PHP Software Reviews  
Server Admin Reviews  
SQL Tool Reviews  
  Code Gallery  
Content Management Code  
Contest Code  
Counters Code  
Database Code  
Date Time Code  
Discussion Board Code  
Email Code  
File Manipulation Code  
GUI Code  
Link Farm Code  
Miscellaneous Code  
Search Code  
Site Navigation Code  
User Management Code  
Forums Sitemap 
Download TestComplete 
JMSL Numerical Library 
IBM® developerWorks
Weekly Newsletter 
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
MISCELLANEOUS

Processing XML with PHP
By: bluephoenix
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 2 stars2 stars2 stars2 stars2 stars / 9
    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

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    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


       · Is there any way to use this to parse external files, ie. RSS feeds from another...
       · This is output what i am getting.The following compiled languages were...
       · <?php$compiled_langs = array();$interprt_langs = array();$flag =...
       · The program, as presented, does not work as presented. The problem, however, is not...
     

    MISCELLANEOUS ARTICLES

    - Stopping CSRF Attacks in Your PHP Applicatio...
    - Quick and Dirty AJAX Tutorial
    - Flickr Puzzle Mashup
    - The PAVISE of Security
    - Creating a CAPTCHA with PHP
    - Sending SMS Thru HTTP
    - The Postal Fix - Part 2
    - Adding Mail with Exim
    - The Postal Fix - Part 1
    - Create Your Own Custom API
    - Adding Drop Shadows with PHP
    - Writing a Basic Authentication System in PHP
    - Overlapping Images with GD
    - Using Sockets in PHP
    - Dynamic CSS with PHP





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
    Stay green...Green IT