rexXML enhancement - please comment
Posted: Fri Nov 24, 2006 11:34 am
When a tree is loaded into memory, if 'sendMessages' is true, then on the creation of each XML node and XML data element a 'revStartXmlNode' or 'revStartXmlData' message is sent. In the case of the former, pNodeName and pAttributes are also sent with the message. However, I think in many cases it would be more useful if the tree id and the full-path to that node was also sent.
As things currently stand I think the usefulness of these two messages is limited. For example, if the messages received the additional data I'm suggesting it would be much simpler to load a tree from file, and apply some processing to either the attributes or the data as each part of the tree was being processed (i.e. as each message was received). As it is, without being able to identify which tree and which precise node is beint processed, I cannot see that the current message is of much use. The pNodeName that currently is received is only the last part of the path to the node, so it is basically ambiguous and cannot be used to get a handle on that node.
I'd like to know if other people agree with this before I enter it as an enhancement request in BZ.
As things currently stand I think the usefulness of these two messages is limited. For example, if the messages received the additional data I'm suggesting it would be much simpler to load a tree from file, and apply some processing to either the attributes or the data as each part of the tree was being processed (i.e. as each message was received). As it is, without being able to identify which tree and which precise node is beint processed, I cannot see that the current message is of much use. The pNodeName that currently is received is only the last part of the path to the node, so it is basically ambiguous and cannot be used to get a handle on that node.
I'd like to know if other people agree with this before I enter it as an enhancement request in BZ.