in message <PFgNh.8212$__3.1414@edtnps90>, gg ('g*@Edm.noMail.net') wrote:
I specify the Url element as
<xsd:element name="Url">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="512"/>
<xsd:pattern value="http://[a-zA-z.\\_\-]+"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
in the xsd but When I use the following in the xml
<Url>
https://www.xyz.com/cgi-bin/access/a...&F21=IB&F22=IB
&REQUEST=ClientSignin&LANGUAGE=ENGLISH</Url>
I got the error message
The reference to entity "F7" must end with the ';' delimiter. [17]
so I tried surrounding the url with double quote, then tried \ before
&f7 but no luck. even \\&f7 did not help
The (traditional) use of ampersand as a parameter-value pair separator in
URLs is a mistake. Many (but not all) dynamic content toolkits allow the
use of other characters, for example semi-colon, which do not provoke this
problem. However, if you must use ampersand, the correct way of writing
ampersand in an XML document is '&'. So you will find that
<Url>
https://www.xyz.com/cgi-bin/access/a...=IB&F22=IB
&REQUEST=ClientSignin&LANGUAGE=ENGLISH</Url>
will work.
--
si***@jasmine.org.uk (Simon Brooke)
http://www.jasmine.org.uk/~simon/
;; 'I think we should trust our president in every decision
;; that he makes and we should just support that'
;; Britney Spears of George W Bush, CNN 04:09:03