<?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 transform a dataset into an xml file using a specific xml schema defintion (xsd) in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-transform-a-dataset-into-an-xml-file-using-a-specific-xml/m-p/597468#M34943</link>
    <description>this might help:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Enterprise-Guide/Ask-the-expert-how-to-generate-an-xml-files-from-sas-datasets/m-p/477069#M30983" target="_blank"&gt;https://communities.sas.com/t5/SAS-Enterprise-Guide/Ask-the-expert-how-to-generate-an-xml-files-from-sas-datasets/m-p/477069#M30983&lt;/A&gt;</description>
    <pubDate>Thu, 17 Oct 2019 18:39:45 GMT</pubDate>
    <dc:creator>tomrvincent</dc:creator>
    <dc:date>2019-10-17T18:39:45Z</dc:date>
    <item>
      <title>How to transform a dataset into an xml file using a specific xml schema defintion (xsd)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-transform-a-dataset-into-an-xml-file-using-a-specific-xml/m-p/475482#M30840</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a lot of examples how to convert an xml file into a dataset and a dataset into an xml file.&lt;/P&gt;&lt;P&gt;How ever, if we are interested to )convert a dataset into an xml file using a specific xml schema definition, how can we do that using SAS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EX:&amp;nbsp; SAS Dataset&amp;nbsp; .... reading the xml schema definition (xsd)....then obtaining the proper xml file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;XSD (XML Schema Definition) is a World Wide Web Consortium (&lt;A href="https://searchmicroservices.techtarget.com/definition/W3C-World-Wide-Web-Consortium" target="_blank"&gt;W3C&lt;/A&gt;) recommendation that specifies how to formally describe the elements in an Extensible Markup Language (&lt;A href="https://searchmicroservices.techtarget.com/definition/XML-Extensible-Markup-Language" target="_blank"&gt;XML&lt;/A&gt;) document. This description can be used to verify that each item of content in a document adheres to the description of the element in which the content is to be placed. XSD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Look at this simple XML document called "note.xml":&lt;/P&gt;&lt;DIV class="w3-example"&gt;&lt;DIV class="w3-code notranslate htmlHigh"&gt;&amp;lt;?xml version="1.0"?&amp;gt;&lt;BR /&gt;&amp;lt; note&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;lt; to&amp;gt;Tove&amp;lt;/to&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;lt; from&amp;gt;Jani&amp;lt;/from&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;lt; heading&amp;gt;Reminder&amp;lt;/heading&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;lt; body&amp;gt;Don't forget me this weekend!&amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt; /note&amp;gt;&lt;/DIV&gt;&lt;DIV class="w3-code notranslate htmlHigh"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="w3-code notranslate htmlHigh"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="w3-code notranslate htmlHigh"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="w3-code notranslate htmlHigh"&gt;&amp;lt;?xml version="1.0"?&amp;gt;&lt;BR /&gt;&amp;lt; xs:schema xmlns:xs="&lt;A href="http://www.w3.org/2001/XMLSchema" target="_blank"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;"&lt;BR /&gt;targetNamespace="&lt;A href="https://www.w3schools.com" target="_blank"&gt;https://www.w3schools.com&lt;/A&gt;"&lt;BR /&gt;xmlns="&lt;A href="https://www.w3schools.com" target="_blank"&gt;https://www.w3schools.com&lt;/A&gt;"&lt;BR /&gt;elementFormDefault="qualified"&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt; xs:element name="note"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;lt; xs:complexType&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt; xs:sequence&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt; xs:element name="to" type="xs:string"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt; xs:element name="from" type="xs:string"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt; xs:element name="heading" type="xs:string"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt; xs:element name="body" type="xs:string"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt; /xs:sequence&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;lt; /xs:complexType&amp;gt;&lt;BR /&gt;&amp;lt; /xs:element&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt; /xs:schema&amp;gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alepage&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jul 2018 19:20:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-transform-a-dataset-into-an-xml-file-using-a-specific-xml/m-p/475482#M30840</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2018-07-04T19:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to transform a dataset into an xml file using a specific xml schema defintion (xsd)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-transform-a-dataset-into-an-xml-file-using-a-specific-xml/m-p/597468#M34943</link>
      <description>this might help:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Enterprise-Guide/Ask-the-expert-how-to-generate-an-xml-files-from-sas-datasets/m-p/477069#M30983" target="_blank"&gt;https://communities.sas.com/t5/SAS-Enterprise-Guide/Ask-the-expert-how-to-generate-an-xml-files-from-sas-datasets/m-p/477069#M30983&lt;/A&gt;</description>
      <pubDate>Thu, 17 Oct 2019 18:39:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-transform-a-dataset-into-an-xml-file-using-a-specific-xml/m-p/597468#M34943</guid>
      <dc:creator>tomrvincent</dc:creator>
      <dc:date>2019-10-17T18:39:45Z</dc:date>
    </item>
  </channel>
</rss>

