Author |
Message
|
kwelch |
Posted: Mon Jul 07, 2003 9:56 am Post subject: Importing DTD's in WMQI control center |
|
|
 Master
Joined: 16 May 2001 Posts: 255
|
Hi,
I have been using WMQI for quite awhile but have never used the DTD importer until today. I have an application that wants to validate their incoming and outgoing XML. I was able to import it but was surprised that every element came in as a separate type and message. Is this the norm? Can you point me to documentation and examples? I would also be interested in hearing opinions. One of the manuals said that sometimes you need to define the xml yourself rather than import, if they are not simple. Since I don't really understand DTD's I was hoping the import would handle it for me. Any tips or suggestions would be helpful. Thanks!
Karen |
|
Back to top |
|
 |
zpat |
Posted: Mon Jul 07, 2003 1:21 pm Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
In WMQI 2.1, the DTD import helps to construct a message set. It does not perform any validation of message content against the DTD. |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Jul 07, 2003 2:15 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
zpat wrote: |
In WMQI 2.1, the DTD import helps to construct a message set. It does not perform any validation of message content against the DTD. |
While I certainly agree that's true, once you've used the importer, can't you validate your data against the imported model by instructing the input node to validate? |
|
Back to top |
|
 |
zpat |
Posted: Mon Jul 07, 2003 11:19 pm Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
I think the validation is strictly limited. AFAIK WMQI v5 extends this but it's still not as much as the DTD can specify. |
|
Back to top |
|
 |
Yanghui |
Posted: Tue Jul 08, 2003 1:04 am Post subject: |
|
|
Disciple
Joined: 08 May 2002 Posts: 151 Location: Dublin, Ireland
|
Hi, Karen,
I think you only need to specify (or prompt) one element (normally the root element) to the Messages window during you import DTD. It never happens to me that every element came in as a seperate type and message.
Hope it helps.
-Yanghui |
|
Back to top |
|
 |
kwelch |
Posted: Tue Jul 08, 2003 4:22 am Post subject: |
|
|
 Master
Joined: 16 May 2001 Posts: 255
|
Thanks for the replies.
Yanghui thanks for that tip, I bet I did select everything when doing the import.
Zpat/Jeff - Can you point me to the documentation that says what you can validate? I thought I remembered reading that you could validate XML against a DTD.
Karen |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Jul 08, 2003 6:14 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
kwelch wrote: |
Zpat/Jeff - Can you point me to the documentation that says what you can validate? I thought I remembered reading that you could validate XML against a DTD.
|
The only documentation that I know of off the top of my head is the Working with Messages manual. Chapter 4 on the MRM Logical Model has a section on what validation can be performed. Chapter 6 has a section on Importing DTDs that discusses how the import process works. |
|
Back to top |
|
 |
skn |
Posted: Tue Jul 08, 2003 6:27 am Post subject: |
|
|
 Centurion
Joined: 21 May 2003 Posts: 112 Location: Dallas
|
|
Back to top |
|
 |
zpat |
Posted: Tue Jul 08, 2003 6:27 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
I am not a WMQI developer but I seem to remember that the "validate" option in the input node only checks the RFH2 headers against the message set name specified and does nothing else.
In other words it would reject a message that specified a different message type than you were expecting but that's about it. |
|
Back to top |
|
 |
skn |
Posted: Tue Jul 08, 2003 6:32 am Post subject: |
|
|
 Centurion
Joined: 21 May 2003 Posts: 112 Location: Dallas
|
i am pretty sure it does some kind of validation against messages when an XML is defined in MRM.One of the two redbooks has some info on it,i am not sure which. |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Jul 08, 2003 6:42 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
zpat wrote: |
I am not a WMQI developer but I seem to remember that the "validate" option in the input node only checks the RFH2 headers against the message set name specified and does nothing else.
In other words it would reject a message that specified a different message type than you were expecting but that's about it. |
This is not true as of CSD04. CSD03 added some partial validation, and CSD04 significantly enhanced the capabilities. |
|
Back to top |
|
 |
Yanghui |
Posted: Wed Jul 09, 2003 4:04 am Post subject: |
|
|
Disciple
Joined: 08 May 2002 Posts: 151 Location: Dublin, Ireland
|
|
Back to top |
|
 |
|