Author |
Message
|
NikoP |
Posted: Mon Jan 12, 2004 8:48 am Post subject: Importing DTD to MRM // RESOLVED |
|
|
Novice
Joined: 08 Dec 2003 Posts: 16
|
Hi !
I'm importing a DTD to my MRM using the "Import to Message Set ->
DTD" function.
It works well but I've got a problem in the end
My DTD begins like :
<?xml version="1.0" encoding="UTF-8"?>
<!ATTLIST MyMessage
DataReferenceLanguage CDATA #REQUIRED
MessageReferenceLanguage CDATA #REQUIRED
MessageId CDATA #REQUIRED
ProcessName CDATA #REQUIRED
...
The point is that my output message only displays the
<?xml version="1.0"> processing instruction. The encoding is missing.
I've seen previous posts on the subject but I can't find which element to set in order to have this encoding instruction.
Which parametre should I set to have my correct output ?
Thanks in advance for your help ! I'm getting MaAaAAaaAaaDdDDdD 
Last edited by NikoP on Tue Jan 13, 2004 11:47 pm; edited 1 time in total |
|
Back to top |
|
 |
kirani |
Posted: Mon Jan 12, 2004 10:14 am Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
I think you need to set this at the message set level, I don't remember right now which property controls this, but you can find that out by going to XML wire format tab of the message set and then look for the property related to XML Declaration.
I think this problem is fixed in CSD3 of WMQI, please make sure you have that installed on your server. _________________ 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 |
|
 |
Missam |
Posted: Mon Jan 12, 2004 9:56 pm Post subject: |
|
|
Chevalier
Joined: 16 Oct 2003 Posts: 424
|
Hi kirani,
do you mean we have to set encoding null num and encoding non null num of the XML wire format values |
|
Back to top |
|
 |
kalva7 |
Posted: Tue Jan 13, 2004 4:11 am Post subject: |
|
|
Novice
Joined: 18 Sep 2003 Posts: 21 Location: Pune,India
|
Hi,
Go to the XML wire format tab of the message , set "Standalone Document" property to yes....then message contains encoding information.
Cheers/Chandra |
|
Back to top |
|
 |
NikoP |
Posted: Tue Jan 13, 2004 6:49 am Post subject: |
|
|
Novice
Joined: 08 Dec 2003 Posts: 16
|
Hi !
Thanks for your answers but it doesn't seem to work for what I want.
Setting Standalone Document to YES is only adding the standalone proccesing instruction in the tag:
<?xml version="1.0" standalone="yes"?>
I still can't find the
<?xml version="1.0" encoding="UTF-8"?>
And I have no clue about which parameter to change in the XML tab... |
|
Back to top |
|
 |
NikoP |
Posted: Tue Jan 13, 2004 11:46 pm Post subject: Answered ! |
|
|
Novice
Joined: 08 Dec 2003 Posts: 16
|
Hi !
Thanks to IBM support, I've finally got the solution to this kind of problem.
The point is that it's impossible to display this processing instruction using WMQI 2.1 + CSD 4 (don't know what happens on V5...). Although user's manual tells it, there no way to do it.
So the procedure consists in adding 2 extra-nodes :
- 1 ResetContentDescriptor to shift from MRM-XML domain to simple XML domain
- 1 compute node in which you add any instruction you want.
So simple in the end..! but not so obvious at first look ;o)
I hope it'll help some of you in the future |
|
Back to top |
|
 |
|