castor
  1. castor
  2. CASTOR-1145

Marshaller ignoring setSuppressXSIType

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 0.9.6
    • Fix Version/s: None
    • Component/s: XML
    • Labels:
      None
    • Number of attachments :
      0

      Description

      We're using Castor 0.9.6 and the Marshaller seems to be ignoring the following suppress statements:

      Marshaller marshaller = new Marshaller(root);
      marshaller.setSuppressXSIType(true);
      marshaller.setSuppressNamespaces(true);

      For example when we marshall objects using the above marshaller we still get XML that looks like this:

      <url xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="java:gs.feed.local.url.Url">
      <type>Some web page</type>
      </url>

      when I would expect it to look like this:

      <url>
      <type>Some web page</type>
      </url>

      Any suggestions?

        Issue Links

          Activity

          Hide
          Todd Huss added a comment -

          You can close this. We were using the static methods:

          http://www.mail-archive.com/user@castor.codehaus.org/msg00611.html

          Show
          Todd Huss added a comment - You can close this. We were using the static methods: http://www.mail-archive.com/user@castor.codehaus.org/msg00611.html

            People

            • Assignee:
              Unassigned
              Reporter:
              Todd Huss
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: