comparing xml files, removing some html tags

From: Date: Mon, 18 Aug 2003 02:35:30 +0000
Subject: comparing xml files, removing some html tags
Groups: php.general 
Request: Send a blank email to php-general+get-159885@lists.php.net to get a copy of this message
Hi, I need to compare two XML files in order to find if they are "similar", i.e their DOM tree have the same structure. The ideia is to use Xerces to balance HTML files in order to create Xhtml and then compare. To make things a little easier for Xerces I am considering to remove some elements that do not make diference for my similarity point of view, for example, <script></script> tags, before calling xerces. So I was wondering which regular expression should I use to remove the <script>content</script> and so on... regards. __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com

« previous php.general (#159885) next »