<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><DDIInstance xmlns="ddi:instance:3_1" xmlns:a="ddi:archive:3_1" xmlns:c="ddi:conceptualcomponent:3_1" xmlns:d="ddi:datacollection:3_1" xmlns:dc="<a href="http://purl.org/dc/elements/1.1/">http://purl.org/dc/elements/1.1/</a>" xmlns:dce="ddi:dcelements:3_1" xmlns:l="ddi:logicalproduct:3_1"<br>
xmlns:p="ddi:physicaldataproduct:3_1" xmlns:pi="ddi:physicalinstance:3_1" xmlns:r="ddi:reusable:3_1" xmlns:s="ddi:studyunit:3_1" xmlns:xhtml="<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>" xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>"<br>
agency="us.mpc" id="turkstat" isMaintainable="true" isPublished="false" version="1.0.0" versionDate="2011-04-20" xsi:schemaLocation="ddi:instance:3_1 instance.xsd"></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="<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>"</div>
<div><br></div><div>The schema naming convention changed in 2.5 to "codebook.xsd" however they should still be declaring a version number in the codebook element. For Example: version="1.2.2"</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"><<a href="mailto:dusa.adrian@unibuc.ro" target="_blank">dusa.adrian@unibuc.ro</a>></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'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>