Translates the two arguments into one compact string representation of
the node id.
|<B>pack_typeB>( [$ns], $localname )||
Translates the arguments into one compact string representation of
the node type. When the $ns is not present, undef, or an
empty string, then no namespace is presumed, and no curly braces
|<B>unpack_idB>($string)||Returns a LIST of two elements: the name-space and the id, as included in the $string. That $string must be compatible with the result of pack_id().|
|<B>unpack_typeB>($string)||Returns a LIST of two elements: the name-space and the localname, as included in the $string. That $string must be compatible with the result of pack_type(). When no name-space is present, an empty string is used.|
<B>add_durationB>( $duration, [$time] ) [1.44] Add the $duration to the $time (defaults to now) This is an expensive operation: in many cases the duration2secs() produces useful results as well.
my $now = time; my $deadline = add_duration P1M, $now; # deadline in 1 month
<B>duration2secsB>($duration) [1.44] Translate any format into seconds. This is an example of a valid duration: -PT1M30.5S Average month and year lengths are used. If you need more precise calculations, then use add_duration(). <B>even_elementsB>(LIST) Returns the even-numbered elements from the LIST. <B>odd_elementsB>(LIST) Returns the odd-numbered elements from the LIST. <B>type_of_nodeB>($node) Translate an XML::LibXML::Node into a packed type.
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
|perl v5.20.3||XML::COMPILE::UTIL (3)||2016-01-15|