Skip to main content
Question

XML fragmenter

  • January 17, 2014
  • 2 replies
  • 81 views

jdh
Contributor
Forum|alt.badge.img+40
I'm using an XMLFragmenter where the XML Source Type is an XML file whose's path is stored in an attribute.

 

 

If the xml file is not valid or doesn't exist I get an error:

 

 

0.0|ERROR |XML Parser error: 'unable to open primary document entity 'file: ....

 

 

but the translation continues with the invalid feature being dropped.  

 

 

Is there anyway to record those features.  Ideally I would like to write a text file with the path of all the invalid xml files.

 

 

Joanna
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.

2 replies

takashi
Celebrity
  • January 17, 2014
Hi Joanna,

 

 

I think the XMLValidator transformer is most suitable to do that.

 

 

Takashi

fmelizard
Safer
Forum|alt.badge.img+21
  • Safer
  • January 18, 2014
Hi,

 

 

Yes the XMLValidator is the one to use for testing the data and or schema.

 

You can test for  the attribute missing (new 2014 null approach)  or is empty ( pre 2014) .

 

The Recorder can be use for saving the invalid files  or a dedicated writer.

 

 

Itay