Developers Program

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

Published: February 24 2012, 4:15:00 PMยทUpdated: September 04 2022, 11:38:01 PM

Products

Question

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

Answer

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

Additional Comments
How well did this answer your question?