Skip to content

Commit 635ee82

Browse files
committed
update comment and usage
1 parent e5d0789 commit 635ee82

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/main/java/org/mitre/xml/validate/XmlValidate.java

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,12 @@
6464
* will be added regardless of the default namespace of that document. For example,
6565
* KML 2.1 documents can be validated against the 2.2 schema, and vice versa.
6666
*
67+
* <pre>
68+
* -schema=C:/pathToXsd/kml22.xsd -ns=http://www.opengis.net/kml/2.2
69+
* </pre>
70+
*
6771
* 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
6973
* after each error if applicable so errors can be tracked down and corrected in original
7074
* XML document. If you want the reformatted XML document printed then enable -dump option.
7175
* If the error is in the XML Schema not the instance document then the context will not
@@ -92,6 +96,7 @@
9296
* Assume KML 2.0 instance if root element doesn't have a default namespace
9397
* and root element is one of following: { Placemark, GroundOverlay, NetworkLink, ScreenOverlay }
9498
* 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
95100
*
96101
* @see http://www.w3.org/TR/xmlschema-0/
97102
*
@@ -836,8 +841,8 @@ private static void usage() {
836841
System.err.println("\t XmlValidate -kml -schema=C:/pathToXsd/kml22.xsd -ns=http://www.opengis.net/kml/2.2 C:/pathToMyKmlFiles\n");
837842
System.err.println("\t2) To check all CoT .xml files against CoT Schema:");
838843
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");
841846
System.err.println("\t4) Validate by URL for KML and target schema and print KML content");
842847
System.err.println("\t if any errors are found but limit size of each file printed to first 4K:");
843848
System.err.println("\t XmlValidate -dump -maxDump=4096 -ns=http://earth.google.com/kml/2.1\n" +

0 commit comments

Comments
 (0)