1XML::CommonNS(3)      User Contributed Perl Documentation     XML::CommonNS(3)
2
3
4

NAME

6       XML::CommonNS - A list of commonly used namespaces
7

SYNOPSIS

9               # import $RDF, $RDFS, $OWL, $DC
10               use XML::CommonNS qw(RDF RDFS OWL DC);
11
12               my %CONFIG = (
13                   Namespaces    => {
14                       rdf  => "$RDF",
15                       rdfs => "$RDFS",
16                       owl  => "$OWL",
17                       foaf => "$FOAF",
18                   },
19                   ExpandQNames => 1,
20               );
21
22               # or the uri() method
23
24               my $foaf = XML::CommonNS->uri('FOAF');
25

DESCRIPTION All you need do to use this module is import the namespaces you

27       want from the list below. All of those will then become available to
28       you. They are XML::NamespaceFactory object and can thus be used both as
29       simple strings and as XML::NamespaceFactory objects. See
30       XML::NamespaceFactory for how that may help you.
31
32       I hesitated for a while before releasing this module. As a directory of
33       namespaces that can't (and almost certainly shouldn't) be exhaustive,
34       it implies editorial decisions and I wasn't certain it was CPAN worthy.
35       However, after getting really tired of tracking down namespaces in
36       every single small XML muning script I made, I wrote it for myself.
37       After a while using it, I don't see why others wouldn't find it useful
38       as well.
39

NAMESPACES

41       The currently available namespaces are listed below. Should you
42       consider one worthy of addition (it needs to be common enough) please
43       simply notify me. Those marked with a start are subject to change. I
44       WILL change them when the corresponding specification changes.
45
46               XML             http://www.w3.org/XML/1998/namespace
47               XMLNS           http://www.w3.org/2000/xmlns/
48               XLINK           http://www.w3.org/1999/xlink
49               SVG             http://www.w3.org/2000/svg
50               XHTML           http://www.w3.org/1999/xhtml
51               XHTML2          http://www.w3.org/2002/06/xhtml2
52               XFORMS          http://www.w3.org/2002/xforms/cr
53               XMLEVENTS       http://www.w3.org/2001/xml-events
54               DC                      http://purl.org/dc/elements/1.1/
55               DC_TERMS        http://purl.org/dc/terms/
56               RDF             http://www.w3.org/1999/02/22-rdf-syntax-ns#
57               RDFS            http://www.w3.org/2000/01/rdf-schema#
58               OWL                     http://www.w3.org/2002/07/owl#
59               FOAF        http://xmlns.com/foaf/0.1/
60               REL             http://purl.org/vocab/relationship/
61               RSS1        http://purl.org/rss/1.0/
62               COMMENTS        http://purl.org/net/rssmodules/blogcomments/
63               SYN                 http://purl.org/rss/1.0/modules/syndication/
64               RNG             http://relaxng.org/ns/structure/1.0
65               XSD             http://www.w3.org/2001/XMLSchema
66               XSI             http://www.w3.org/2001/XMLSchema-instance
67               MATHML          http://www.w3.org/1998/Math/MathML
68               XSLT            http://www.w3.org/1999/XSL/Transform
69               XSLFO           http://www.w3.org/1999/XSL/Format
70               SOAPENC11       http://schemas.xmlsoap.org/soap/encoding/
71               SOAPENV11       http://schemas.xmlsoap.org/soap/envelope/
72               SOAPENC12       http://www.w3.org/2003/05/soap-encoding
73               SOAPENV12       http://www.w3.org/2003/05/soap-envelope
74               WSDL11          http://schemas.xmlsoap.org/wsdl/
75               WSDL12          http://www.w3.org/2003/06/wsdl
76

METHODS

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

AUTHOR

82       Chris Prather, <chris@prather.org> Robin Berjon,
83       <robin.berjon@expway.fr>
84
86       Copyright 2003 by Robin Berjon
87
88       This library is free software; you can redistribute it and/or modify it
89       under the same terms as Perl itself.
90
91
92
93perl v5.36.0                      2022-07-22                  XML::CommonNS(3)
Impressum