This is an XSLT stylesheet to convert from FileMaker's fmpxmlresult to SwiftyJSONModel for Cocoa[Touch] development saves me some typing, no records involved.
This is a PoC( Proof of Concept )
Works fine with all field types; however number field will have to be manually post validated for now.
Note that adding a layout name in the FMPXMLRESULT export; before translating using this XSLT, will make the output more complete. FileMaker does usually skip layout name on exports, if you know when FileMaker actually outputs the layout name, please enlighten me.
xsltproc fmpxmlresult2SwiftyJSONModel.xslt YourTable.fmpxmlresult.xml > Yourdatamodel.swift
Copyright (c) 2015 Gjermund Gusland Thorsen, released under the MIT License.
All rights deserved.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
This piece of software comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law.