Debian Codegraph @

README

raw
1 NAME
2 XML::Namespace - Simple support for XML Namespaces
3
4 SYNOPSIS
5 Example 1: using XML::Namespace objects
6
7 use XML::Namespace;
8
9 my $xsd = XML::Namespace->new('http://www.w3.org/2001/XMLSchema#');
10
11 # explicit access via the uri() method
12 print $xsd->uri(); # http://www.w3.org/2001/XMLSchema#
13 print $xsd->uri('integer'); # http://www.w3.org/2001/XMLSchema#integer
14
15 # implicit access through AUTOLOAD method
16 print $xsd->integer; # http://www.w3.org/2001/XMLSchema#integer
17
18 Example 2: importing XML::Namespace objects
19
20 use XML::Namespace
21 xsd => 'http://www.w3.org/2001/XMLSchema#',
22 rdf => 'http://www.w3.org/1999/02/22-rdf-syntax-ns#';
23
24 # xsd and rdf are imported subroutines that return
25 # XML::Namespace objects which can be used as above
26
27 print xsd->uri('integer'); # http://www.w3.org/2001/XMLSchema#integer
28 print xsd->integer; # http://www.w3.org/2001/XMLSchema#integer
29
30 DESCRIPTION
31 This module implements a simple object for representing XML Namespaces
32 in Perl. It provides little more than some syntactic sugar for your Perl
33 programs, saving you the bother of typing lots of long-winded URIs. It
34 was inspired by the Class::RDF::NS module distributed as part of
35 Class::RDF.
36
37 For further details, please see the documentation accompanying the module.
38
39 AUTHOR
40 Andy Wardley <mailto:[email protected]>
41
42 VERSION
43
44 This is version 0.02 of XML::Namespace.
45
46 COPYRIGHT
47 Copyright (C) 2005 Andy Wardley. All Rights Reserved.
48
49 This module is free software; you can redistribute it and/or modify it
50 under the same terms as Perl itself.
51