Our accounting system generates an XML file for each invoice that's created. These XML files have to be submitted to a company so that they can automatically input the data into their SAP system. This is where the problem occurs. The SAP system can accept up to 98 line items but our invoices often contain more than that. When we send a large invoice the SAP system rejects it and I have to split/edit the invoice so that the number of line items in each new file is less than 98. Submitting these files is a pain so I'd like to keep from having to send them more than once. Unfortunately for me, the bigshot coders on both ends don't want to bother with altering their respective programs just to make my life (and the lives of other submitters across the country) easier.
These are the steps I'm trying to follow:
Search all of the XML files (ex: 231208.xml, 231209.xml, etc.) in the invoice directory (L:\XML) and any subdirectories (the files are put into folders which relate to particular areas) then report how many times the tag <DixieElectric:LineItems> appears in each file. From this report I can determine if I need to edit any of the files before they ever get uploaded.
I'd appreciate it if someone could give me a clue as to the proper use of any needed filesytem objects and/or the best way to code a regular expression to accomplish what I want. I'm a total newb when it comes to VBScript.
Thanks in advance for any help you can give.
These are the steps I'm trying to follow:
Search all of the XML files (ex: 231208.xml, 231209.xml, etc.) in the invoice directory (L:\XML) and any subdirectories (the files are put into folders which relate to particular areas) then report how many times the tag <DixieElectric:LineItems> appears in each file. From this report I can determine if I need to edit any of the files before they ever get uploaded.
I'd appreciate it if someone could give me a clue as to the proper use of any needed filesytem objects and/or the best way to code a regular expression to accomplish what I want. I'm a total newb when it comes to VBScript.
Thanks in advance for any help you can give.