<?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: Exporting XML Documents Using an XMLMap in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Exporting-XML-Documents-Using-an-XMLMap/m-p/871683#M344389</link>
    <description>&lt;P&gt;Please describe your indentation issue in a bit more detail. Also, if you want to post text to show the text from another file then you need to open a text box on the forum using the &amp;lt;/&amp;gt; icon above the message window and paste the text into that box. The main message windows on this forum will reformat pasted text and generally remove anything that might look like "indents" and generally changes white space. The result also gets HTML tags embedded so may have other artifacts that are not actually in your text file of the XML.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What program did you use to look at the resulting XML?&lt;/P&gt;</description>
    <pubDate>Mon, 24 Apr 2023 18:02:58 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2023-04-24T18:02:58Z</dc:date>
    <item>
      <title>Exporting XML Documents Using an XMLMap</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-XML-Documents-Using-an-XMLMap/m-p/871458#M344268</link>
      <description>&lt;P&gt;I am learning to import/export xml file using sas and for my learning I have manually created the data set and xml map file by copying the data and code given in the sas online documentation available here (page 59)&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/api/collections/pgmsascdc/9.4_3.5/docsets/engxml/content/engxml.pdf?locale=en" target="_blank"&gt;https://go.documentation.sas.com/api/collections/pgmsascdc/9.4_3.5/docsets/engxml/content/engxml.pdf?locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I used the same code to export nhl data set using a xml map. &lt;BR /&gt;libname myfiles 'c:\myfiles\';&lt;BR /&gt;filename out 'c:\output\nhlout.xml';&lt;BR /&gt;libname out xmlv2 xmltype=xmlmap xmlmap='c:\example\nhlexport.map';&lt;BR /&gt;data out.TEAMS;&lt;BR /&gt;set myfiles.teams;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;I was expecting the same output as shown in the documentation but&amp;nbsp;my output lost indentation that looks like this and every xml file record is aligned to left without showing proper&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;lt;?xml version="1.0" encoding="utf-8" ?&amp;gt;&lt;BR /&gt;&amp;lt;!-- SAS XML Libname Engine (SAS92XML)&lt;BR /&gt;SAS XMLMap Generated Output&lt;BR /&gt;Version V.03.03M0P10122017&lt;BR /&gt;Created 2017-10-13T15:54:55&lt;BR /&gt;--&amp;gt;&lt;BR /&gt;&amp;lt;NHL description="Teams of the National Hockey League"&amp;gt;&lt;BR /&gt;&amp;lt;CONFERENCE&amp;gt;Eastern&lt;BR /&gt;&amp;lt;DIVISION&amp;gt;Southeast&lt;BR /&gt;&amp;lt;TEAM name="Thrashers" abbrev="ATL" /&amp;gt;&lt;BR /&gt;&amp;lt;TEAM name="Hurricanes" abbrev="CAR" /&amp;gt;&lt;BR /&gt;&amp;lt;TEAM name="Panthers" abbrev="FLA" /&amp;gt;&lt;BR /&gt;&amp;lt;TEAM name="Lightning" abbrev="TB" /&amp;gt;&lt;BR /&gt;&amp;lt;TEAM name="Capitals" abbrev="WSH" /&amp;gt;&lt;BR /&gt;&amp;lt;/DIVISION&amp;gt;&lt;BR /&gt;&amp;lt;/CONFERENCE&amp;gt;&lt;BR /&gt;&amp;lt;CONFERENCE&amp;gt;Western&lt;BR /&gt;&amp;lt;DIVISION&amp;gt;Pacific&lt;BR /&gt;&amp;lt;TEAM name="Stars" abbrev="DAL" /&amp;gt;&lt;BR /&gt;&amp;lt;TEAM name="Kings" abbrev="LA" /&amp;gt;&lt;BR /&gt;&amp;lt;TEAM name="Ducks" abbrev="ANA" /&amp;gt;&lt;BR /&gt;&amp;lt;TEAM name="Coyotes" abbrev="PHX" /&amp;gt;&lt;BR /&gt;&amp;lt;TEAM name="Sharks" abbrev="SJ" /&amp;gt;&lt;BR /&gt;&amp;lt;/DIVISION&amp;gt;&lt;BR /&gt;&amp;lt;/CONFERENCE&amp;gt;&lt;BR /&gt;&amp;lt;/NHL&amp;gt;&lt;BR /&gt;Need advice from experts here to get my indentation issue fixed.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Apr 2023 20:35:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-XML-Documents-Using-an-XMLMap/m-p/871458#M344268</guid>
      <dc:creator>rnmishra</dc:creator>
      <dc:date>2023-04-23T20:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting XML Documents Using an XMLMap</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-XML-Documents-Using-an-XMLMap/m-p/871495#M344273</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I don't know if it's feasible through SAS but you could use an external&amp;nbsp;&lt;A href="https://www.freeformatter.com/xml-formatter.html" target="_blank" rel="noopener"&gt;xml-formatter&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 05:05:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-XML-Documents-Using-an-XMLMap/m-p/871495#M344273</guid>
      <dc:creator>Oligolas</dc:creator>
      <dc:date>2023-04-24T05:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting XML Documents Using an XMLMap</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-XML-Documents-Using-an-XMLMap/m-p/871683#M344389</link>
      <description>&lt;P&gt;Please describe your indentation issue in a bit more detail. Also, if you want to post text to show the text from another file then you need to open a text box on the forum using the &amp;lt;/&amp;gt; icon above the message window and paste the text into that box. The main message windows on this forum will reformat pasted text and generally remove anything that might look like "indents" and generally changes white space. The result also gets HTML tags embedded so may have other artifacts that are not actually in your text file of the XML.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What program did you use to look at the resulting XML?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 18:02:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-XML-Documents-Using-an-XMLMap/m-p/871683#M344389</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-04-24T18:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting XML Documents Using an XMLMap</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-XML-Documents-Using-an-XMLMap/m-p/871758#M344427</link>
      <description>&lt;P&gt;White space in XML is not significant.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&amp;lt;DIVISION&amp;gt;Southeast
