You are viewing limited content. For full access, please sign in.

Question

Question

Unsure of XML Source for Read XML activity

asked on November 4, 2014

In order to test a photocopier we're demoing, we need to be able to parse an .xml file sent from the device to pick out certain values, in hopes of using these values to populate meta data fields in a template.  

Looking at the following article, I've been able to figure out how to use XPath to filter out specific values within an .xml file: https://answers.laserfiche.com/questions/54647/Help-With-Read-XML-Activity-for-Applitrack

To this point I've built a very simple workflow that should take an .xml file from a folder (i.e. an .xml file exported with a .pdf scanned on our new photocopier), read out specific values, and populate template fields (XML modeled after another question on the forum):

Now, where I'm having problems is with what to specify for XML Source.  As above, I had previously specified this as being a value passed from the previous activity, but the error message I received said the .xml file was invalid (although the XPath validation on the exact same .xml file verified everything was formatted properly).

Looking at the following post on the Answers site, it sounds like I should be saying the XML Source is either an HTTP Web Request or Download Electronic Document:

https://answers.laserfiche.com/questions/60739/Workflow-read-xml-having-trouble-getting-the-source-document-syntax

I thought I tried each of these as possible values for XML Source, but I have the feeling I'm either specifying this wrong, or I have an incorrect activity leading up to this.  If anyone has any suggestions on something to try, please let me know, since I'm thinking I'm getting pretty close!  

Thanks as always to anyone who can assist.

Marty Gaffney - Network Technician
Town of Okotoks

0 0

Replies

replied on November 4, 2014

If you're trying to read XML from Laserfiche documents, you need a Download Electronic Document activity to get the XML file to the WF Server. I don't see one in  your screenshot.

2 0
replied on November 4, 2014

I can see the immediate problem is that you have the count value being specified as the XML source. That will not contain the information you are wanting. Looking at the Find Entries activity though, that is the only value given. I am guessing that what you will need to do in order to accomplish this is to have the documents OCRd before you will be able to read their contents. After the documents are OCRd, you can retrieve the text from the documents and then run pattern matching on the text to find the values you want to use. To do the OCR, someone will either have to do that manually, or you would have to use distributed processing to accomplish that.

1 0
replied on November 4, 2014

Hey Miruna, adding that activity worked - that was the missing piece!

Thanks much. laugh

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.