Skip to main content
Solved

XML parser error

  • October 26, 2017
  • 4 replies
  • 396 views

I`m trying to open a xml file with the xml reader, but I`m getting a XML parser error. Attached is the sample xml file. Who can help me?

Best answer by takashi

Hi @roelslangen, I suspect that the XML reader has not been configured appropriately when you added it to the workspace. Usually you can read any XML document with Feature Paths configuration by setting one or more elements that you want to read as features.

See this excellent tutorial to lean more: Getting Started with XML

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.

4 replies

takashi
Celebrity
  • Best Answer
  • October 26, 2017

Hi @roelslangen, I suspect that the XML reader has not been configured appropriately when you added it to the workspace. Usually you can read any XML document with Feature Paths configuration by setting one or more elements that you want to read as features.

See this excellent tutorial to lean more: Getting Started with XML


  • Author
  • October 27, 2017

Hi @takashi,

I'veaccidently attached the wrong xml file. This one is giving errors when I try toselect the ‘Elements to Match’: li-16o044309-5-versie-202-2016-09-01.xml


takashi
Celebrity
  • October 27, 2017

Hi @takashi,

I'veaccidently attached the wrong xml file. This one is giving errors when I try toselect the ‘Elements to Match’: li-16o044309-5-versie-202-2016-09-01.xml

I looked at the document and found it's an HTML document. Although HTML can be considered as a subset of XML, but XML parser cannot parse it in general.

 

Consider using HTML Table reader if you need to extract a table from the document. The HTMLExtractor transformer could also be an option depending on what you need to extract from the document.

 

 


takashi
Celebrity
  • October 27, 2017

Hi @takashi,

I'veaccidently attached the wrong xml file. This one is giving errors when I try toselect the ‘Elements to Match’: li-16o044309-5-versie-202-2016-09-01.xml

Is the HTML document a page from GitHub?

 

It shows an XML document on a web browser, but each row is contained by an HTML table in fact.

 

The HTML Table Reader and Aggregator just can restore the XML document.