Table of Contents

Search

  1. Preface
  2. Introduction to Data Transformation
  3. Data Processor Transformation
  4. Wizard Input and Output Formats
  5. Relational Input and Output
  6. Using the IntelliScript Editor
  7. XMap
  8. Libraries
  9. Schema Object
  10. Command Line Interface
  11. Scripts
  12. Parsers
  13. Script Ports
  14. Document Processors
  15. Formats
  16. Data Holders
  17. Anchors
  18. Transformers
  19. Actions
  20. Serializers
  21. Mappers
  22. Locators, Keys, and Indexing
  23. Streamers
  24. Validators, Notifications, and Failure Handling
  25. Validation Rules
  26. Custom Script Components

User Guide

User Guide

Optional Group

Optional Group

You can use the
optional
property of a
Group
to prevent the Script from attempting to retrieve text from a missing section of a document.
For example, to parse the source
First name: Ron
you might define
First name:
as a
Marker
and
Ron
as
Content
. If some source documents do not contain the first-name data, you can put the
Marker
and
Content
in a
Group
and make it optional. If
First name:
is not found, the
Group
immediately fails, and the Parser does not search for the
Content
anchor.
There is a difference between making the
Group
optional and making its nested anchors optional. If you make both the
Marker
and
Content
optional, instead of the
Group
, the Script ignores the
Marker
failure and searches for the
Content
. This might result in retrieving irrelevant text.

0 COMMENTS

We’d like to hear from you!