File: README

package info (click to toggle)
libxml-namespace-perl 0.02-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 92 kB
  • ctags: 8
  • sloc: perl: 86; makefile: 7
file content (51 lines) | stat: -rw-r--r-- 1,727 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
NAME
    XML::Namespace - Simple support for XML Namespaces

SYNOPSIS
     Example 1: using XML::Namespace objects

        use XML::Namespace;

        my $xsd = XML::Namespace->new('http://www.w3.org/2001/XMLSchema#');

        # explicit access via the uri() method
        print $xsd->uri();           # http://www.w3.org/2001/XMLSchema#
        print $xsd->uri('integer');  # http://www.w3.org/2001/XMLSchema#integer

        # implicit access through AUTOLOAD method
        print $xsd->integer;         # http://www.w3.org/2001/XMLSchema#integer

     Example 2: importing XML::Namespace objects

        use XML::Namespace
            xsd => 'http://www.w3.org/2001/XMLSchema#',
            rdf => 'http://www.w3.org/1999/02/22-rdf-syntax-ns#';

        # xsd and rdf are imported subroutines that return
        # XML::Namespace objects which can be used as above

        print xsd->uri('integer');   # http://www.w3.org/2001/XMLSchema#integer
        print xsd->integer;          # http://www.w3.org/2001/XMLSchema#integer

DESCRIPTION
    This module implements a simple object for representing XML Namespaces
    in Perl. It provides little more than some syntactic sugar for your Perl
    programs, saving you the bother of typing lots of long-winded URIs. It
    was inspired by the Class::RDF::NS module distributed as part of
    Class::RDF.

    For further details, please see the documentation accompanying the module.

AUTHOR
    Andy Wardley <mailto:abw@cpan.org>

VERSION

    This is version 0.02 of XML::Namespace.

COPYRIGHT
    Copyright (C) 2005 Andy Wardley. All Rights Reserved.

    This module is free software; you can redistribute it and/or modify it
    under the same terms as Perl itself.