Skip to content

Commit 1c103a4

Browse files
committed
cleanup
1 parent 57d3168 commit 1c103a4

File tree

4 files changed

+38
-18
lines changed

4 files changed

+38
-18
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
XmlValidate
22
===========
33

4-
A quick & flexible XML validator capable of performing bulk validation of XML documents against XML Schemas as defined in the XML documents or forcing another schema target.
4+
A quick & flexible open source XML validator capable of performing bulk validation of XML documents
5+
against XML Schemas as defined in the XML documents or forcing another schema target.
56

67
*XmlValidate* validates individual XML documents by filename or URL
78
or recursively searching directories with a list of target file

README.txt

Lines changed: 32 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -55,32 +55,52 @@ schemas, and batch files are in the correct locations.
5555
==========================================
5656

5757
Validate all GPX/KML/KMZ documents
58-
> bin\xv -v -kmz -x=gpx data
59-
dir: data
58+
> bin\xv.bat -v -kmz -x=gpx data/xml data/kml data/kmz
59+
dir: data\xml
6060

61-
Check: data\big.kmz
61+
Check: data\xml\mystic_basin_trail.gpx
6262
*OK*
63+
dir: data\kml
6364

64-
Check: data\mystic_basin_trail.gpx
65+
Check: data\kml\data-ext-atom.kml
66+
assign Namespace http://www.w3.org/2005/Atom -> file:/C:/projects/xmlValidate/temp/XmlValidate/schemas/atom.xsd
6567
*OK*
6668

67-
Check: data\placemark.kml
69+
Check: data\kml\earth-google-com-kml-21.kml
6870
*OK*
6971

70-
Check: data\tessellate-orig.kml
72+
Check: data\kml\earth-google-com-kml-22.kml
73+
*OK*
74+
75+
Check: data\kml\no-namespace.kml
76+
INFO: no root namespace
77+
*OK*
78+
79+
Check: data\kml\nonkmlroot.kml
80+
*OK*
81+
82+
Check: data\kml\placemark.kml
83+
*OK*
84+
85+
Check: data\kml\tessellate-orig.kml
7186
http://www.opengis.net/kml/2.2
72-
ERROR: SAXParseException org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'tilt'. One of '{"http://www.opengis.net/kml/2.2":altitudeModeGroup, "http://www.opengis.net/kml/2.2":LookAtSimpleExtensionGroup, "http://www.opengis.net/kml/2.2":LookAtObjectExtensionGroup}' is expected.
87+
ERROR: SAXParseException org.xml.sax.SAXParseException; lineNumber: 27; columnNumber: 13; cvc-complex-type.2.4.a: Invalid content was found starting with element 'tilt'. One of '{"http://www.opengis.net/kml/2.2":altitudeModeGroup, "http://www.opengis.net/kml/2.2":LookAtSimpleExtensionGroup, "http://www.opengis.net/kml/2.2":LookAtObjectExtensionGroup}' is expected.
7388
Line: 27, column: 13
7489
27: <tilt>***62.04855796276328</tilt>
7590

76-
Check: data\tessellate21.kml
91+
Check: data\kml\tessellate21.kml
7792
*OK*
7893

79-
Check: data\tessellate22.kml
94+
Check: data\kml\tessellate22.kml
8095
*OK*
96+
dir: data\kmz
97+
98+
Check: data\kmz\big.kmz
99+
*OK*
100+
101+
Errors: 1 Warnings: 0 Files: 11 Time: 895 ms
102+
Valid files 10/11 (91%)
81103

82-
Errors: 1 Warnings: 0 Files: 6 Time: 421 ms
83-
Valid files 5/6 (83%)
84104

85105
Notice the tessellate-orig.kml example has the wrong namespace
86106
and fails to validate against the specified schema namespace.
@@ -120,4 +140,4 @@ your XmlValidate/schemas directory as reference them like this:
120140
or add any directory of your choosing and reference with an absolute path:
121141
http://java.sun.com/xml/ns/javaee=C:/xml/schemas/web-app_2_5.xsd
122142

123-
--
143+
--

data/xml/mystic_basin_trail.gpx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!-- http://www.topografix.com/team/view.asp?gpx=mystic_basin_trail.gpx -->
33
<gpx creator="ExpertGPS 1.1b1 - http://www.topografix.com" version="1.0"
4-
xmlns="http://www.topografix.com/GPX/1/0"
5-
xmlns:topografix="http://www.topografix.com/GPX/Private/TopoGrafix/0/1"
4+
xmlns="http://www.topografix.com/GPX/1/0"
65
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd http://www.topografix.com/GPX/Private/TopoGrafix/0/1 http://www.topografix.com/GPX/Private/TopoGrafix/0/1/topografix.xsd">
76
<name>Mystic River Basin Trails</name>
87
<desc>Both banks of the lower Mystic River have paved trails, allowing for a short and a long loop along the water. The short loop is a two mile trail with no road crossings. The long loop adds side-trips out to Draw Seven Park and the MBTA yard at Wellington Station, but crosses the six lanes of Route 28 twice.</desc>

run.bat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ REM to increase memory limits to validate very large XML.
1414
set OPTS=-Xmx64m
1515

1616
echo Validate CoT XML document with non-namespace schema
17-
call bin\xv -schema=schemas\Event.xsd -v data/xml/cot.xml
17+
call bin\xv.bat -schema=schemas\Event.xsd -v data/xml/cot.xml
1818
echo.
1919
echo ==========================================
2020

2121
echo.
2222
echo Validate all KML/KMZ documents as KML 2.1 Schema
23-
call bin\kml21 -kmz data/kml data/kmz
23+
call bin\kml21.bat -kmz data\kml\tessellate-orig.kml data/kmz
2424
echo.
2525
echo ==========================================
2626

2727
echo.
2828
echo Validate all GPX/KML/KMZ documents
29-
call bin\xv -v -kmz -x=gpx data/xml data/kml data/kmz
29+
call bin\xv.bat -v -kmz -x=gpx data/xml data/kml data/kmz
3030
echo.
3131
echo Notice the tessellate-orig.kml example has the wrong namespace
3232
echo and fails to validate against the specified schema namespace.

0 commit comments

Comments
 (0)