This document was generated from CDN thread
Created by: Greg Dowdy on 04-06-2010 04:06:59 PM
Response.Write("<SoftKeyItem>");
Response.Write("<Name>Exit</Name>");
Response.Write("<Position>3</Position>");
Response.Write("<URL>SoftKey:Cancel</URL>");
Response.Write("</SoftKeyItem>") ;
Response.Write("<SoftKeyItem>");
Response.Write("<Name>Correct</Name>");
Response.Write("<Position>4</Position>");
Response.Write("<URL>SoftKey:<<</URL>");
Response.Write("</SoftKeyItem>") ;
Response.Write("</CiscoIPPhoneInput>\r\n");
Response.Flush();
Position 3 works. Position 4 does not the << blows it up. What am I missing?
Subject: RE: << Softkey
Replied by: douglas conklin on 13-07-2010 06:55:17 PM
Response.Write("<SoftKeyItem>");
Response.Write("<Name>Exit</Name>");
Response.Write("<Position>3</Position>");
Response.Write("<URL>SoftKey:Cancel</URL>");
Response.Write("</SoftKeyItem>") ;
Response.Write("<SoftKeyItem>");
Response.Write("<Name>Correct</Name>");
Response.Write("<Position>4</Position>");
Response.Write("<URL>SoftKey:<<</URL>");
Response.Write("</SoftKeyItem>") ;
Response.Write("</CiscoIPPhoneInput>\r\n");
Response.Flush();
Position 3 works. Position 4 does not the << blows it up. What am I missing?
< is a restricted character in XML. If you need it in a value, you need the escaped value.
The IP Phone Services Guide has a chapter on XML basics (chapter 6 in my ancient version).
That should have a sub heading on escape sequences.
<quote>
The first escape sequence you may be familiar with is the one used to encode the left angle bracket:
<
</endquote>
Regards,
Douglas