Views:
Question:
Is there a sample XML file that can be referenced when uploading documents using an XML data file via the REST API? 

Answer:
Please refer to the following sample XML data file that showcases the structure and how it should be set up depending on the data types used;

<Document xmlns="http://dev.docuware.com/schema/public/services/platform" Id="1">
  <Fields>
    <Field FieldName="COMPANY">
      <String>Nice Company</String>
    </Field>
    <Field FieldName="NUMERIC_IDENTITY">
      <Int>123</Int>
    </Field>
    <Field FieldName="TAGS">
      <Keywords>
        <Keyword>Keyword1</Keyword>
        <Keyword>Keyword2</Keyword>
      </Keywords>
    </Field>
    <Field FieldName="ORDER_ITEMS">
      <Table>
        <Row>
          <ColumnValue FieldName="FIELD_NAME">
            <String>Some test text</String>
          </ColumnValue>
          <ColumnValue FieldName="ORDER_QUANTITY">
            <Decimal>3456.789</Decimal>
          </ColumnValue>
        </Row>
        <Row>
          <ColumnValue FieldName="FIELD_NAME">
            <String>Some test text</String>
          </ColumnValue>
          <ColumnValue FieldName="ORDER_QUANTITY">
            <Decimal>3456.789</Decimal>
          </ColumnValue>
        </Row>
      </Table>
    </Field>
  </Fields>
  <Sections>
    <Section>
      <ApplicationProperties>
        <ApplicationProperties Name="name 1" Value="value 1" />
        <ApplicationProperties Name="name 12" Value="value 12" />
      </ApplicationProperties>
    </Section>
    <Section>
      <ApplicationProperties>
        <ApplicationProperties Name="name 2" Value="value 21" />
        <ApplicationProperties Name="name 22" Value="value 212" />
        <ApplicationProperties Name="name 23" Value="value 213" />
      </ApplicationProperties>
    </Section>
  </Sections>
</Document>

 
For more on Rest API or .NET API and code examples such as the one shown above, please visit our DocuWare Developer Pages.

KBA is applicable for both Cloud and On-premise Organizations 
Comments (0)