XML-LibXML-CData-Bug-Reproduce / t / 21types.t


# Copyrights 2006-2012 by [Mark Overmeer].
#  For other contributors see ChangeLog.
# See the manual pages for details on the licensing terms.
# Pod stripped from pm file by OODoc 2.00.
use warnings;
use strict;

use XML::Compile::Schema;

use Data::Dumper qw/Dumper/;

our $TestNS    = 'http://test-types';
our $SchemaNS  =  'http://www.w3.org/2001/XMLSchema';

my $schema   = XML::Compile::Schema->new( <<"__SCHEMA__" );
<schema xmlns="$SchemaNS"

<element name="test1" type="int" />
<element name="test2" type="boolean" />
<element name="test3" type="float" />
<element name="test4" type="NMTOKENS" />
<element name="test5" type="positiveInteger" />
<element name="test6" type="base64Binary" />
<element name="test7" type="dateTime" />
<element name="test8" type="duration" />
<element name="test9" type="hexBinary" />
<element name="testA" type="string" />


my @compile_defaults = (elements_qualified => 'NONE');

my $h2 = XML::LibXML::CDATASection->new('abc');

my $test = 'testA';

my $type = "{$TestNS}$test";
{ no strict; eval Dumper $h2 }
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.