Reputation: 165
I have an XML File provided by client
<?xml version="1.0" encoding="UTF-8"?>
<PhysicalProperty xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation=''>
<Property>
<Identification type="unspecified" rentalType="unspecified">
<PrimaryID>1</PrimaryID>
<SecondaryID>1</SecondaryID>
<MarketingName>tewraewr</MarketingName>
<OwnerLegalName>aerwerwe</OwnerLegalName>
</Identification>
</Property>
</PhysicalProperty>
It used to work fine. However now it gives error
"Non whitespace characters are not allowed in schema elements. Saw 'tewraewr'"
If I remove attributes in PhysicalProperty, it works fine. How can I make it work without removing the attributes?
Upvotes: 3
Views: 17219
Reputation: 79
I'm not an XML expert, but if I had to guess I would think it's your empty '' in the second attribute of your PhysicalProperty element.
Try removing the xsi:noNamespaceSchemaLocation='' and see if that works.
Upvotes: 2