ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » What's difference between Name and folder in logical tree

Post new topic  Reply to topic
 What's difference between Name and folder in logical tree « View previous topic :: View next topic » 
Author Message
xzhou
PostPosted: Wed Feb 13, 2013 9:04 am    Post subject: What's difference between Name and folder in logical tree Reply with quote

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
View user's profile Send private message
kimbert
PostPosted: Wed Feb 13, 2013 12:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
xzhou
PostPosted: Wed Feb 13, 2013 1:53 pm    Post subject: Reply with quote

Apprentice

Joined: 11 Apr 2008
Posts: 32

Thank Kimbert for good explanation!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » What's difference between Name and folder in logical tree
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.