previousXML_Util::getXMLDeclaration (Previous) (Next) XML_Util::replaceEntitiesnext

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

XML_Util::isValidName

XML_Util::isValidName() – verify an XML name

Synopsis

require_once 'XML/Util.php';

boolean XML_Util::isValidName ( string $string )

Description

Checks, whether a string is a valid XML name. In XML the names of tags and attributes must follow strict rules. This method can be used to validate the names you are using.

Parameter

  • string $string - string to be checked

Return value

Returns TRUE on success, PEAR_Error on failure.

Note

This function should be called statically.

previousXML_Util::getXMLDeclaration (Previous) (Next) XML_Util::replaceEntitiesnext

Download Documentation Last updated: Sun, 18 Oct 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.