Ejemplo n.º 1
0
    // Xử lý kết xuất
    public String Chuoi()
    {
        String kq = "";

        kq += "<" + Ten;
        foreach (XL_THUOC_TINH Thuoc_tinh in Danh_sach_thuoc_tinh)
        {
            kq += Thuoc_tinh.Chuoi();
        }

        if (Danh_sach_the.Count > 0)
        {
            kq += ">";
            foreach (XL_THE The in Danh_sach_the)
            {
                kq += The.Chuoi();
            }
            kq += "</" + Ten + ">";
        }
        else
        {
            kq += "/>";
        }
        return(kq);
    }
Ejemplo n.º 2
0
    public string Chuoi()
    {
        string Kq = "";

        Kq += "<" + Ten;
        foreach (XL_THUOC_TINH Thuoc_tinh in Danh_sach_thuoc_tinh)
        {
            Kq += Thuoc_tinh.Chuoi();
        }
        if (Danh_sach_the.Count > 0)
        {
            Kq += ">";
            foreach (XL_THE The in Danh_sach_the)
            {
                Kq += The.Chuoi();
            }
            Kq += "</" + Ten + ">";
        }
        else
        {
            Kq += "/>";
        }
        return(Kq);
    }