XML How-to

Submitted By: WEBMASTER
Rating: (Not rated) (Rate It)
Share: Share By Email By Email

Visit


Description

PHP's XML functions allow you to specify three functions that will handle the data in the XML file. One handles opening tags, one hands the data between tags, and the third handles the ending tags. Based on the name of the tags it gets passed you can then manipulate the data however you please. To begin with you need to look at your XML document and find out what tags are in the file. In our slashdot file we have STORY, TITLE, URL, TIME, AUTHOR, DEPARTMENT, TOPIC, COMMENTS, SECTION, and IMAGE. In some cases you would have attributes, and example is HREF is an attribute to A in HTML. PHP has an extremely cool way of handling attributes automagically.

Comments (0)


Add Your Rating

(Not published)
star
starstar
starstarstar
starstarstarstar
starstarstarstarstar
 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.