[Xml-compile] XML to parse does not contain a namespace

Mark Overmeer mark at overmeer.net
Sun Nov 11 22:37:18 GMT 2012


* Karen Etheridge (perl at froods.org) [121110 00:45]:
> I am attempting to parse XML with an XSD, but the XML does not contain an
> xmlns attribute.  Is there any remedy to tell the compiled reader what the
> target namespace is of all the elements being read in?

Many abuse namespaces.
What about overruling the form?

  my $schema = XML::Compile::Cache->new($xsdfn
    , element_form_default => 'unqualified');
-- 
Success,
               MarkOv

------------------------------------------------------------------------
       Mark Overmeer MSc                                MARKOV Solutions
       Mark at Overmeer.net                          solutions at overmeer.net
http://Mark.Overmeer.net                   http://solutions.overmeer.net




More information about the Xml-compile mailing list