Re: .net 6.0 XSD validator bug

Jirka Kosek <[email protected]>
Newsgroups gmane.text.xml.devel
Message-ID <[email protected]>
On 27.03.2022 16:14, Mukul Gandhi wrote:
> Does anyone else also feels that, the XML schema validation example I've
> cited above, is a bug with .net XSD validator? As of .net 6.0, is there any
> workaround to get the above cited example working, according to XML schema
> 1.0 spec.

Perhaps not a bug but inconvenient behaviour.

If you change namespace of your XML instance then validator can't find 
schema for this namespace. And in this situation validator behaviour 
varies -- some will complain about missing declarations and some will 
skip validation of element for which there is no corresponding schema 
declaration.

-- 
------------------------------------------------------------------
   Jirka Kosek      e-mail: [email protected]      http://xmlguru.cz
------------------------------------------------------------------
      Professional XML and Web consulting and training services
DocBook/DITA customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
     Bringing you XML Prague conference    http://xmlprague.cz
------------------------------------------------------------------
OpenPGP_signature (application/pgp-signature, 203 B) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.