Combination View Flat View Tree View
Threads [ Previous | Next ]
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?

RE: << Softkey
Answer
7/13/10 11:55 PM as a reply to Greg Dowdy.
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:
 
    &lt;
</endquote>
 
    Regards,
    Douglas