Skip to main content
Published: September 06 2006, 4:55:00 PMUpdated: November 28 2020, 2:31:36 PM

Why am I getting the following error message when I make an AddItem request when I try to add HTML to my descrption?
  <ShortMessage>XML Parse error.  </ShortMessage>
    <LongMessage>XML Error Text: &quot;; nested exception is: org.xml.sax.SAXParseException: The element type "br" must be terminated by the matching end-tag ...&quot;.</LongMessage>

API Call returns an 'XML Error Text' error Summary

To add HTML content to your description, you need to wrap it in CDATA so that server does not try to parse the content when the request is received.

Detailed Description

Here is a sample AddItem request that demonstrates how to send in the description:

<?xml version="1.0" encoding="utf-8"?>
<AddItemRequest xmlns="urn:ebay:apis:eBLBaseComponents">
    <Description><![CDATA[ your description goes here ....]]></Description>
    <PostalCode>San Jose, CA</PostalCode>

How well did this answer your question?
Answers others found helpful