+ Start a Discussion
Agnibha Chakrabarti 10Agnibha Chakrabarti 10 

XML parse error: Unexpected xml:   

hi, i have created an lwc component. when i am trying to deploy it into org it is showing  XML parse error: Unexpected xml:   .
User-added imagethis is my XML file.

when if removing <targets> tag ...then the component is getting deployed.

did anybody face this issue?
pls help..
Saket Ranjan 3Saket Ranjan 3
Hi Agnibha,
I hope you have have already founded the reason behind the issue.
today i face the same issue, and i found that i had written "<target>>" at the place of "<target>" these kind of small spelling errors could be the reason for such error.
Do tell me if there was any other reason.
Thanks,
Saket.
Agnibha Chakrabarti 10Agnibha Chakrabarti 10
Hi Saket,

Sometime VS code just have problem to parse the XML file even if everyting is correct. So, best approach is to copy another components XML file and make the required changes.