private adlcp_rootv1p2.imscp.resourceType FindDefaultResource(identifierrefType2 item_identifier, adlcp_rootv1p2.imscp.resourcesType resources)
        {
            adlcp_rootv1p2.imscp.resourceType rs_empty = new adlcp_rootv1p2.imscp.resourceType();
            for (int ii = 0; ii < resources.resourceCount; ii++)
            {
                adlcp_rootv1p2.imscp.resourceType rs = resources.GetresourceAt(ii);

                string identifier = "";
                if (rs.Hasidentifier())
                {
                    identifier = rs.identifier.ToString();
                }
                if (identifier == item_identifier.ToString())
                {
                    return(rs);
                }
            }
            return(rs_empty);
        }
 public void Addresources(resourcesType newValue)
 {
     AppendDomElement("http://www.imsproject.org/xsd/imscp_rootv1p1p2", "resources", newValue);
 }
 public void ReplaceresourcesAt(resourcesType newValue, int index)
 {
     ReplaceDomElementAt("http://www.imsproject.org/xsd/imscp_rootv1p1p2", "resources", index, newValue);
 }
 public resourceEnumerator(resourcesType par)
 {
     parent = par;
     nIndex = -1;
 }