Beruflich Dokumente
Kultur Dokumente
Class: Application Syndication: Parse and Publish RSS & XML Data
Date : 2/25/2014
Tonight
Introduction to XML
Lab Preview
Application Development
Registration Feature
Login\Logout
Maintain State
Lab Preview
Application Development:
Final Project
Review
admin ability to
create\read\update\delete (CRUD)
(week 4-5)
Maintain State throughout app
(cookies\sessions) (week 7)
Web Apps
Web Apps
Goals:
Share information across
multiple environments
Open, flexible language to
share data
Provide schematic meaning
to data elements
Solution: XML
Intro to XML
Terms of XML
XML Sample
<?xml version=1.0?>
<product barcode=2323423>
<maker>Smithson</maker>
<name>Apex DVD Player 1.2</name>
<quantity>3</quantity>
<size>33cm</size>
<color>black</color>
</product>
Nodes in XML
The Node:
CDATA in XML
CDATA
Data can hold more complex data,
like HTML, using CDATA.
Tells the node to contain raw
character data, not markup.
<![CDATA[
]]>
write only(w)
permissions are an issue! Try chmod to 777 to start and throttle back.
fwrite()
fclose()
XML Example
Create RSS
with PHP
Create RSS
with PHP
Create RSS
with PHP
RSS Example
SimpleXML
xPath
JSON
JSON Example
Lab