# DD0023

**URL:** <https://forum.certara.com/t/dd0023/172>\
**Category:** Define.xml\
**Created:** [November 15, 2010, 9:17pm UTC](https://forum.certara.com/t/dd0023/172 "2010-11-15T21:17:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mkanevsky](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@mkanevsky](https://forum.certara.com/u/mkanevsky)\
**Post date:** [November 16, 2010, 12:25am UTC](https://forum.certara.com/t/dd0023/172/1 "2010-11-16T00:25:43Z")

</div>

Hi Leonid,

Rule DD0023 indicated that there is a problem with the order of elements within your define.xml. In your case, it looks like the def:leaf element is not in the right position within the element. The should have the following structure:

```auto
<ItemGroupDef>
     <ItemRef/>
     <ItemRef/>
     <ItemRef/>
     <def:leaf>
         <def:title>DM.XPT</def:title>
     </def:leaf>
</ItemGroupDef>

```

Check to make sure that def:leaf is the last element within and the only elements that come before it are elements.

Regards,  
Max

---

<div class="post-metadata">

**Author:** ![Leonid](https://avatars.discourse-cdn.com/v4/letter/l/d9b06d/32.png) [@Leonid](https://forum.certara.com/u/Leonid)\
**Post date:** [November 29, 2010, 8:05pm UTC](https://forum.certara.com/t/dd0023/172/2 "2010-11-29T20:05:23Z")

</div>

Thanks Max! I updated my code per your suggestion and warning is gone.

I have some more warnings I need a help with:

1. What Rule DD005 does indicate? The message I’m getting is: Attribute ‘Role’ in wrong position within Define.xml. This message is present for every single variable in VLM. I checked the order of columns in paragraph 2.1.4 of Case Report Tabulaltion Data Definition Specification against columns in VLM tab of spreadsheet and I see no problem there. Where do I need to look for solution?

2. Another one I’m getting is DD0022: Invalid ‘def:StandardVersion’ value. Value: 2.0. It looks like this check does not recognize the ADaM Versions 2.0 or 2.1. Did I identify this problem correctly?

Thank you.

Leonid

---

<div class="post-metadata">

**Author:** ![Leonid](https://avatars.discourse-cdn.com/v4/letter/l/d9b06d/32.png) [@Leonid](https://forum.certara.com/u/Leonid)\
**Post date:** [November 15, 2010, 9:17pm UTC](https://forum.certara.com/t/dd0023/172/3 "2010-11-15T21:17:19Z")

</div>

Hi All,

I am having an error message when validating Define.xml for ADaM datasets. I am not sure what element order was violated. I checked an order of datasets and an order of variables inside of the datasets against their positions in define.xml. Everything looks fine. Would you please help?

Thank you in advance!

Leonid

| //ItemGroupDef[@OID=‘ADAE’]/def:leaf[1] | def:leaf | adae.xpt | [DD0023](http://www.opencdisc.org/#'Rules'!A23) | Element ‘def:leaf’ in wrong order within Define.xml | Metadata | Error | High |
| --- | --- | --- | --- | --- | --- | --- | --- |
| //ItemGroupDef[@OID=‘ADCM’]/def:leaf[1] | def:leaf | adcm.xpt | [DD0023](http://www.opencdisc.org/#'Rules'!A23) | Element ‘def:leaf’ in wrong order within Define.xml | Metadata | Error | High |
| //ItemGroupDef[@OID=‘ADDM’]/def:leaf[1] | def:leaf | addm.xpt | [DD0023](http://www.opencdisc.org/#'Rules'!A23) | Element ‘def:leaf’ in wrong order within Define.xml | Metadata | Error | High |
| //ItemGroupDef[@OID=‘ADDS’]/def:leaf[1] | def:leaf | adds.xpt | [DD0023](http://www.opencdisc.org/#'Rules'!A23) | Element ‘def:leaf’ in wrong order within Define.xml | Metadata | Error | High |
| //ItemGroupDef[@OID=‘ADDV’]/def:leaf[1] | def:leaf | addv.xpt | [DD0023](http://www.opencdisc.org/#'Rules'!A23) | Element ‘def:leaf’ in wrong order within Define.xml | Metadata | Error | High |
| //ItemGroupDef[@OID=‘ADEX’]/def:leaf[1] | def:leaf | adex.xpt | [DD0023](http://www.opencdisc.org/#'Rules'!A23) | Element ‘def:leaf’ in wrong order within Define.xml | Metadata | Error | High |
| //ItemGroupDef[@OID=‘ADLB’]/def:leaf[1] | def:leaf | adlb.xpt | [DD0023](http://www.opencdisc.org/#'Rules'!A23) | Element ‘def:leaf’ in wrong order within Define.xml | Metadata | Error | High |
| //ItemGroupDef[@OID=‘ADMH’]/def:leaf[1] | def:leaf | admh.xpt | [DD0023](http://www.opencdisc.org/#'Rules'!A23) | Element ‘def:leaf’ in wrong order within Define.xml | Metadata | Error | High |
| //ItemGroupDef[@OID=‘ADSL’]/def:leaf[1] | def:leaf | adsl.xpt | [DD0023](http://www.opencdisc.org/#'Rules'!A23) | Element ‘def:leaf’ in wrong order within Define.xml | Metadata | Error | High |
| //ItemGroupDef[@OID=‘ADVS’]/def:leaf[1] | def:leaf | advs.xpt | [DD0023](http://www.opencdisc.org/#'Rules'!A23) | Element ‘def:leaf’ in wrong order within Define.xml | Metadata | Error | High |