&amp;lt;TEAM name="Thrashers" abbrev="ATL" /&amp;gt;
&amp;lt;TEAM name="Hurricanes" abbrev="CAR" /&amp;gt;
&amp;lt;TEAM name="Panthers" abbrev="FLA" /&amp;gt;
&amp;lt;TEAM name="Lightning" abbrev="TB" /&amp;gt;
&amp;lt;TEAM name="Capitals" abbrev="WSH" /&amp;gt;
&amp;lt;/DIVISION&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Is the exact same thing as&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&amp;lt;DIVISION&amp;gt;Southeast
  &amp;lt;TEAM name="Thrashers" abbrev="ATL" /&amp;gt;
  &amp;lt;TEAM name="Hurricanes" abbrev="CAR" /&amp;gt;
  &amp;lt;TEAM name="Panthers" abbrev="FLA" /&amp;gt;
  &amp;lt;TEAM name="Lightning" abbrev="TB" /&amp;gt;
  &amp;lt;TEAM name="Capitals" abbrev="WSH" /&amp;gt;
&amp;lt;/DIVISION&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or this&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&amp;lt;DIVISION&amp;gt;Southeast&amp;lt;TEAM name="Thrashers" abbrev="ATL" /&amp;gt;&amp;lt;TEAM name="Hurricanes" abbrev="CAR" /&amp;gt;&amp;lt;TEAM name="Panthers" abbrev="FLA" /&amp;gt;&amp;lt;TEAM name="Lightning" abbrev="TB" /&amp;gt;&amp;lt;TEAM name="Capitals" abbrev="WSH" /&amp;gt;&amp;lt;/DIVISION&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Apr 2023 23:54:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-XML-Documents-Using-an-XMLMap/m-p/871758#M344427</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-04-24T23:54:01Z</dc:date>
    </item>
  </channel>
</rss>

