aspose file tools*
The moose likes XML and Related Technologies and the fly likes Is MSV broken or am I? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Is MSV broken or am I?" Watch "Is MSV broken or am I?" New topic
Author

Is MSV broken or am I?

Brian Sellden
Greenhorn

Joined: Dec 16, 2002
Posts: 1
Hello -
I'm having a lot of trouble validating example OAGIS documents from the Open Applications Group using Sun's MSV. The same document validates just fine using the 'sax.Counter' sample provided in xerces. The document in the file SyncInventoryBalance.xsd contains a schema location of "XML/Gateway/BODs/SyncInventoryBalance.xsd".
From the xerces tool:
orbit#> java sax.Counter -v -s SyncInventoryBalance.xml
SyncInventoryBalance.xml: 5513 ms (146 elems, 66 attrs, 0 spaces, 7069
chars)
Now the same document using the MSV tool. Note that MSV requires that the schema be explicitly called out:
orbit#> java -jar msv.jar XML/Gateway/BODs/SyncInventoryBalance.xsd SyncInventoryBalance.xml
start parsing a grammar.
org.apache.xerces.utils.regex.Token#getRange(): Unknown Unicode category: 29
java.lang.RuntimeException: org.apache.xerces.utils.regex.Token#getRange(): Unknown Unicode category: 29
26@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Meta.xsd
warnings are found. use -warning switch to see all warnings.
reference to the undefined complex type: "Noun"
929@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Components.xsd
1360@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Components.xsd
1890@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Components.xsd
24@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Nouns/InventoryBalance.xsd
reference to the undefined complex type: "BusinessObjectDocument"
30@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/BODs/SyncInventoryBalance.xsd
reference to the undefined complex type: "DataArea"
43@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/BODs/SyncInventoryBalance.xsd
reference to the undefined element declaration: "UserArea"
976@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Fields.xsd
38@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Components.xsd
124@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Components.xsd
140@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Components.xsd
249@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Components.xsd
341@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Components.xsd
361@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Components.xsd
417@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Components.xsd
432@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Components.xsd
472@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Components.xsd
521@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Components.xsd
533@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Components.xsd
548@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Components.xsd
559@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Components.xsd
596@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Components.xsd
683@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Components.xsd
716@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Components.xsd
767@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Components.xsd
807@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Components.xsd
850@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Components.xsd
890@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Components.xsd
1008@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Components.xsd
1055@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Components.xsd
1125@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Components.xsd
1157@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Components.xsd
1177@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Components.xsd
1253@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Components.xsd
1312@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Components.xsd
1389@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Components.xsd
1405@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Components.xsd
1495@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Components.xsd
1534@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Components.xsd
1584@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Components.xsd
1627@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Components.xsd
1658@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Components.xsd
1720@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Components.xsd
1735@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Components.xsd
1762@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Components.xsd
1800@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Components.xsd
1841@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Components.xsd
1868@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Components.xsd
1946@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Components.xsd
1965@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Components.xsd
1984@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Components.xsd
97@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Nouns/InventoryBalance.xsd
reference to the undefined element declaration: "Noun"
7@file:/home/brianls/bench/retailNet/gary/XML/Gateway/BODs/SyncInventoryBalance.xsd
reference to the undefined element declaration: "ApplicationArea"
17@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Meta.xsd
type "Sender" is not a simple type nor a complex type
1622@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Components.xsd
type "AuthorizationId" is not a simple type nor a complex type
1978@file:/home/brianls/bench/retailNet/gary/XML/OAGIS/Resources/Components.xsd
failed to load a grammar.
orbit#>
Any hints about what I'm doing wrong would be greatly appreciated.
brian.sellden@gateway.com
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Is MSV broken or am I?