Skip to content

TyrfingMjolnir/fmpxmlresult2SwiftyJSONModel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

fmpxmlresult2SwiftyJSONModel

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.

[x] Format Using Layout will provoke the export to populate the LAYOUT-attribute

How to use this file in terminal

xsltproc fmpxmlresult2SwiftyJSONModel.xslt YourTable.fmpxmlresult.xml > Yourdatamodel.swift

License

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.

About

This is an XSLT stylesheet to convert from FileMaker's fmpxmlresult to SwiftyJSONModel for Cocoa[Touch] development saves me some typing.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages