Uploaded image for project: 'Spring Web Services'
  1. Spring Web Services
  2. SWS-445

CLONE -JibxMarshaller - marshalSaxHandlers

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 1.5.4
    • Fix Version/s: None
    • 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

          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?
          Hide
          arjen.poutsma Arjen Poutsma added a comment -

          Closing old issues

          Show
          arjen.poutsma Arjen Poutsma added a comment - Closing old issues

            People

            • Assignee:
              arjen.poutsma Arjen Poutsma
              Reporter:
              mariaaschauer Aschauer Maria
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: