Re: JavaScript aligns <XML> from the HTML source - undesired
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: JavaScript aligns <XML> from the HTML source - undesired

From: lidija <lidija_dot_sketa@remove_this_email.si>
Date: Fri Aug 19 2005 - 10:43:51 CEST

Thank you for your help.

Since I want a simple solution, I just replaced all occurrences of the
tabs in the string (since XML itself doesn't contain any tabs). I do a
global search for tab characters with regular expression and remove them:

xmlTabs = xmltest.XMLDocument.xml;
str = xmlTabs.replace(/\t/g, "");

For now this suffices: str contains XML as it was before, no pretty-print.

Thanks again,
Lidija
Received on Mon Oct 24 02:14:16 2005