<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/">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">http://www.w3.org/1999/xhtml</a>&quot; xmlns:xsi=&quot;<a href="http://www.w3.org/2001/XMLSchema-instance">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">http://www.icpsr.umich.edu/DDI</a> <a href="http://www.icpsr.umich.edu/DDI/Version1-2-2.xsd">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">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>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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 class="HOEnZb"><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.:+40 21 3126618 \<br>        +40 21 3120210 / int.101<br>

Fax: +40 21 3158391</div>
</div></font></span></div></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"><br>-- <br><div>Wendy L. Thomas                              Phone: +1 612.624.4389</div><div>Data Access Core Director                 Fax:   +1 612.626.8375</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>
</div>