Home >
Online Product Documentation >
Table of Contents >
Filtering Output
Filtering Output
Stylus Studio provides several ways to filter the content of an input file. When you create a filter using one of the techniques discussed in this section, data matching the filters you set is not generated in the XML output.
- Omitting fields - The
Omit property lets you omit a field from XML output. You can omit a field
- Only when it is empty. This is the default.
- When it is empty or evaluates to a zero value.
- Always, regardless of its value
- Never, regardless of its value
- Pattern matching - You can use the
Match Pattern property to specify a regular expression that Stylus Studio uses to filter the input file before converting it to XML. Only rows that match the pattern you specify are output to XML. You can verify that the match patterns you specify filter the input file as you expect by clicking the
Highlight Matching Rows button. When you do this, Stylus Studio highlights all the rows in the input file that match the pattern you have specified. See
Document Grid Display Features for more information about this feature.
To learn more about regular expression syntax, visit
http://www.boost.org/libs/regex/doc/syntax.html
.
- Comments - You can filter rows in line-oriented regions using the
Comment String property - if the beginning of a line matches the string you enter for this property, Stylus Studio ignores the line when converting the input file to XML.