XML parsing failed error when sitemap.xml is called via browser

In certain customer cases, we have been forced to embed Javascript calls within a given menu item from the site menu. This largely has to do with 3rd party integration of certain functions.

We were previously using the Google XML Sitemaps plugin which seemed to handle this very well: The Google XML Sitemaps plugin would parse the javascript and display it (without all of the link info).

As you are probably aware, the Google XML Sitemaps plugin is not yet compatible with Multi-Site (There is a version working through beta testing right now but it has its own problems.)

Since that plugin doesn't work with Multi-Site, we decided to give Simple Sitemaps a try.

The problem we are having is that Simple Sitemaps is trying to display all of the Javascript details and is generating the XML parsing error as a result.

Here is an example of the error:

XML parsing failed

XML parsing failed: syntax error (Line: 129, Character: 76)

Reparse document as HTML
well-formedness constraint: entity declared
126: <priority>1.0</priority>
127: </url>
128: <url>
129: <loc>javascript:SFLNewWin('http://www.domain.com/newsletters/?QID=223&tokenid=ae0bc3d83dfd1e061dd1e06c624b232b85')</loc>
130: <lastmod>2012-01-07T19:52:33+00:00</lastmod>
131: <priority>1.0</priority>
132: </url>

I'm wondering if there's any suggested work-around to handle this?