I have an MQ Series queue from which I read messages that may be of several different types. Each type of message has its own XML root element. So what I would like to be able to do is:
- invoke xmlStringToXMLNode
- branch on the root element of the XML document
- invoke xmlNodeToDocument to “cast” the incoming message to a reference to the appropriate one of eight or ten different webMethods document types.
But I cannot figure out how to introspect the XML when it is a “node”.