Class MultiXSDSchemaLoosener

java.lang.Object
com.peterphi.std.util.jaxb.MultiXSDSchemaLoosener

public class MultiXSDSchemaLoosener extends Object
Utility class that loosens any xsd:any constraint where namespace="##other" to namespace="##any" (because JAXB cannot represent namespace="##any" with XmlAnyElement, so the generated schemas are often over-constrained as a result)
  • Constructor Details

    • MultiXSDSchemaLoosener

      public MultiXSDSchemaLoosener()
  • Method Details

    • loosenXmlAnyOtherNamespaceToXmlAnyAnyNamespace

      public static void loosenXmlAnyOtherNamespaceToXmlAnyAnyNamespace(MultiXSDSchemaFiles files)
    • loosenXmlAnyOtherNamespaceToXmlAnyAnyNamespace

      public static void loosenXmlAnyOtherNamespaceToXmlAnyAnyNamespace(Node node)
      Try to loosen any xsd:any constraint where namespace="##other" to namespace="##any" (because JAXB cannot represent namespace="##any", the generated schemas are often over-constrained as a result)
      Parameters:
      node -