JiBX
  1. JiBX
  2. JIBX-94

incorrect handling of namespace bound to multiple prefixes

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.0-RC2
    • Fix Version/s: None
    • Component/s: core
    • Labels:
      None
    • Environment:
      jdk 1.5
    • Number of attachments :
      0

      Description

      Unmarshaller does not handle correctly attributes when the same namespace is bound to multiple prefixes. Unmarshalling:

      <config r:version="1.1" xmlns="urn:a" xmlns:r="urn:a"/>

      causes:

      Exception in thread "main" org.jibx.runtime.JiBXException: Missing required attribute "version" (line 2, col 141)
      at org.jibx.runtime.impl.UnmarshallingContext.attributeText(Unknown Source)

      The namespace support seams to broken .

      A typical authoring style for version attribute (well, at least in schemas for j2ee configs) is to require its qualification (using form="qualified" in XML Schema).

        Activity

        Hide
        Dennis Sosnoski added a comment -

        You'll need to add at least your binding definition and preferably a full example with build.xml to demonstrate the problem if you want to get help with this. Although it's possible that this does represent a real problem. based on the exception thrown I'd suspect the binding definition is in error.

        Show
        Dennis Sosnoski added a comment - You'll need to add at least your binding definition and preferably a full example with build.xml to demonstrate the problem if you want to get help with this. Although it's possible that this does represent a real problem. based on the exception thrown I'd suspect the binding definition is in error.

          People

          • Assignee:
            Dennis Sosnoski
            Reporter:
            Maros Ivanco
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: