logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

XML::CommonNS - A list of commonly used namespaces

Author

       Chris Prather, <chris@prather.org> Robin Berjon, <robin.berjon@expway.fr>

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.

Methods

       uri
                   Allows you to directly retrieve one of the URI objects without doing the import() dance.

Name

       XML::CommonNS - A list of commonly used namespaces

Namespaces

Synopsis

               # import $RDF, $RDFS, $OWL, $DC
               use XML::CommonNS qw(RDF RDFS OWL DC);

               my %CONFIG = (
                   Namespaces    => {
                       rdf  => "$RDF",
                       rdfs => "$RDFS",
                       owl  => "$OWL",
                       foaf => "$FOAF",
                   },
                   ExpandQNames => 1,
               );

               # or the uri() method

               my $foaf = XML::CommonNS->uri('FOAF');

See Also