Is there any simple way converting xmlnode to text? The problem is that wM does not support recursive document types, but i have to use one as long as it is required in the project. To work around this, I have created document type with limited number of elements (just those i need) and do the following
- receive message, lets say
- validate message against original schema (recursive one)
- perform some activities on the message contents using limited document type
- pass part of original message for further processing. This step is something more complicated. I can not use documentToString here because i will lose some information (remember, my document type is not convering all possible combinations declared by schema. Schema is very complex and adjusting it to wM limitations using element references instead of recursive declarations is not possible). What I would like to do here is:
4.1) query original message and get the fragment that is to be passed for further processing as an xmlNode
4.2) convert xmlNode to something that can be processed by other applications, say plain xml text WITHOUT conversion to documentType
Is it possible at all?