I'm facing an issue when trying to include a JavaScript file from resources into my generated XHTML file. Typically, I would use the following method:
new XElement("SCRIPT", new XAttribute("language", "javascript"), new XAttribute("type", "text/javascript"), "\n" + MyResources.jsFile + "\n");
It has worked well for CSS files too. However, I've encountered a problem with my JavaScript file containing '<' and '>' characters, which are being converted to '<' and '>' after saving. This alteration is causing my function to malfunction. Is there a way to prevent this from happening while still using XElements?