Hello,
I execute query on my postgresdb to get result as a json: description is here http://rextester.com/ZULI42144
It looks nice but now I would like to convert it to xml. I decided to use fme to query postgres just like in example and now I have noe idea how to convert the result to xml and write it to file.
Also talking about json which I also need (I need result in JSON and XML format) what I achieved is that I simply executed postgres query end then wrote results using simple text writer so I suppose that fme doesnt really know that the query result is a JSON :)
Structure and content of the database is as described here:http://rextester.com/ZULI42144
and there is sql that is used in below sqlExecutor
This is prototype of my workspace that I have right now and the question is how to format nice xml from this list exploder (if its possible).
And here is output of the logs. Of course in the result xml I would like to have structure ike <person>...<car>...<wheel>...</wheel></car></person>
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Feature Type: `Logger_LOGGED'
Attribute(64 bit integer) : `cars.carid' has value `1'
Attribute(encoded: utf-8) : `cars.comment' has value `nice car'
Attribute(encoded: utf-8) : `cars.type' has value `Toyota'
Attribute(64 bit integer) : `cars.wheels{0}.serial number' has value `11'
Attribute(encoded: utf-8) : `cars.wheels{0}.which' has value `front'
Attribute(64 bit integer) : `cars.wheels{1}.serial number' has value `12'
Attribute(encoded: utf-8) : `cars.wheels{1}.which' has value `back'
Attribute(string) : `fme_geometry' has value `fme_undefined'
Attribute(entangled: string): `fme_type' has value `fme_no_geom'
entangled to [postgres_type]
Attribute(encoded: utf-8) : `person_name' has value `Johny'
Attribute(string) : `postgres_type' has value `postgres_none'
Coordinate System: `'
Geometry Type: IFMENull
===========================================================================
Logger: Feature is:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Feature Type: `Logger_LOGGED'
Attribute(64 bit integer) : `cars.carid' has value `2'
Attribute(encoded: utf-8) : `cars.comment' has value `nice car'
Attribute(encoded: utf-8) : `cars.type' has value `Fiat'
Attribute(64 bit integer) : `cars.wheels{0}.serial number' has value `21'
Attribute(encoded: utf-8) : `cars.wheels{0}.which' has value `front'
Attribute(64 bit integer) : `cars.wheels{1}.serial number' has value `22'
Attribute(encoded: utf-8) : `cars.wheels{1}.which' has value `back'
Attribute(string) : `fme_geometry' has value `fme_undefined'
Attribute(entangled: string): `fme_type' has value `fme_no_geom'
entangled to [postgres_type]
Attribute(encoded: utf-8) : `person_name' has value `Freddy'
Attribute(string) : `postgres_type' has value `postgres_none'
Coordinate System: `'
Geometry Type: IFMENull
===========================================================================
Logger: Feature is:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Feature Type: `Logger_LOGGED'
Attribute(string) : `fme_geometry' has value `fme_undefined'
Attribute(entangled: string): `fme_type' has value `fme_no_geom'
entangled to [postgres_type]
Attribute(encoded: utf-8) : `person_name' has value `Billy'
Attribute(string) : `postgres_type' has value `postgres_none'
Coordinate System: `'
Geometry Type: IFMENull
===========================================================================
Thanks for any hints