|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
What's difference between Name and folder in logical tree |
« View previous topic :: View next topic » |
Author |
Message
|
xzhou |
Posted: Wed Feb 13, 2013 9:04 am Post subject: What's difference between Name and folder in logical tree |
|
|
Apprentice
Joined: 11 Apr 2008 Posts: 32
|
Hi,
In V8, Properties is a type of name, but domain and namespace are a type of Folder.
I would like to know what's difference between Name and folder in logic tree.
what should I use? when constructing an output message.
I understood name, value and name/value type. but not the folder type.
Thanks in advance! XZ
Quote: |
Root
( ['MQROOT' : 0x34dffb68]
(0x01000000:Name ):Properties = ( ['MQPROPERTYPARSER' : 0x332eea00]...
(0x01000000:Folder):XMLNSC = ( ['xmlnsc' : 0x33449da8]
(0x01000400:NamespaceDecl):XmlDeclaration = (
(0x03000100:Attribute):Version = '1.0' (CHARACTER)
(0x03000100:Attribute):Encoding = 'UTF-8' (CHARACTER)
)
(0x01000000:Folder )http://...[/code] |
Last edited by xzhou on Wed Feb 13, 2013 1:54 pm; edited 1 time in total |
|
Back to top |
|
 |
kimbert |
Posted: Wed Feb 13, 2013 12:43 pm Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Fair question, and it shows that you are thinking about what things actually mean. The explanation is quite simple actually; in the generic message tree, there only are three types: Name, NameValue and Value. However, when parsing something like XML or JSON it is useful to have different 'types' of syntax element that represent different parts of the XML/JSON. So the XMLNSC parser assigns a set of parser-specific type values for its own use.
Syntax element types are 32-bit values, and the two most-significant bits encode the generic Name/Value/NameValue distinction. The parser-specific types do not interfere with the meanings of those bits, but the other 30 bits can be assigned any meaning that the parser's author likes.
So..'XMLNSC.Folder' is just the parser-specific name for the generic type value 'Name'. It just happens that XMLNSC.Folder is an XMLNSC-owned Name element in which all of the parser-specific bit are set to zero.
Probably way more information than you wanted, but it's probably useful to have it out there. And it *was* a good question. |
|
Back to top |
|
 |
xzhou |
Posted: Wed Feb 13, 2013 1:53 pm Post subject: |
|
|
Apprentice
Joined: 11 Apr 2008 Posts: 32
|
Thank Kimbert for good explanation! |
|
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
|
|
|
|