Author |
Message
|
Bharat |
Posted: Tue May 14, 2002 9:33 am Post subject: ascii values to use in xml file transformation |
|
|
 Acolyte
Joined: 14 May 2002 Posts: 61 Location: Reston, VA, USA
|
Hi,
I have an existing subflow that converts XML to BLOB using RCD nodes and then does some kind of transformation and converts back to XML files.
While transforming, in that compute node, ascii values were used to replace some tags with other required tags.
For ex:
SET find_seq = x'3C3F786D6C2076657273696F6E3D27312E30273F3E'; /* ascii value:<?xml version='1.0'?>*/
SET replace_seq = x'3C76657273696F6E786D6C3E3C2F76657273696F6E786D6C3E'; /* ascii value: <versionxml></versionxml> search characters */
SET RawOutputData = x'';
Now I would like to replace <?xml version="1.0" encoding="UTF-8" ?> instead of <?xml version='1.0'?>.
How can I get the ascii value of <?xml version="1.0" encoding="UTF-8" ?>?
I'm looking for help in this.
Thanks and Regards,
Bharat |
|
Back to top |
|
 |
kirani |
Posted: Tue May 14, 2002 9:59 am Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Hex value for <?xml version="1.0" encoding="UTF-8" ?> is,
X'3C3F786D6C2076657273696F6E3D22312E302220656E636F64696E673D225554462D3822203F3E' _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
Bharat |
Posted: Tue May 14, 2002 3:16 pm Post subject: ascii values to use in xml file transformation |
|
|
 Acolyte
Joined: 14 May 2002 Posts: 61 Location: Reston, VA, USA
|
Thanks a lot Kiran.
How can we find out these Hexadecimal values?
Could you please let me know?
Thanks and Regards,
Bharat |
|
Back to top |
|
 |
Cliff |
Posted: Wed May 15, 2002 3:42 am Post subject: |
|
|
Centurion
Joined: 27 Jun 2001 Posts: 145 Location: Wiltshire
|
|
Back to top |
|
 |
kirani |
Posted: Wed May 15, 2002 7:49 am Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
I used MQSeries Explorer to get these values!  _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
suneelsh |
Posted: Thu May 16, 2002 9:02 am Post subject: |
|
|
 Acolyte
Joined: 13 Apr 2002 Posts: 69 Location: Pune,India
|
another easy way to get the hex values is to go to
neon formatter->literals->create a new literal
in the value of the literal on the right side of the window give the value and at the bottom you will get the hex value! |
|
Back to top |
|
 |
Bharat |
Posted: Mon May 20, 2002 6:31 am Post subject: Thanks |
|
|
 Acolyte
Joined: 14 May 2002 Posts: 61 Location: Reston, VA, USA
|
Thanks a lot Cliff, kirani and suneelsh for your ideas.
Regards,
Bharat |
|
Back to top |
|
 |
|