Search a missing closing tag in XML file -
this question has answer here:
- can't find unclosed element in xml 4 answers
i have xml file of size 1.2 gb.
cat tpl.xml | grep -i "</es:vsdatae1ttp>" | wc -l 30844 cat tpl.xml | grep -i "<es:vsdatae1ttp>" | wc -l 30845
from above can see on closing tag missing. want know @ place in xml file tag missing, means not closing. if can line number can work out original problem.
please me in this.
use library such simplexml
, e.g. scripting language , try parse file. little luck (given filesize), library error out on missing tag , give error message indicating problem is.
for example, in php:
try { simplexml_load_file ($your_file); } catch (exception $e) { echo $e; }
Comments
Post a Comment