Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLONE -JibxMarshaller - marshalSaxHandlers [SWS-445] #587

Closed
gregturn opened this issue Nov 10, 2008 · 2 comments
Closed

CLONE -JibxMarshaller - marshalSaxHandlers [SWS-445] #587

gregturn opened this issue Nov 10, 2008 · 2 comments

Comments

@gregturn
Copy link
Member

@gregturn gregturn commented Nov 10, 2008

Aschauer Maria opened SWS-445 and commented

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


Affects: 1.5.4

Issue Links:

  • SWS-434 JibxMarshaller - marshalSaxHandlers
    ("duplicates")
@gregturn
Copy link
Member Author

@gregturn gregturn commented Nov 10, 2008

Aschauer Maria commented

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?

@gregturn
Copy link
Member Author

@gregturn gregturn commented May 4, 2012

Arjen Poutsma commented

Closing old issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.