|
64 | 64 | * will be added regardless of the default namespace of that document. For example,
|
65 | 65 | * KML 2.1 documents can be validated against the 2.2 schema, and vice versa.
|
66 | 66 | *
|
| 67 | + * <pre> |
| 68 | + * -schema=C:/pathToXsd/kml22.xsd -ns=http://www.opengis.net/kml/2.2 |
| 69 | + * </pre> |
| 70 | + * |
67 | 71 | * Note that XML is reformatted so errors/warnings with line/column numbers are respect to
|
68 |
| - * the reformatted content not the orginal but context is printed at that line/column number |
| 72 | + * the reformatted content not the original but context is printed at that line/column number |
69 | 73 | * after each error if applicable so errors can be tracked down and corrected in original
|
70 | 74 | * XML document. If you want the reformatted XML document printed then enable -dump option.
|
71 | 75 | * If the error is in the XML Schema not the instance document then the context will not
|
|
92 | 96 | * Assume KML 2.0 instance if root element doesn't have a default namespace
|
93 | 97 | * and root element is one of following: { Placemark, GroundOverlay, NetworkLink, ScreenOverlay }
|
94 | 98 | * Added check for KML content in files with .kmz extension. Retry such files as text.
|
| 99 | + * 11/14/13 Migrate JDOM 1.1 to JDOM 2.0.5 |
95 | 100 | *
|
96 | 101 | * @see http://www.w3.org/TR/xmlschema-0/
|
97 | 102 | *
|
@@ -836,8 +841,8 @@ private static void usage() {
|
836 | 841 | System.err.println("\t XmlValidate -kml -schema=C:/pathToXsd/kml22.xsd -ns=http://www.opengis.net/kml/2.2 C:/pathToMyKmlFiles\n");
|
837 | 842 | System.err.println("\t2) To check all CoT .xml files against CoT Schema:");
|
838 | 843 | System.err.println("\t XmlValidate -schema C:/pathToXsd/event.xsd C:/pathToMyCoTFiles\n");
|
839 |
| - System.err.println("\t3) To kml and kmz files against local schemas as defined in KML files:"); |
840 |
| - System.err.println("\t XmlValidate -map=ns.map C:/pathToMyKmlFiles\n"); |
| 844 | + System.err.println("\t3) Validate kml and kmz files against local schemas as defined in KML files:"); |
| 845 | + System.err.println("\t XmlValidate -kmz -map=ns.map C:/pathToMyKmlFiles\n"); |
841 | 846 | System.err.println("\t4) Validate by URL for KML and target schema and print KML content");
|
842 | 847 | System.err.println("\t if any errors are found but limit size of each file printed to first 4K:");
|
843 | 848 | System.err.println("\t XmlValidate -dump -maxDump=4096 -ns=http://earth.google.com/kml/2.1\n" +
|
|
0 commit comments