NAME
XML::CommonNS - A list of commonly used namespaces
SYNOPSIS
# import $RDF, $RDFS, $OWL, $DCuse XML::CommonNS qw(RDF RDFS OWL DC);my %CONFIG = (Namespaces => {rdf => "$RDF",rdfs => "$RDFS",owl => "$OWL",foaf => "$FOAF",},ExpandQNames => 1,);# or the uri() methodmy $foaf = XML::CommonNS->uri('FOAF');
DESCRIPTION All you need do to use this module is import the namespaces you
want from the list below. All of those will then become available to you. They are XML::NamespaceFactory object and can thus be used both as simple strings and as XML::NamespaceFactory objects. See XML::NamespaceFactory for how that may help you.
I hesitated for a while before releasing this module. As a directory of namespaces that can't (and almost certainly shouldn't) be exhaustive, it implies editorial decisions and I wasn't certain it was CPAN worthy. However, after getting really tired of tracking down namespaces in every single small XML muning script I made, I wrote it for myself. After a while using it, I don't see why others wouldn't find it useful as well.
NAMESPACES
The currently available namespaces are listed below. Should you consider one worthy of addition (it needs to be common enough) please simply notify me. Those marked with a start are subject to change. I WILL change them when the corresponding specification changes.
XML http://www.w3.org/XML/1998/namespaceXMLNS http://www.w3.org/2000/xmlns/XLINK http://www.w3.org/1999/xlinkSVG http://www.w3.org/2000/svgXHTML http://www.w3.org/1999/xhtmlXHTML2 http://www.w3.org/2002/06/xhtml2XFORMS http://www.w3.org/2002/xforms/crXMLEVENTS http://www.w3.org/2001/xml-eventsDC http://purl.org/dc/elements/1.1/DC_TERMS http://purl.org/dc/terms/RDF http://www.w3.org/1999/02/22-rdf-syntax-ns#RDFS http://www.w3.org/2000/01/rdf-schema#OWL http://www.w3.org/2002/07/owl#FOAF http://xmlns.com/foaf/0.1/REL http://purl.org/vocab/relationship/RSS1 http://purl.org/rss/1.0/COMMENTS http://purl.org/net/rssmodules/blogcomments/SYN http://purl.org/rss/1.0/modules/syndication/RNG http://relaxng.org/ns/structure/1.0XSD http://www.w3.org/2001/XMLSchemaXSI http://www.w3.org/2001/XMLSchema-instanceMATHML http://www.w3.org/1998/Math/MathMLXSLT http://www.w3.org/1999/XSL/TransformXSLFO http://www.w3.org/1999/XSL/FormatSOAPENC11 http://schemas.xmlsoap.org/soap/encoding/SOAPENV11 http://schemas.xmlsoap.org/soap/envelope/SOAPENC12 http://www.w3.org/2003/05/soap-encodingSOAPENV12 http://www.w3.org/2003/05/soap-envelopeWSDL11 http://schemas.xmlsoap.org/wsdl/WSDL12 http://www.w3.org/2003/06/wsdl
METHODS
- uri
-
Allows you to directly retrieve one of the URI objects without doing the import() dance.
AUTHOR
Chris Prather, <[email protected]> Robin Berjon, <[email protected]>
COPYRIGHT AND LICENSE
Copyright 2003 by Robin Berjon
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.