NAME

XML::Genx::Constants - constants for genx

SYNOPSIS

use XML::Genx::Constants qw( GENX_SEQUENCE_ERROR );
my $w = XML::Genx->new;
eval { $w->EndDocument };
die "programmer error"
  if $@ && $w->LastErrorCode == GENX_SEQUENCE_ERROR;

DESCRIPTION

This module provides constants for use with XML::Genx. They are mostly used for verifying which exception that has been thrown.

EXPORTS

The following constants are available for exporting.

GENX_SUCCESS
GENX_BAD_UTF8
GENX_NON_XML_CHARACTER
GENX_BAD_NAME
GENX_ALLOC_FAILED
GENX_BAD_NAMESPACE_NAME
GENX_INTERNAL_ERROR
GENX_DUPLICATE_PREFIX
GENX_SEQUENCE_ERROR
GENX_NO_START_TAG
GENX_IO_ERROR
GENX_MISSING_VALUE
GENX_MALFORMED_COMMENT
GENX_XML_PI_TARGET
GENX_MALFORMED_PI
GENX_DUPLICATE_ATTRIBUTE
GENX_ATTRIBUTE_IN_DEFAULT_NAMESPACE
GENX_DUPLICATE_NAMESPACE
GENX_BAD_DEFAULT_DECLARATION

SEE ALSO

XML::Genx, XML::Genx::Simple.

A full explanation of what the constants mean is at http://www.tbray.org/ongoing/When/200x/2004/02/20/GenxStatus#declarations.

AUTHOR

Dominic Mitchell, <cpan (at) happygiraffe.net>

The genx library was created by Tim Bray http://www.tbray.org/.

COPYRIGHT AND LICENSE

Copyright (C) 2004 by Dominic Mitchell. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

The genx library is:

Copyright (c) 2004 by Tim Bray and Sun Microsystems. For copying permission, see http://www.tbray.org/ongoing/genx/COPYING.

VERSION

@(#) $Id: Constants.pm 1270 2006-10-08 17:29:33Z dom $