I get an error when I try to add links containing & or ?. Is there a way to add those links anyway with a sitemap? As an example: http:/ /somesite.com/index.php?search=&category
You have to properly escape them - https://www.w3schools.com/html/html_entities.asp - i.e. you should use & instead of & in your URLs. You have to do the same think when you use them in HTML - so I recommend validating your website too - https://validator.w3.org/.
No, you don't. A sitemap is XML, which demands that you encode them. But HTML does NOT demand that. There is no harm in doing it, of course, but there is no demand for it.
Your sitemap generator will most likely handle such URLs automatically, so Google will accept them. For more information see this about entity escaping
A webpage delineate (sitemap) is a rundown of pages of a site. There are three essential sorts of website delineate: maps utilized amid the arranging of a Web webpage by its planners. Human-obvious postings, ordinarily various leveled, of the pages on a site. Organized postings proposed for web crawlers, for example, web crawlers. For iPhone camera issue visit https://www.uaetechnician.com/iphone-camera-repair.html
I use query string url all the time and have no problem with them. Google and Bing seem to handle them easily. I also use A! Sitemap Generator to make my site maps so it might just be you generators can't handle it.