Skip to main content
Archived

Add option to pre-validate xml file in XML Reader

Related products:Integrations
  • April 12, 2017
  • 1 reply
  • 16 views

lifalin2016
Influencer
Forum|alt.badge.img+40

Hi,

We're receiving multiple XML files from a customer on a daily basis, and we know for a fact, that their XML export utility doesn't encode attribute values correctly, sometimes resulting in invalid XML files.

This of course makes FME break down, but this typically happens only after hours of converting the valid parts of the XML file.

It would be a nice feature - and very simple to add, I think - to (optionally) validate the basic XML syntax _before_ any conversion is attempted. This really ought to be mandatory, but might also be an optional setting.

It is not validation wrt one or more schemas I'm talking about, just a bare-boned XML file syntax check.

Cheers

Lars I.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

runneals
Enthusiast
Forum|alt.badge.img+29
  • Enthusiast
  • May 9, 2017

Sounds like we have similar issues... Ours is where we have a live XML feed, but for some reason, FME doesn't think the tags get closed all the time, so it throws errors after reading in most of the data. Attached is a sample dataset and the XFMap file that throws errors. In fact, the following error just came through my email:

XML Parser error: 'Error in input dataset:'http://mn.carsprogram.org/hub/data/feu-g.xml' line:33 column:22924 message:input ended before all started tags were ended; last tag started is 'FEUMessages''

 

xfmap-cars_1.xml