function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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.
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.