// creating an XML tag $tag = XML_Util::createTag("xsl:stylesheet", array("version" => "1.0"), "Place your content here", "http://www.w3.org/1999/XSL/Transform");
// verify tag name $result = XML_Util::isValidName("my Tag"); if (PEAR::isError($result)) { print "Invalid XML name: " . $result->getMessage(); } else { print "Tagname is valid."; } ?>