# File polling to handle XML file

**URL:** <https://techcommunity.softwareag.com/t/file-polling-to-handle-xml-file/108124>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [March 18, 2004, 10:40pm UTC](https://techcommunity.softwareag.com/t/file-polling-to-handle-xml-file/108124 "2004-03-18T22:40:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![taurean](https://avatars.discourse-cdn.com/v4/letter/t/f9ae1b/32.png) [@taurean](https://techcommunity.softwareag.com/u/taurean)\
**Post date:** [March 18, 2004, 10:40pm UTC](https://techcommunity.softwareag.com/t/file-polling-to-handle-xml-file/108124/1 "2004-03-18T22:40:15Z")

</div>

I have used file polling to handle flat files… the polling service would monitor a directory and would invoke a service (lets say ffHandler). I used a variable ffdata as an input and mapped it to ffData of the pub.flatFile:covertToValues service with the appropriate template set to ffSchema service-in variable of convertToValues service.

I have exactly the same scenario… but this time the file is in XML format. Can any one please help me with the service that I need to use to do this… also, do I have to use any input variable, like I used ffdata as an input to convertToValues service of WmFlatFile. Perhaps it is one of the services in the pub.xml folder… but this is urgent and I dont have enough time to do R&D.

\*\*Do excuse me if I have posted this message in a wrong category… I am pretty new to this site.

TIA

---

<div class="post-metadata">

**Author:** ![gupta\_r.17495](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@gupta\_r.17495](https://techcommunity.softwareag.com/u/gupta_r.17495)\
**Post date:** [March 19, 2004, 12:16am UTC](https://techcommunity.softwareag.com/t/file-polling-to-handle-xml-file/108124/2 "2004-03-19T00:16:18Z")

</div>

For receiving XML files use the Node as input in the receiving service and invoke pub.xml:xmlNodeToDocument as a first step.

HTH.

---

<div class="post-metadata">

**Author:** ![taurean](https://avatars.discourse-cdn.com/v4/letter/t/f9ae1b/32.png) [@taurean](https://techcommunity.softwareag.com/u/taurean)\
**Post date:** [March 19, 2004, 11:43pm UTC](https://techcommunity.softwareag.com/t/file-polling-to-handle-xml-file/108124/3 "2004-03-19T23:43:44Z")

</div>

Hi RMG,

thanks for the help… it worked like a charm… I just wasnt sure whether the polling service places the document to the integration server as a node or as a stream… Taking node as an input variable and invoking xmlNodeToDocument worked perfectly for me ![](http://www.wmusers.com/wmusers/clipart/happy.gif)

Rohit

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:05pm UTC](https://techcommunity.softwareag.com/t/file-polling-to-handle-xml-file/108124/4 "2021-04-02T15:05:04Z")

</div>


