Author |
Message
|
shediiwork |
Posted: Tue May 08, 2007 9:21 am Post subject: XMLT NODE: What other options are there? |
|
|
Acolyte
Joined: 07 Jun 2005 Posts: 52
|
Quote: |
What value are you deriving from using XSLT to do transformations, when Broker is fully capable of doing it in several other, more efficient, manners? |
The above is a quote from a earlier post in this forum. I have a transformation issue, which I am current trying to solve with a Compute node (ESQL). I receive a XML input message which need to be verified for require fields. What are the other methods? I know MAPPING and Message SETS are a few.
Input message - pre-validated
<xml-data>
<datahdr>
<hdrID>
<itemID>
<itemName/>
<itemDesc/>
</itemID>
</hdrID>
</datahdr>
</xml-data>
Input message - validated
<xml-data>
<datamesg/>
<datatype/>
<datahdr>
<hdrID>
<itemID>
<itemName/>
<itemDesc/>
<itemValue/>
</itemID>
</hdrID>
</datahdr>
</xml-data> |
|
Back to top |
|
 |
madi |
Posted: Tue May 08, 2007 10:18 am Post subject: |
|
|
 Chevalier
Joined: 17 Jan 2006 Posts: 475
|
XML Validator Node -- Support pack from IBM
Check it out
--madi |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue May 08, 2007 10:25 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
The only two "out of the box" Validation choices in Broker are modelling your data using MRM, and hand-writing code to check that each field matches business criteria.
I suppose it's possible to use XSLT to do this, but I'd just use MRM instead.
Madi is correct to point out the XML Validation support pack - this will allow you to specify a Schema that defines the business rules to check the XML message against. But, an MRM message set is pretty much just a schema and can be created from a schema. So I'd only use the Support Pack if the decision has been cast in stone not to use the MRM. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
shediiwork |
Posted: Tue May 08, 2007 1:19 pm Post subject: |
|
|
Acolyte
Joined: 07 Jun 2005 Posts: 52
|
Thanks for the responses. The current solution is to model the message by hand-writing esql code. I could not find the XML Validation support pack when I look for it.
thanks
Shed |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue May 08, 2007 1:23 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
It's Support Pack IA9A. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
shediiwork |
Posted: Tue May 08, 2007 1:55 pm Post subject: |
|
|
Acolyte
Joined: 07 Jun 2005 Posts: 52
|
|
Back to top |
|
 |
shediiwork |
Posted: Wed May 09, 2007 8:20 am Post subject: STILL having trouble |
|
|
Acolyte
Joined: 07 Jun 2005 Posts: 52
|
Does anyone have an example of esql to check each field present, location and value? |
|
Back to top |
|
 |
|