<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to edit / modify the template xml from network dataset ? in ArcGIS Network Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-network-analyst-questions/how-to-edit-modify-the-template-xml-from-network/m-p/15544#M193</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you test the original network, before you made the template and the modifications?&amp;nbsp; Did that network work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You said the solve failed with the new network.&amp;nbsp; What was the failure message?&amp;nbsp; This will likely give some clue about why it failed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Apr 2018 17:24:00 GMT</pubDate>
    <dc:creator>MelindaMorang</dc:creator>
    <dc:date>2018-04-19T17:24:00Z</dc:date>
    <item>
      <title>How to edit / modify the template xml from network dataset ?</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/how-to-edit-modify-the-template-xml-from-network/m-p/15543#M192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This attached customized.xml is created as the below workflow:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL style="margin-top: 0cm;"&gt;&lt;LI&gt;Created a network dataset manually in Arcmap by using the converted streets, and newly generated turns data.&lt;/LI&gt;&lt;LI&gt;Added all the attributes that the network dataset needs(for example, oneway, traversable, time, length etc. )&lt;/LI&gt;&lt;LI&gt;Then exported a xml template(original.xml) from this network dataset using arcmap tool (ArcToolbox &amp;gt; Network Analyst Tools &amp;gt; Network Dataset &amp;gt; Create Network Dataset From Template).&lt;/LI&gt;&lt;LI&gt;Customized the original.xml template in our c# code by adding new attributes based on how many counties of source data we converted.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;(To be specific, if you checked the original.xml &amp;nbsp;we looped through elements inside the &amp;lt;EdgeFeatureSources&amp;gt;&amp;lt;/EdgeFeatureSources&amp;gt;, and copy the element and insert to &amp;lt;EdgeFeatureSources&amp;gt;, and changed both &amp;lt;EdgeFeatureSource&amp;gt; name to our converted street feature class name. and we did the similar thing to the &amp;lt;NetworkAssignments&amp;gt;&amp;lt;/NetworkAssignments&amp;gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I can create a network dataset with the customized.xml and built it successfully. But after add two stops along the street and click solve in Arcmap it always failed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So my questions are:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL style="margin-top: 0cm;"&gt;&lt;LI&gt;If the network dataset template support add attributes by edit the xml?&lt;/LI&gt;&lt;LI&gt;If not , how do you suggest solve the need that we want customize network dataset attributes &amp;nbsp;with arcpy &amp;nbsp;base on how many counties of source data we converted .&lt;/LI&gt;&lt;LI&gt;If so, what’s right way to edit the xml.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2018 06:24:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/how-to-edit-modify-the-template-xml-from-network/m-p/15543#M192</guid>
      <dc:creator>LeoDeng</dc:creator>
      <dc:date>2018-04-19T06:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit / modify the template xml from network dataset ?</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/how-to-edit-modify-the-template-xml-from-network/m-p/15544#M193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you test the original network, before you made the template and the modifications?&amp;nbsp; Did that network work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You said the solve failed with the new network.&amp;nbsp; What was the failure message?&amp;nbsp; This will likely give some clue about why it failed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2018 17:24:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/how-to-edit-modify-the-template-xml-from-network/m-p/15544#M193</guid>
      <dc:creator>MelindaMorang</dc:creator>
      <dc:date>2018-04-19T17:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit / modify the template xml from network dataset ?</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/how-to-edit-modify-the-template-xml-from-network/m-p/15545#M194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) The original network is correct, before made the template and modifications. And it worked fine.&lt;/P&gt;&lt;P&gt;2) There was not any failure message. No&amp;nbsp;error&amp;nbsp;dialog or windows popup. The only clue about this is there is a status shows 'solve failed'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW, the&amp;nbsp;&lt;SPAN style="color: #000000;"&gt;quotation mark used in the template xml&amp;nbsp;should be single or double?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2018 07:08:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/how-to-edit-modify-the-template-xml-from-network/m-p/15545#M194</guid>
      <dc:creator>LeoDeng</dc:creator>
      <dc:date>2018-04-20T07:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit / modify the template xml from network dataset ?</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/how-to-edit-modify-the-template-xml-from-network/m-p/15546#M195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry it's taken a while to get back to you.&amp;nbsp; Did you ever get this to work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To answer your original questions:&lt;/P&gt;&lt;P&gt;1. If the network dataset template support add attributes by edit the xml?&lt;/P&gt;&lt;P&gt;^ Yes.&amp;nbsp; You can edit the XML template.&lt;BR /&gt;3. If so, what’s right way to edit the xml.&lt;/P&gt;&lt;P&gt;^ You should be able to edit it in any way you want, with a text editor manually, with some automated procedure, etc., as long as it remains valid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The original XML template uses single quotes.&amp;nbsp; I don't know if it makes a difference, but it seems like it would be safer to keep it the same as the original.&amp;nbsp; Additionally, I notice that the SpatialReference tag and various other place in the original uses &amp;amp;quot;, but your new template uses an actual " character.&amp;nbsp; This could be a problem also.&amp;nbsp; Try using WinMerge to see the differences between the two files.&amp;nbsp; I really don't know whether this matters, but these differences obscure the actual intentional changes you made, so it's hard for me to find them and see if there is a mistake somewhere there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2018 20:35:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/how-to-edit-modify-the-template-xml-from-network/m-p/15546#M195</guid>
      <dc:creator>MelindaMorang</dc:creator>
      <dc:date>2018-05-04T20:35:27Z</dc:date>
    </item>
  </channel>
</rss>

