Uploaded image for project: 'XMLBeans'
  1. XMLBeans
  2. XMLBEANS-56

Expected element namespace@http://xml.apache.org/xmlbeans/2004/02/xbean/config instead of extension@http://xml.apache.org/xmlbeans/2004/02/xbean/config

    XMLWordPrintableJSON

Details

    Description

      Created following config file:

      <xb:config xmlns:xb="http://xml.apache.org/xmlbeans/2004/02/xbean/config"
      xmlns:ep="http://openuri.org/easypo">

      <xb:namespace uri="http://openuri.org/easypo">
      <xb:package>com.easypo</xb:package>
      </xb:namespace>

      <xb:namespace uri="##any">
      <xb:prefix>Xml</xb:prefix>
      <xb:suffix>Bean</xb:suffix>
      </xb:namespace>

      <xb:extension for="com.easypo.XmlCustomerBean">
      <xb:interface name="myPackage.Foo">
      <xb:staticHandler>myPackage.FooHandler</xb:staticHandler>
      </xb:interface>
      </xb:extension>

      <xb:qname name="ep:purchase-order" javaname="purchaseOrderXXX"/>

      </xb:config>

      Getting following error message while running scomp as follows:

      C:\xmlbeans\xmlbeans-1.0.3\schemas\easypo>scomp -src C:\xmlbeans\xmlbeans-1.0.3\
      schemas\easypo\test C:\xmlbeans\xmlbeans-1.0.3\schemas\easypo\easypo.xsd -out te
      st.jar C:\xmlbeans\xmlbeans-1.0.3\schemas\easypo\easypo.xsdconfig
      easypo.xsdconfig:0: error: Expected element namespace@http://xml.apache.org/xmlb
      eans/2004/02/xbean/config instead of extension@http://xml.apache.org/xmlbeans/20
      04/02/xbean/config here in element config@http://xml.apache.org/xmlbeans/2004/02
      /xbean/config
      Time to build schema type system: 1.332 seconds
      BUILD FAILED

      Attachments

        Activity

          People

            jacobd Jacob Danner
            ritesh101 Mehul Jasani
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: