https://bugs.documentfoundation.org/show_bug.cgi?id=150137

--- Comment #3 from Amar <amar.cut...@gmail.com> ---
So what's the expected behavior? 
I've created a test case and it fails with the fast parser and provided xml. 
If I pass the IgnoreMissingNSDecl arg (which was implemented in the mentioned
commit), then it's not failing anymore. Should m_bIgnoreMissingNSDecl in
fastparser.cxx by default be set to true instead of false? 
I am missing the big picture here, as I just started with the project.

The exception raising part is this:
> if( !nNamespace && !m_bIgnoreMissingNSDecl )
>     throw SAXException("No namespace defined for " + 
> OUString(XML_CAST(pPrefix),
>                   nPrefixLen, RTL_TEXTENCODING_UTF8), Reference< XInterface 
> >(), Any());

and it actually never gets into:
>   if ( !m_bIgnoreMissingNSDecl || URI != nullptr )
>       sNamespace = OUString( XML_CAST( URI ), strlen( XML_CAST( URI )), 
> RTL_TEXTENCODING_UTF8 )
or the else case

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to