I am using the following javascript replace function while formatting my xml code.
xml = xmll.replace(/<\/?[0-9]{1,}>/g, '');
But it is not creating line break even i used the following function too to create new line.
xml = xmll.replace(/<\/?[0-9]{1,}>/g, '\n');
Still it did nt create line break or new line after closing tags of xml. Can anybody know what should be the possible solution?