Author |
Message
|
PEPERO |
Posted: Sun Sep 09, 2012 11:16 pm Post subject: toBitstream API |
|
|
Disciple
Joined: 30 May 2011 Posts: 177
|
Hi all;
When using the toBitstream java API against an XMLNSC message body , all the element names and values would be serialized. is it possible to have only the element values ?  |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Sep 10, 2012 12:00 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
The XMLNSC parser produces only XML documents.
What you're asking for would not be an XML document.
So you need to construct an MRM or DFDL model and use that instead of the XMLNSC parser. |
|
Back to top |
|
 |
PEPERO |
Posted: Mon Sep 10, 2012 12:11 am Post subject: |
|
|
Disciple
Joined: 30 May 2011 Posts: 177
|
Even using the MRM , the serializing would be made at the physical message format when it is propagated. i mean using the toBitstream API against an MRM message tree would have also the element names. |
|
Back to top |
|
 |
kimbert |
Posted: Mon Sep 10, 2012 12:42 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Quote: |
i mean using the toBitstream API against an MRM message tree would have also the element names. |
Why do you think that? |
|
Back to top |
|
 |
PEPERO |
Posted: Mon Sep 10, 2012 2:09 am Post subject: |
|
|
Disciple
Joined: 30 May 2011 Posts: 177
|
Sorry. I was making a mistake. I was using the XML message format in calling the toBiststream method and when i changed it to use the Binary , it has been fixed.
Thanks for the helps. |
|
Back to top |
|
 |
kimbert |
Posted: Mon Sep 10, 2012 2:48 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Quote: |
I was using the XML message format in calling the toBiststream method and when i changed it to use the Binary , it has been fixed. |
Here's a tip for you. Delete the XML physical format from your message set. In a new message flow you should never parse or write XML using the MRM parser - use XMLNSC for that.
btw, XMLNSC does not use the physical format information in a message set. That's for MRM only. XMLNSC uses the logical ( xsd ) information only. |
|
Back to top |
|
 |
|