Author |
Message
|
lee.michael |
Posted: Fri Oct 17, 2008 11:42 am Post subject: about encoding |
|
|
Novice
Joined: 29 Jan 2008 Posts: 10
|
Hi,
I am trying to generate the following xml declaration in mapping node.
How can I get <?xml version="1.0" encoding="Big5"?> instead of <?xml version="1.0" encoding="ibm-950_P110-1999"?> |
|
Back to top |
|
 |
kimbert |
Posted: Fri Oct 17, 2008 1:12 pm Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
I don't think you can do this in the Mapping node, but I may be wrong.
You can definitely do it in a Compute/JavaCompute node ( in the XMLNS/XMLNSC domains ). |
|
Back to top |
|
 |
lee.michael |
Posted: Sat Oct 18, 2008 5:29 am Post subject: |
|
|
Novice
Joined: 29 Jan 2008 Posts: 10
|
Thanks for your response.
I received xml message(UTF- from source and mapping to MRM target. But i need to change encoding UTF-8 to Big5.So i setting OutputRoot.Properties.CodedCharSetId = 950. But it output follow.
<?xml version="1.0" encoding="ibm-950_P110-1999"?>
<Map_Message xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xml="http://www.w3.org/XML/1998/namespace>
<Map_Header>
<from>source</from>
<to>destination</to>
</addressing>
</Map_Header>
<Map_Body>
<TableA>
<col1>460</col1>
<col2>7402</col2>
</TableA>
</Map_Body>
</Map_Message>
I need to follow message.
<?xml version="1.0" encoding="Big5"?>
<Map_Message xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xml="http://www.w3.org/XML/1998/namespace>
<Map_Header>
<from>source</from>
<to>destination</to>
</addressing>
</Map_Header>
<Map_Body>
<TableA>
<col1>460</col1>
<col2>7402</col2>
</TableA>
</Map_Body>
</Map_Message>
Anybody help me? Thanks. |
|
Back to top |
|
 |
lee.michael |
Posted: Sun Oct 19, 2008 10:12 pm Post subject: |
|
|
Novice
Joined: 29 Jan 2008 Posts: 10
|
|
Back to top |
|
 |
kimbert |
Posted: Mon Oct 20, 2008 1:37 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
The MRM parser does not allow you to control the encoding attribute. If you need that level of control over the output, you need to switch to XMLNSC.
If you're on v6.1 you really should do that anyway. Even if you're on v6, you will use less CPU and get more control over the output by switching over to XMLNSC. |
|
Back to top |
|
 |
lee.michael |
Posted: Mon Oct 20, 2008 9:04 pm Post subject: |
|
|
Novice
Joined: 29 Jan 2008 Posts: 10
|
kimbert thank you for your help. |
|
Back to top |
|
 |
|