XML::Compile::Schema::NameSpaces
Connect name-spaces from schemas
- Provided by: libxml-compile-perl (Version: 1.52-1)
- Report a bug
Connect name-spaces from schemas
# Used internally by XML::Compile::Schema my $nss = XML::Compile::Schema::NameSpaces->new; $nss->add($schema);
This module keeps overview on a set of namespaces, collected from various schema files. Per XML namespace, it will collect a list of fragments which contain definitions for the namespace, each fragment comes from a different source. These fragments are searched in reverse order when an element or type is looked up (the last definitions overrule the older definitions).
-Option --Default
include_used <true>
In reality, the locations mentioned are often wrong. But when you think you want to load all schema's dynamically at start-up (no, you do not want it but it is a SOAP paradigma) then you get that info easily with this method.
-Option --Default
include_used <true>
namespace <ALL>
example:
my $nss = $schema->namespaces; $nss->printIndex(\*MYFILE); $nss->printIndex(namespace => "my namespace"); # types defined in the wsdl schema use XML::Compile::SOAP::Util qw/WSDL11/; $nss->printIndex(\*STDERR, namespace => WSDL11);
Returns the list of all used OBJECTS. This method implements XML::Compile::Schema::useSchema().
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