For application with one or two arguments, you could probably manage with some switches and ifs, but when there are more and more arguments, you could use a Command Line Parser library and thus make your code more clean and elegant.This is the way you define arguments for your application: As Andreas Kroll pointed out - it can be useful to define set of arguments that cannot be used together or set of arguments, from which at least one argument must be used.When a developer encounters a GPX file she can't parse, the first question should always be "Is this a valid GPX file?" The GPX validation test provides a consistant answer to this question. Download the latest Xerxes distribution from the Apache website.This section describes the status of this document at the time of its publication. A list of current W3C publications and the latest revision of this technical report can be found in the W3C technical reports index at This document specifies a syntax created by subsetting an existing, widely used international text processing standard (Standard Generalized Markup Language, ISO 8886(E) as amended and corrected) for use on the World Wide Web.The previous errata for this document, are also available. This document is also available in these non-normative formats: XML and XHTML with color-coded revision indicators.Copyright © 2008 The Extensible Markup Language (XML) is a subset of SGML that is completely described in this document.
It may also be handy to support aliases for arguments (long and short name for one argument or even more long or short names for an argument).We're especially interested in links to tutorial information and open source interfaces to Expat from languages other than C.Your application needs to produce valid GPX output before it can be used with other programs and web services that support GPX.Please use the Git Hub repository to log any bugs & discussion.
We'll try to address the backlog of bugs and feature requests raised here, but please use the Git Hub repo for anything new. https://github.com/j-maly/Command Line Parser/ Although console applications are more common in UNIX environment, maybe you will one day need to write one for windows too.Windows users should download the "Latest Xerces-C Binary Package for Windows".