<div dir="ltr">Right... thanks Wendy!<div>This is exactly what I&#39;ve been looking for.</div><div><br></div><div>Best,</div><div>Adrian</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 23, 2014 at 6:58 PM, Wendy Thomas <span dir="ltr">&lt;<a href="mailto:wlt@umn.edu" target="_blank">wlt@umn.edu</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>It part of the declaration</div><div>Note all xmlns mappings are to specific versions (in this 3.1)</div>

<div><br></div><div>&lt;DDIInstance xmlns=&quot;ddi:instance:3_1&quot; xmlns:a=&quot;ddi:archive:3_1&quot; xmlns:c=&quot;ddi:conceptualcomponent:3_1&quot; xmlns:d=&quot;ddi:datacollection:3_1&quot; xmlns:dc=&quot;<a href="http://purl.org/dc/elements/1.1/" target="_blank">http://purl.org/dc/elements/1.1/</a>&quot; xmlns:dce=&quot;ddi:dcelements:3_1&quot; xmlns:l=&quot;ddi:logicalproduct:3_1&quot;<br>


             xmlns:p=&quot;ddi:physicaldataproduct:3_1&quot; xmlns:pi=&quot;ddi:physicalinstance:3_1&quot; xmlns:r=&quot;ddi:reusable:3_1&quot; xmlns:s=&quot;ddi:studyunit:3_1&quot; xmlns:xhtml=&quot;<a href="http://www.w3.org/1999/xhtml" target="_blank">http://www.w3.org/1999/xhtml</a>&quot; xmlns:xsi=&quot;<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>&quot;<br>


             agency=&quot;us.mpc&quot; id=&quot;turkstat&quot; isMaintainable=&quot;true&quot; isPublished=&quot;false&quot; version=&quot;1.0.0&quot; versionDate=&quot;2011-04-20&quot; xsi:schemaLocation=&quot;ddi:instance:3_1 instance.xsd&quot;&gt;</div>


<div><br></div><div><br></div><div>The references to the schema location should also indicate the version number for pre-2.5 versions of DDI-Codebook</div><div>schemaLocation=&quot;<a href="http://www.icpsr.umich.edu/DDI" target="_blank">http://www.icpsr.umich.edu/DDI</a> <a href="http://www.icpsr.umich.edu/DDI/Version1-2-2.xsd" target="_blank">http://www.icpsr.umich.edu/DDI/Version1-2-2.xsd</a>&quot;</div>


<div><br></div><div>The schema naming convention changed in 2.5 to &quot;codebook.xsd&quot; however they should still be declaring a version number in the codebook element.  For Example: version=&quot;1.2.2&quot;</div><div>


<br></div><div>Wendy</div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Mon, Jun 23, 2014 at 10:47 AM, Adrian Dușa <span dir="ltr">&lt;<a href="mailto:dusa.adrian@unibuc.ro" target="_blank">dusa.adrian@unibuc.ro</a>&gt;</span> wrote:<br>


</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi all,<div><br></div><div>As part of another project, I am now trying to develop a series of R functions to read, update and produce XML DDI files, plus setup files accompanied by ASCII data files to convert between various statistical software.</div>




<div><br></div><div>The package is soon to be submitted to CRAN, open source and GPL.</div><div><br></div><div>Quick question: if a user provides a DDI XML file, is there an easy way to detect it&#39;s DDI version?</div>



<div>
I could of course check for various XML entries, specific to each version, but maybe there is a way to detect that in the XML header or something like that.</div><div><br></div><div>Thanks in advance for any hint,</div><div>




Adrian<span><font color="#888888"><br><div><div><br></div>-- <br><div dir="ltr">Adrian Dusa<br>University of Bucharest<br>Romanian Social Data Archive<br>1, Schitu Magureanu Bd.<br>050025 Bucharest sector 5<br>
Romania<br>Tel.:<a href="tel:%2B40%2021%203126618" value="+40213126618" target="_blank">+40 21 3126618</a> \<br>        <a href="tel:%2B40%2021%203120210" value="+40213120210" target="_blank">+40 21 3120210</a> / int.101<br>



Fax: <a href="tel:%2B40%2021%203158391" value="+40213158391" target="_blank">+40 21 3158391</a></div>
</div></font></span></div></div>
<br></div></div>_______________________________________________<br>
DDI-users mailing list<br>
<a href="mailto:DDI-users@icpsr.umich.edu" target="_blank">DDI-users@icpsr.umich.edu</a><br>
<a href="http://lists.icpsr.umich.edu/mailman/listinfo/ddi-users" target="_blank">http://lists.icpsr.umich.edu/mailman/listinfo/ddi-users</a><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br><div>Wendy L. Thomas                              Phone: <a href="tel:%2B1%20612.624.4389" value="+16126244389" target="_blank">+1 612.624.4389</a></div>

<div>Data Access Core Director                 Fax:   <a href="tel:%2B1%20612.626.8375" value="+16126268375" target="_blank">+1 612.626.8375</a></div><div>Minnesota Population Center             Email: <a href="mailto:wlt@umn.edu" target="_blank">wlt@umn.edu</a></div>


<div>University of Minnesota</div><div>50 Willey Hall</div><div>225 19th Avenue South</div><div>Minneapolis, MN 55455</div>
</font></span></div>
<br>_______________________________________________<br>
DDI-users mailing list<br>
<a href="mailto:DDI-users@icpsr.umich.edu">DDI-users@icpsr.umich.edu</a><br>
<a href="http://lists.icpsr.umich.edu/mailman/listinfo/ddi-users" target="_blank">http://lists.icpsr.umich.edu/mailman/listinfo/ddi-users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Adrian Dusa<br>University of Bucharest<br>Romanian Social Data Archive<br>1, Schitu Magureanu Bd.<br>050025 Bucharest sector 5<br>Romania<br>

Tel.:+40 21 3126618 \<br>        +40 21 3120210 / int.101<br>Fax: +40 21 3158391</div>
</div>