cool xml examples - mostly with php

Oct 5, 01:26 PM

very cool way to read & change html: http://simplehtmldom.sourceforge.net/manual.htm – updated 2009-05-30

====== very good article =======================
reading and writing xml using php – 2009-05-30

excellent javascript/xml examples:
http://www.zkoss.org/zkdemo/userguide/

php reads xml – simple example using the xml dom (document-object-model)

php reads html and parses – more for pure html rather than from xml

php reads an xml file – uses simplexml_load_file – 2009-01-14

php reads an xml string! – uses simplexml_load_string – 2009-01-14

php writes xml – 2009-11-08
$xml->startElement(‘elementOne’);
$xml->text(‘this value is part of elementOne’);
$xml->endElement();
$xml->writeElement(‘elementOne”, ‘this stuff is part of elementOne’);
$xml->writeAttribute(‘attrName’, ‘this is an attribute value’);

OLD php writes xml using xmlWriter – 2009-01-14

php grabs a webpage from a url – note that the webpage can be saved like
$completeWebPage = curl_exec($myPage); – 2009-01-14

Mark Edwards

,

---

Commenting is closed for this article.

---