Nodes in an XML Document
You can probably preprocess the wrong XML file, for example with this simple XSL stylesheet:
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="no"/>
<xsl:template match="Roookie">
<Rookie>
<xsl:apply-templates select="@*|node()" />
</Rookie>
</xsl:template>
<xsl:template match="@*|node()" name="defaultRule">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
source to share
Just change your schema to accept the choice between two nodes (Rookie or Roookie), not just 1 node named Rookie. Both nodes are of the same type. Of course, if Roo (o) kie has complex content, then you need to declare a complex type for that content to avoid duplicating the entire structure of the two elements.
source to share
Onyl's answer is to change the bad message. Xsd is a contract and must be respected through dispatch systems. If you do not have this control over the feeding systems, I would suggest making a second circuit with a new name and taking into account its spelling error. I'll start modifying your contract / xsd for every error in the post, you will increase the complexity and decrease the maintainability.
source to share