cancel
Showing results for 
Search instead for 
Did you mean: 

XML Parser Error After Validation against XSD

GBekkanti
New Contributor III

Hi Team,

I am reading an xml file and validating against xsd in the parser. I am getting below mentioned error even there is is correct data is present in the MarketCode element.

“error”: “cvc-complex-type.2.4.a: Invalid content was found starting with element ‘MarketCode’. One of ‘{“url”:DivisionCode}’ is expected.”

Can you please resolve the issue.

Thanks and Regards,
Gopi Bekkanti.

1 REPLY 1

jovan_j
New Contributor III

Hi GBekkanti,

Although MaketCode element is correct, there might be DivisionCode element which is required from the XSD schema and it is not provided in the XML file. (please post more details of the xml and xsd if this does not help).

Thanks,
Best regards, Jovan.