Unexpected node type Element. The Readelementstring method can only be called on simple content or on empty content

Source: Internet
Author: User

---restore content starts---

There is such a statement in the XML document "

<description category= "1" title= "description" >
<content title= "description" >
<Text>
Exclusive <b> Hangzhou Zhongshan International Hotel Superior Room </b>1 Night + Free breakfast 2 parts + Free wifi+ more benefits! Hotel is located in the bustling Lakeside shopping district, adjacent to the subway line Line 1 long Xiang Station D exit, walk to the West Lake just 10 minutes, surrounded by shops, traffic is very convenient!
</Text>
</Content>
</Description>

This error occurs when deserializing.

Reason for error: Because the <Text></Text> tag has a <b></b> tag. <b></b> is not actually an XML node. There are no corresponding fields and attributes in the entity.

Solution: Remove the <b></b> tag from this sentence.

---restore content ends---

Unexpected node type Element. The Readelementstring method can only be called on simple content or on empty content

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.