ProcessField XML error ruby sdk

  • 1.3K Views
  • Last Post 17 February 2014
waqar posted this 17 February 2014

Hi, I am trying to work with reading values from checkboxes and radio buttons I tried creating an XML file

    <?xml version="1.0" encoding="UTF-8"?>
<document xmlns="http://ocrsdk.com/schema/taskDescription-1.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://ocrsdk.com/schema/taskDescription-1.0.xsd http://ocrsdk.com/schema/taskDescription-1.0.xsd">
    <fieldTemplates>
        <checkmark id="checkmarkField">
      <type>square</type>
    </checkmark>
    </fieldTemplates>

    <page>
        <checkmark template="checkmarkField" id="cm1" />
    </page>
</document>

And the output returned is

<?xml version=\"1.0\" encoding=\"utf-8\"?><error><message language=\"english\">Internal Server Error</message></error>

What am I doing wrong? Please help.

Anastasia Galimova posted this 17 February 2014

It's necessary to specify the checkmark region, for example:

<checkmark template="checkmarkField" id="cm1" left="200" top="10" right="220" bottom="30" />

Close