IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Character '=' is grammatically unexpected Options · View
darshan
Posted: Tuesday, August 11, 2009 4:43:42 AM
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
vlad
Posted: Tuesday, August 11, 2009 6:34:03 AM
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 &amp; instead.

Here is a link to XML specification which talks about special characters
darshan
Posted: Tuesday, August 11, 2009 6:51:25 AM
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
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.