Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-8433

Camel XSD lacks Root Elements, does not generate round-trip Marshal/Unmarshal

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 2.14.1
    • None
    • None
    • Patch Available
    • Novice

    Description

      using xjc on the provided XSD file enclosing CamelContextFactory within a spring Beans XSD proxy creates an element "<CamelContextFactory>" instead of element "<camelContext>".

      additionally the Schema lacks root level element declarations and so the user of the generated beans is forced to hand-edit the generated output to insert @XmlRootElement("camelContext") in the camelContextFactoryBean generated bean.

      the solution is shown in github patch https://github.com/jnorthrup/xcaml/commit/531f042d8f8d5835a3030d6d8c1e6c3608c7b585?w=1 along with other xjc descriptor amenities to successfully generate proxies that have elements sharing symbol names with attributes

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            jimn235 Jim Northrup
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 5m
                5m
                Remaining:
                Remaining Estimate - 5m
                5m
                Logged:
                Time Spent - Not Specified
                Not Specified