FME 2016 is Here! 看到什么新的

Hi @davidalvarez76,
Can you try the XQuery below?If it does not work,would you mind sharing your KML file,would allow me to test against the actual KML.You could also try Dean above suggestion as well which is "you could try the XMLFlattener with feature path = 'tr' which will flatten out your description's table rows into its component fields in the form of row.column."
declare default element namespace "http://www.w3.org/1999/xhtml";for $x in /html/body/table/trreturn fme:set-attribute($x/td[1]/text(),$x/td[2]/text())

Thanks for the example.

I also have a kml that is formatted differently from this example.I have tried both the XQueryExtractor and the XML Flattener but have not been able to pull out the attributes.I was wondering if someone could help me get the correct query pull out the name and the attributes from the following xml format:


"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

http://www.w3.org/1999/xhtml">



V18279201018990_000.jpg

Latitude:37.424416°

Longitude:-82.930091°

Roll:-15.832788°

Pitch:1.726352°

Heading:161.467052;

Height:230.000

GPS Week sec:591967.285977;0.000

Hi@justinv.

Thank you for your question.Have you tried the XMLFragmenter?

Article

Contributors

avatar image
avatar image

Follow this article

6People are following this .