Expand my Community achievements bar.

xml variable removes process-instruction

Avatar

Level 1

I have a project that reads documents through a watch folder. The files that are dropped in are xml and contain a processing instruction with some meta data is needed in my process. I have configured a watch folder endpoint using 3 different type of input variables for document, xml, and string. When I do document I get the document object but no access to the processing instruction. When I do xml, I get the xml in a variable but all processing instructions are removed including the xml declaration. Finally, when I use a string, the variable is set with a binary representation of the file that looks like base 64. I have tested a different process reading the xml from file system as a string and I can use string functions to extract the values I need that way. I'm wondering if anybody knows what I can do to configure my watch folder enpoint so that I can access the processing directive either as xml or as a string.

0 Replies