Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.4
    • Fix Version/s: 1.5.6
    • Component/s: OXM
    • Labels:
      None

      Description

      JiBX does not support SAX natively, so there is written to a buffer first:

      ByteArrayOutputStream os = new ByteArrayOutputStream();
      marshalOutputStream(graph, os);
      ByteArrayInputStream is = new ByteArrayInputStream(os.toByteArray());

      the character < results in &<; and not in < as expected.

      http://forum.springframework.org/showthread.php?t=55407&highlight=SAXResult

        Issue Links

          Activity

          mariaaschauer Aschauer Maria created issue -
          Hide
          arjen.poutsma Arjen Poutsma added a comment -

          Sadly, this seems to be a JiBX bug, and there is very little I can do about it.

          Show
          arjen.poutsma Arjen Poutsma added a comment - Sadly, this seems to be a JiBX bug, and there is very little I can do about it.
          arjen.poutsma Arjen Poutsma made changes -
          Field Original Value New Value
          Resolution Won't Fix [ 2 ]
          Status Open [ 1 ] Resolved [ 5 ]
          Hide
          mariaaschauer Aschauer Maria added a comment -

          I don't think it's a jibx bug because the following code line

          marshalOutputStream(graph, os);

          writes the correct result to 'os'. later on after the transformation the behavior mentioned above occurs.

          Transformer transformer = transformerFactory.newTransformer();
          SAXResult saxResult = new SAXResult(contentHandler);
          saxResult.setLexicalHandler(lexicalHandler);
          transformer.transform(new StreamSource(is), saxResult);

          maybe it's a transformation problem?

          Show
          mariaaschauer Aschauer Maria added a comment - I don't think it's a jibx bug because the following code line marshalOutputStream(graph, os); writes the correct result to 'os'. later on after the transformation the behavior mentioned above occurs. Transformer transformer = transformerFactory.newTransformer(); SAXResult saxResult = new SAXResult(contentHandler); saxResult.setLexicalHandler(lexicalHandler); transformer.transform(new StreamSource(is), saxResult); maybe it's a transformation problem?
          arjen.poutsma Arjen Poutsma made changes -
          Link This issue is duplicated by SWS-445 [ SWS-445 ]
          arjen.poutsma Arjen Poutsma made changes -
          Status Resolved [ 5 ] Reopened [ 4 ]
          Resolution Won't Fix [ 2 ]
          arjen.poutsma Arjen Poutsma made changes -
          Fix Version/s 1.5.6 [ 11141 ]
          arjen.poutsma Arjen Poutsma made changes -
          Assignee Arjen Poutsma [ arjen.poutsma ] Tareq Abed Rabbo [ tareq ]
          arjen.poutsma Arjen Poutsma made changes -
          Link This issue is related to SWS-455 [ SWS-455 ]
          tareq Tareq Abedrabbo made changes -
          Status Reopened [ 4 ] In Progress [ 3 ]
          Hide
          tareq Tareq Abedrabbo added a comment -

          The problem lies in how AxiomHandler processes predefined entity reference. The patch adds a test for those references in the startEntity method.

          Show
          tareq Tareq Abedrabbo added a comment - The problem lies in how AxiomHandler processes predefined entity reference. The patch adds a test for those references in the startEntity method.
          tareq Tareq Abedrabbo made changes -
          Attachment SWS-434.patch [ 14952 ]
          Hide
          arjen.poutsma Arjen Poutsma added a comment -

          Fixed. Thanks for the patch, Tareq!

          Show
          arjen.poutsma Arjen Poutsma added a comment - Fixed. Thanks for the patch, Tareq!
          arjen.poutsma Arjen Poutsma made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          arjen.poutsma Arjen Poutsma made changes -
          Link This issue is related to SWS-455 [ SWS-455 ]
          arjen.poutsma Arjen Poutsma made changes -
          Link This issue is duplicated by SWS-455 [ SWS-455 ]
          Hide
          arjen.poutsma Arjen Poutsma added a comment -

          Closing old issues

          Show
          arjen.poutsma Arjen Poutsma added a comment - Closing old issues
          arjen.poutsma Arjen Poutsma made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Resolved Resolved
          2d 2h 38m 1 Arjen Poutsma 03/Oct/08 10:26 PM
          Resolved Resolved Reopened Reopened
          39d 22h 58m 1 Arjen Poutsma 12/Nov/08 9:25 PM
          Reopened Reopened In Progress In Progress
          28d 12h 19m 1 Tareq Abedrabbo 11/Dec/08 9:44 AM
          In Progress In Progress Resolved Resolved
          1d 12h 15m 1 Arjen Poutsma 12/Dec/08 9:59 PM
          Resolved Resolved Closed Closed
          1238d 9h 3m 1 Arjen Poutsma 04/May/12 7:03 AM

            People

            • Assignee:
              tareq Tareq Abedrabbo
              Reporter:
              mariaaschauer Aschauer Maria
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: