For full functionality of this site it is necessary to enable JavaScript.
Here are the instructions how to enable JavaScript in your web browser.

Knowledge base

Find the answer to your question

Advanced Search PView

Search terms
Search Type
Product
Category
Language
Format
SDK
Sort by
Direction

SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize

  • Answer ID 2015
  • Published 02/24/2012 03:15 PM
  • Updated 10/21/2013 01:55 PM
  • Permalink https://ebaydts.com/eBayKBDetails?KBid=2015
Why am I get the following error, "SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize"?

Summary

Why am I get the following error, "SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize"?



Detailed Description

There can be many reasons why you are recieiving this error, but we will focus on just 2 situations:

1.  You may be getting this error because the given root element in your request xml document does not match any Element Declarations in eBay Schema.


Answer Title: Error 20170 - Schema XML request error
Answer Link: https://ebaydts.com/eBayKBDetails?KBid=897

2.  Another common reason is your <Description> has HTML or XML reserved characters.  For a workaround you want to enclose your description using CDATA.

<![CDATA[ description here ]]>



Additional Resources

Description: http://developer.ebay.com/DevZone/XML/docs/Reference/eBay/AddFixedPriceItem.html#Request.Item.Description

How well did this answer your question?

Answers others found helpful

Print Email This Page Delicious Digg Facebook Reddit StumbleUpon Twitter