echo "TEST: tag with attribute, content, namespace, REPLACE_ENTITIES, multiline = true, indent = (2 spaces), linebreak = '^', and sortAttributes = false" . PHP_EOL;
XML_Util::createTag() basic tests
Chuck Burgess <ashnazg@php.net>
# created for v1.2.0a1 2008-05-04
require_once 'XML' . DIRECTORY_SEPARATOR . 'Util.php';
echo '=====XML_Util::createTag() basic tests=====' . PHP_EOL . PHP_EOL;
echo "TEST: tag with attribute" . PHP_EOL;
echo XML_Util::createTag(
echo "TEST: tag with attribute and content" . PHP_EOL;
echo XML_Util::createTag(
echo "TEST: tag with attribute, content, and namespace" . PHP_EOL;
echo XML_Util::createTag(
"This is inside the tag",
"http://www.w3c.org/myNs#"
echo "TEST: tag with attribute, content, namespace, and REPLACE_ENTITIES" . PHP_EOL;
echo XML_Util::createTag(
"This is inside the tag and has < & @ > in it",
"http://www.w3c.org/myNs#",
XML_UTIL_REPLACE_ENTITIES
echo "TEST: tag with attribute, content, namespace, and CDATA_SECTION" . PHP_EOL;
echo XML_Util::createTag(