1--TEST--
2Create CDATA section and change it using DOMcreateCDATASection
3--CREDITS--
4Nic Rosental nicrosental@gmail.com
5# TestFest Atlanta 2009-5-28
6--SKIPIF--
7<?php require_once('skipif.inc'); ?>
8--FILE--
9<?php
10
11$document = new DOMDocument;
12$root = $document->createElement('root');
13$document->appendChild($root);
14
15$cdata = $document->createCDATASection('t');
16$root->appendChild($cdata);
17print $document->saveXML()."\n";
18
19$cdata->data = 100;
20print $document->saveXML()."\n";
21
22?>
23--EXPECT--
24<?xml version="1.0"?>
25<root><![CDATA[t]]></root>
26
27<?xml version="1.0"?>
28<root><![CDATA[100]]></root>
29