Search a missing closing tag in XML file -


this question has answer here:

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

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -