Stylus Studio Blog
XML Editor, XSLT Editor, XML Schema Editor
Back to StylusStudio.com >
Friday, May 2, 2014
How to reject unexpected data
We received an interesting question on SSDN which deserves more attentions then a simple few lines response
The original post can be found here
http://www.stylusstudio.com/SSDN/default.asp?action=9&read=9947&fid=23
Here is a way to approach the problem.
First we need to add a node with an empty pattern to the custom conversion which will catch all unexpected rows.
Then we can build a schema from the converter's output which will be used to validate the document and to make sure no unexpected element are present.
At last we can build a simple XML pipeline which converts the fixed-width data to XML and performs validation against the schema.
We can test the pipeline directly in
Stylus Studio
and when we are ready to deploy we can can just copy our project folder into XML Pipeline Server (
http://www.xmlpipelineserver.com/
) and we are ready to go.
XML Pipeline Server loads the pipeline and creates folder for each input and output blocks, it monitors the folder bound to the input and triggers the pipeline execution as soon as a new file arrives.
If you like to know more about XML Pipeline Server drop us a line at stylussuport@ivitechnologies.com
Ivan Pedruzzi
Stylus Studio Team
XML
|
XML Conversion
|
XML Editor
|
XML Pipeline
|
XML Schema
posted on Friday, May 2, 2014 10:23:16 AM (Eastern Daylight Time, UTC-04:00)
Comments [0]
Trackback
Related posts:
Stylus Studio – XSLT Back-Mapping
Stylus Scoop - Adding Support for XML Converter Generic Dialect
Stylus Scoop: Customer Story - Technology Consultant Loves, Recommends Stylus Studio
Tutorial: Tab Separated Data to XML with Grouping
Stylus Studio X16 is Here!
DataDirect XQuery, CDATA Sections and Namespace
Comments are closed.
Page rendered at Sunday, March 23, 2025 11:48:01 AM (Eastern Standard Time, UTC-05:00)
XML Editor
On this page
Archive
April, 2017 (1)
October, 2016 (1)
July, 2016 (1)
May, 2016 (2)
April, 2016 (1)
August, 2015 (2)
July, 2015 (1)
May, 2015 (1)
April, 2015 (1)
March, 2015 (1)
February, 2015 (2)
January, 2015 (1)
December, 2014 (2)
October, 2014 (2)
September, 2014 (1)
August, 2014 (1)
May, 2014 (4)
January, 2014 (2)
December, 2013 (1)
November, 2013 (1)
October, 2013 (1)
August, 2013 (1)
July, 2013 (2)
June, 2013 (1)
May, 2013 (1)
April, 2013 (1)
March, 2013 (2)
February, 2013 (2)
January, 2013 (2)
December, 2012 (4)
November, 2012 (2)
October, 2012 (5)
September, 2012 (2)
August, 2012 (1)
July, 2012 (1)
June, 2012 (1)
March, 2012 (1)
Month View
Categories
Acrobat Reader
Deployment
Installer
Java
License
PDF
Performance
RELAX NG
Scalability
Usability
XML
XML Conversion
XML Editor
XML News
XML Pipeline
XML Schema
XQuery
XSLT
© Copyright 2025 Stylus Studio
Sign In