Enno Derksen > libxml-enno > XML::RegExp

Download:
libxml-enno-1.02.tar.gz

Dependencies

Annotate this POD

Related Modules

XML::Simple
XML::DOM
XML::Twig
LWP::UserAgent
XML::Parser
Apache::SmallProf
Data::Dumper
more...
By perlmonks.org

CPAN RT

New  3
Open  0
View/Report Bugs
Source  

NAME ^

XML::RegExp - Regular expressions for XML tokens

SYNOPSIS ^

 use XML::RegExp;

 if ($my_name =~ /^$XML::RegExp::Name$/)
 {
   # $my_name is a valid XML 'Name'
 }

DESCRIPTION ^

This package contains regular expressions for the following XML tokens: BaseChar, Ideographic, Letter, Digit, Extender, CombiningChar, NameChar, EntityRef, CharRef, Reference, Name, NmToken, and AttValue.

The definitions of these tokens were taken from the XML spec (Extensible Markup Language 1.0) at http://www.w3.org/TR/REC-xml.

Also contains the regular expressions for the following tokens from the XML Namespaces spec at http://www.w3.org/TR/REC-xml-names: NCNameChar, NCName, QName, Prefix and LocalPart.

AUTHOR ^

Please send bugs, comments and suggestions to Enno Derksen <enno@att.com>

syntax highlighting: