I'm building an XML file and associated schema using Roger Costello's excellent reference and various online resources. The XML validates fine as long as I don't turn on name space validation (i.e. the XML itself is well formed as long as the schema is ignored).
I downloaded Sun's freestanding java validator so that I could work locally instead of hitting the validation sites quite as much as I was doing. Hitting my head against the wall however, hasn't stopped
The first few lines of the XML file look like this :
<?xml version="1.0"?>
<ConstellationNames
xmlns="http://www.hooksprogress.org"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.hooksprogress.org C.xs">
Running the Sun validator I get :
start parsing a grammar.
element "ConstellationNames" is not allowed here
5:68@http://www.hooksprogress.org/C.xml perhaps namespace URI "http://www.hooksprogress.org" is incorrect? 5:68@http://www.hooksprogress.org/C.xml failed to load a grammar.
and it hasn't tried to fetch the stylesheet. According to the online examples that I can find (as well as Costello's powerpoint doc) what I've done looks correct, although it clearly isn't.
Ideas? Please ?
I downloaded Sun's freestanding java validator so that I could work locally instead of hitting the validation sites quite as much as I was doing. Hitting my head against the wall however, hasn't stopped
The first few lines of the XML file look like this :
<?xml version="1.0"?>
<ConstellationNames
xmlns="http://www.hooksprogress.org"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.hooksprogress.org C.xs">
Running the Sun validator I get :
start parsing a grammar.
element "ConstellationNames" is not allowed here
5:68@http://www.hooksprogress.org/C.xml perhaps namespace URI "http://www.hooksprogress.org" is incorrect? 5:68@http://www.hooksprogress.org/C.xml failed to load a grammar.
and it hasn't tried to fetch the stylesheet. According to the online examples that I can find (as well as Costello's powerpoint doc) what I've done looks correct, although it clearly isn't.
Ideas? Please ?