I keep on getting an error. I'm not too familiar with xml so I don't know what it means.
Xml does not allow most special characters (such as &,;,%,etc...).
To use these in your markup, (although I would avoid putting querystrings in a sitemap file. Try using mod_rewrite if you are running apache, or http://www.isapirewrite.com/ if you're running windows) These will rewrite your urls into "my-page-name/" instead of "page.php?i=1&p=2".
Anyway, back to the markup.
For & symbols, use &amp; wherever you need an amphersand and you should be fine. I would also kill any semi-colons you have in there just to be safe.
Thanks man! It helps a lot!
But I have a hosted website. How can I get mod_rewrite to work on a hosts server?
in your control panel (wherever it may be) for your hosting, you should have an option somewhere for re-write urls or something like that. If you don't, contact their technical support and ask them about the ability to re-write urls for search engine optimization.