XML::Compile::Util
Utility routines for XML::Compile components
- Provided by: libxml-compile-perl (Version: 1.52-1)
- Report a bug
Utility routines for XML::Compile components
XML::Compile::Util is a Exporter
use XML::Compile::Util; my $node_type = pack_type $ns, $localname; my ($ns, $localname) = unpack_type $node_type;
The functions provided by this package are used by various XML::Compile components, which on their own may be unrelated.
The following URIs are exported as constants, to avoid typing in the same long URIs each time again: XMLNS, SCHEMA1999, SCHEMA2000, SCHEMA2001, and SCHEMA2001i.
example:
print pack_id 'http://my-ns', 'my-id';
# shows: http://my-ns#my-id
example:
print pack_type 'http://my-ns', 'my-type';
# shows: {http://my-ns}my-type
print pack_type 'my-type';
print pack_type undef, 'my-type';
print pack_type '', 'my-type';
# all three show: my-type
example:
my $now = time;
my $deadline = add_duration 'P1M', $now; # deadline in 1 month
This module is part of XML-Compile distribution version 1.52, built on January 15, 2016. Website: http://perl.overmeer.net/xml-compile/
Other distributions in this suite: XML::Compile, XML::Compile::SOAP, XML::Compile::WSDL11, XML::Compile::SOAP12, XML::Compile::SOAP::Daemon, XML::Compile::SOAP::WSA, XML::Compile::C14N, XML::Compile::WSS, XML::Compile::WSS::Signature, XML::Compile::Tester, XML::Compile::Cache, XML::Compile::Dumper, XML::Compile::RPC, XML::Rewrite and XML::LibXML::Simple.
Please post questions or ideas to the mailinglist at http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/xml-compile . For live contact with other developers, visit the "#xml-compile" channel on "irc.perl.org".
Copyrights 2006-2016 by [Mark Overmeer]. For other contributors see ChangeLog.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://www.perl.com/perl/misc/Artistic.html