tXSDValidator - Content is not allowed in prolog

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
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.
One Star

Re: tXSDValidator - Content is not allowed in prolog

Thanks jlolling for your input.

Calling Talend Open Studio Users

The first 100 community members completing the Open Studio survey win a $10 gift voucher.

Start the survey

2019 GARNER 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

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Agile Data lakes & Analytics

Accelerate your data lake projects with an agile approach

Watch