G'day ankit.tayal560,
I suspect your problem lies with backslashes in 'path=' values; and, quite possibly, any other special characters in attribute values.
As an example, consider 'path="...Components\"', where '\"' means a literal quote and don't end the string; that should probably be '\\"', meaning a literal backslash followed by a quote to end the string.
Take a look at quotemeta; note the '\Q' escape (which I personally use more often than the function).
Also see these sections from perlop:
Update: Added a missing quote: \\"' → '\\"'
— Ken
In reply to Re: How to modify an attribute containing special characters in a xml file?
by kcott
in thread How to modify an attribute containing special characters in a xml file?
by ankit.tayal560
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |