Example

Example – Example for the usage of XML_Util

Usage example

The following examples shows how some of the methods of XML_Util have to be used.

Some basic examples

<?php
require_once "XML/Util.php";

// 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.";
}
?>
Introduction to XML_Util (Previous) return API version (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.