|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
XMLNS opaque parsing |
« View previous topic :: View next topic » |
Author |
Message
|
WBI_user |
Posted: Mon Feb 09, 2009 12:36 pm Post subject: XMLNS opaque parsing |
|
|
Partisan
Joined: 07 Aug 2001 Posts: 386
|
I am trying how to do XMLNS opaque parsing
The sample given in the info center is
CREATE LASTCHILD OF OutputRoot
DOMAIN('XMLNS')
PARSE (BitStream
ENCODING InputRoot.Properties.Encoding
CCSID InputRoot.Properties.CodedCharSetId
FORMAT 'XMLNS_OPAQUE'
TYPE 'Body');
It also says "The TYPE clause can specify the element name with no namespace (to match any namespace), or with a namespace prefix or full namespace URI (to match a specific namespace). "
I can not find anymore details on this Type parameter anymore.
If my Input message is like
<MyRoot_Tag>
<MyTAG1>
<tag1> (with manay children)
<tag2> (with manay children)
</MyTAG1>
<MyTAG2>
<tag1> (with manay children)
<tag2> (with manay children)
</MyTAG2>
<MyTAG3>
<tag1> (with manay children)
<tag2> (with manay children)
</MyTAG3>
<MyTAG4>
<tag1> (with manay children)
<tag2> (with manay children)
</MyTAG4>
</MyRoot_Tag>
I have 2 questions
1. can I specify more than 1 type? e.g. I want to do opaque parsing on MyTag2 and MyTag3 ?
2. What if I want to do Opaqie parsing for tag2 under MyTag2. How can I do it? |
|
Back to top |
|
 |
kimbert |
Posted: Mon Feb 09, 2009 2:39 pm Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Short answers are:
- If on v6.0, XMLNS will allow a maximum of one opaquely-parsed tag.
- if on v6.1, you should not be using XMLNS for opaque parsing. XMLNSC allows you to specify more than one tag name.
- In either case, any tag which matches the given name(s) will be opaquely parsed, wherever its occurs, and whatever its parent tag.
All of this information is available here. Search for 'opaque parsing'.
http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r1m0/index.jsp |
|
Back to top |
|
 |
WBI_user |
Posted: Tue Feb 10, 2009 6:30 am Post subject: |
|
|
Partisan
Joined: 07 Aug 2001 Posts: 386
|
Thanks Kimbert, I am still on V6.0 so I need to wait to get to 61 to take the advantage of Opaque parsing on multiple fields.
Do you happen to know if I want to do opage parsing on tag1 under MyTag3, what should I specify under Type? There are tag1 under MyTag1, MyTag2 and MyTag4 also.
I tied to do Type='MyTag3.tag1', it is not working. |
|
Back to top |
|
 |
kimbert |
Posted: Tue Feb 10, 2009 7:07 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Quote: |
Do you happen to know if I want to do opage parsing on tag1 under MyTag3, what should I specify under Type? |
You need to raise a requirement with IBM:
Quote: |
- In either case, any tag which matches the given name(s) will be opaquely parsed, wherever its occurs, and whatever its parent tag. |
|
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|