Skip to main content
Question

How to read a Custom unknown type of XML?

  • September 5, 2014
  • 3 replies
  • 62 views

paalped
Contributor
Forum|alt.badge.img+5
Hello,

 

 

I want to read an XML schema, which i don't know what kind of XML it is. It could be, XML,GML,LandXML,RSS. I've tried many readers but all fails. All readers I have tried, gives me the messages that the xf-mapping could not determine the xml schema.

 

 

I've tried findeing out how to create a new xfmap file, but I could not quite get the hang of it.

 

 

So I'm wondering if any XML-Guru's  out there can help me?

 

 

I Want to be able to read this XML feed:

 

http://www.vegvesen.no/trafikk/xml/search.xml?searchFocus.counties=2

 

 

How do I begin?
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.

3 replies

david_r
Celebrity
  • September 5, 2014
Heisann,

 

 

rather than using the relatively complex xfMaps, I recommend you look into the so-called feature paths functionality introduced in FME 2013. Here is a good intro: http://fmepedia.safe.com/articles/How_To/Reading-XML

 

 

Lykke til med trafikkmeldingene :-)

 

 

David

fmelizard
Safer
Forum|alt.badge.img+22
  • Safer
  • September 5, 2014
Hi,

 

 

Just use a text reader, point it to the url and set the parameter to read all at once to yes.

 

After that you can use the XMLFragmenter (elemnts to match : messge) to transform the xml fragments into attributes.

 

Hope this helps,

 

Itay

paalped
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • September 5, 2014
Don't mind i Finally figured it out. It was really easy actually. just by typing each word I wanted to match in the list of matched object. In the general xml-reader.