[Xml-compile] XML to parse does not contain a namespace
Karen Etheridge
perl at froods.org
Wed Nov 14 19:25:04 GMT 2012
On Wed, Nov 14, 2012 at 11:20:27AM +0100, Mark Overmeer wrote:
> * Karen Etheridge (perl at froods.org) [121113 19:03]:
> > On Sun, Nov 11, 2012 at 11:37:18PM +0100, Mark Overmeer wrote:
> > > Many abuse namespaces.
> > > What about overruling the form?
> > >
> > > my $schema = XML::Compile::Cache->new($xsdfn
> > > , element_form_default => 'unqualified');
> >
> > That doesn't seem sufficient.
>
> Ah. Yes... this only changes the definition, not the usage of the
> namespace.
> my $schema = XML::Compile::Cache->new($xsd);
> my $reader = $schema->compile
> ( READER => pack_type('http://www.w3schools.com', 'Foo'),
> , elements_qualified => 'NONE'
> );
Perfect, thanks! :)
More information about the Xml-compile
mailing list