|
|
Rank: Newbie
Joined: 8/11/2009 Posts: 2 Location: Bangalore
|
Dear all,
I have just started using "Altova xml spy 2009". Amazing tool. But cureently I am facing with the error message "Character '=' is grammatically unexpected". Inspite of giving restriction I am still facing with the problem. For eg:
<xs:simpleType name="mksURL"> <xs:restriction base="xs:anyURI"> <xs:pattern value="http://ffm-mks.*"/> </xs:restriction> </xs:simpleType>
It means that it should except any URL starting with "http://ffm-mks.*" . Strange thing is that some links work on the above restriction but some do not, like the link below works perfectly fine "http://ffm-mks3:7001/si/viewproject?projectName=d:/mks/archives/SIM_SCT/X_SCT/FAL/HBA.pj=file.txt"
but this one doesnt successfully validate the schema and gives the error message mentioned in the subject line
"http://ffm-mks3.er1.ate:7001/si/viewrevision?projectName=d:/mks/archives/projectdocs/110%5fSoftware/50%5fSWReqTest/30%5fSWReqTestEnvironment/project.pj&selection=XMLSchema/First%20Draft%20of%20SCT%20to%20EA.ppt"
Can any body help me?
Best Regards, Darshan Shah
|
|
Rank: Advanced Member
Joined: 12/13/2005 Posts: 2,856 Location: Mauritius
|
& has a special meaning in XML and can (almost) NEVER be used as such. Replace it with & instead.
Here is a link to XML specification which talks about special characters
|
|
Rank: Newbie
Joined: 8/11/2009 Posts: 2 Location: Bangalore
|
Dear Vlad,
Thank you for the prompt reply. The specification is indeed helpful.
Best Regards, Darshan Shah
|
|
|
guest |