XSD to IOS Objective-C and Android Java binding compiler based on JAXB XJC.
Download zip package from repository mentioned in version history below, latest stable release is 0.6.1, then extract the zip file and run mxjc script in command line:
Usage: mxjc [-options ...] <schema file/URL/dir> ... [-b <bindinfo>] ... If dir is specified, all schema files in it will be compiled. Options: -nano : target Nano for Android as code generation target (default) -privateField : generate private fields, accessed by public accessors, only for nano binding -pico : target Pico for IOS as code generation target -prefix <prefix> : add prefix to the target classes, only for pico binding (recommended to avoid possible name conflict) -nv : do not perform strict validation of the input schema(s) -b <file/dir> : specify external bindings files (each <file> must have its own -b) If a directory is given, **/*.xjb is searched -d <dir> : generated files will go into this directory -p <pkg> : specifies the target package -httpproxy <proxy> : set HTTP/HTTPS proxy. Format is [user[:password]@]proxyHost:proxyPort -httpproxyfile <f> : Works like -httpproxy but takes the argument in a file to protect password -readOnly : generated files will be in read-only mode -xmlschema : treat input as W3C XML Schema (default) -wsdl : treat input as WSDL and compile schemas inside it (experimental,unsupported) -verbose : be extra verbose -quiet : suppress compiler output -help : display this help message -version : display version information
(The MIT License)
Copyright (c) 2013 Leansoft Technology [email protected]
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.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.