The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

XML::Compile::Schema::Instance - Represents one schema

SYNOPSIS

 # Used internally by XML::Compile::Schema
 my $schema = XML::Compile::Schema::Instance->new($xml);

DESCRIPTION

This module collect information from one schema, and helps to process it.

METHODS

Constructors

$obj->new(TOP, OPTIONS)

    Get's the top of an XML::LibXML tree, which must be a schema element. The tree is parsed: the information collected.

Accessors

$obj->element(URI)

    Returns one global element definition.

$obj->elements

    Returns a list of all globally defined element names.

$obj->ids

    Returns a list of all found ids.

$obj->schemaInstance

$obj->schemaNamespace

$obj->targetNamespace

$obj->type(URI)

    Returns the type definition with the specified name.

$obj->types

    Returns a list of all used names.

Index

$obj->printIndex([FILEHANDLE])

    Prints an overview over the defined objects within this schema to the selected FILEHANDLE.

REFERENCES

See the XML::Compile website at http://perl.overmeer.net/xml-compile/ for more details.

COPYRIGHTS

Module version 0.05. Written by Mark Overmeer (mark@overmeer.net). See the ChangeLog for other contributors.

Copyright (c) 2006 by the author(s). All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.