Я использовал xsd.exe для создания класса С# для чтения/записи файлов GPX. Как получить полученный XML файл для включения атрибута xsi: schemaLocation например.
Мне нужно следующее, но xsi: schemaLocation всегда отсутствует
<?xml version="1.0"?>
<gpx
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
version="1.1"
xmlns="http://www.topografix.com/GPX/1/1"
creator="ExpertGPS 1.1 - http://www.topografix.com"
xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd">
</gpx>