From Thursday, July, 9, 3:00 PM Pacific,
our Community site will be in
read-only mode
through Sunday, July 12th.
Thank you for your patience.

tXSDValidator - Content is not allowed in prolog

Highlighted
One Star

tXSDValidator - Content is not allowed in prolog

Hi,
I have designed a job (SOAP service) that accepts an XML as the request. I would like to validate the input XML against an XSD file so I am using the tXSDValidator component (Only testing with one column at the moment).
But whenever I send a SOAP request (Using the soapUI perspective in Talend Studio), I get the "There is a Fatal Error on line 1 : Content is not allowed in prolog." error.
I would appreciate if you kindly help me solve this issue.





Thanks
Highlighted
Seventeen Stars

Re: tXSDValidator - Content is not allowed in prolog

The message points to the actual problem. There is some character which is not allowed. Sometimes it is a BOM (Byte Order Mark) at first byte in your XML. A BOM is ofter not visible. I would use a different editor like TextWrangler to edit the SOAP request.
Some editors sets this BOM as first char to the text if you have as encoding UTF-8.
Highlighted
One Star

Re: tXSDValidator - Content is not allowed in prolog

Thanks jlolling for your input.

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog