Expand|Select|Wrap|Line Numbers
- <?xml version="1.0" encoding="utf-8"?>
- <note>
- <to>Tove</to>
- <from name=ahmad>Jani</from>
- <heading>Reminder
- <body>Don't forget me this weekend!</body>
- </note>
Above is my xml file which contains two errors.
1. the attribute value of from tag in not enclosed in "".
2. heading tag has no ending tag.
i want a php program to fix these errors automatically.
enclose the attribute value in "" and place an ending tag for heading tag.
Any one who can help me???