The Cisco IP Phone displays XML Parse Error[4] when a corporate directory search is performed. This document provides information on how to troubleshoot this issue.
There are no specific requirements for this document.
The information in this document is based on these software and hardware versions:
Cisco 79xx Series IP Phones
Cisco IP Phone load 8.0(2) or 8.0(3)
The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, make sure that you understand the potential impact of any command.
Refer to Cisco Technical Tips Conventions for more information on document conventions.
When a corporate directory search is performed from the Cisco IP Phone with some username, the XML Parse Error[4] message is received on the phone.
This issue occurs when the Prompt element contains more than 32 characters. The Prompt element can show up in many XML objects, such as CiscoIPPhoneInput and CiscoIPPhoneMenu, that are supported by Cisco IP Phones. According to XML schema, the maximum number of characters contained in the Prompt element is 32.
This issue is documented in Cisco bug ID CSCse37151 (registered customers only) .
The CallManager cluster has an ActiveDirectory integration to import the end users. Thus, changing the First Name and Last Name of the users can lead to the XML Parse Error.
The & character cannot be parsed by the phone. If the directory entry contains the & character, the phone displays XML Parse Error.
In order to avoid this issue, you need to shorten the directory name length to 31 characters or less. The maximum number of characters on Directory Names that the Cisco 7900 Series Phone models can handle with Phone Loads version 8.0(3) and earlier is 32.
This issue is fixed in Cisco IP Phone load 8.0(4). Therefore, an upgrade of the phone load to 8.0(4) or later can also solve the issue.
Make sure to configure the ActiveDirectory in the same format as the Cisco CallManager.
The issue can also occur due to the failure to understand the softkeys which the Corporate Directory pushes into the 7960-40 SIP phones.
But, the 7960G and 7940G IP Phones support a SIP version of Personal Directory. If you use this, you can add calls from Placed, Missed, or Received Calls to the personal directory from a phone and resolve the issue.
Refer to the XML Parsing Errors section of Cisco Unified IP Phone Services Application Development Notes for more information on how to resolve XML parsing errors.
Some special characters must not be used in any of the directory entry. In order to avoid this issue, check the directory entries.If any of the entries have these characters, remove them from that entry:
&—for example, &
"—for example, "
'—for example, &apos
<—for example, <
>—for example, >
Make sure that the correct server name is entered in the XML file.