Esempio n. 1
0
    protected void xmlSearchBtn_Click(object sender, EventArgs e)
    {
        xmlOperationsService.Service1Client s2 = new xmlOperationsService.Service1Client();

        string xmlfile  = "http://www.public.asu.edu/~srpate19/Movies.xml";
        string keyword1 = "Inside Out";

        if (xmlFile.Text != "" && xmlFile.Text != " ")
        {
            xmlfile = xmlFile.Text;
        }
        if (keyword.Text != "" && keyword.Text != " ")
        {
            keyword1 = keyword.Text;
        }
        result2.Text = s2.searchElement(xmlfile, keyword1);
    }
Esempio n. 2
0
    protected void xmlVerifyBtn_Click(object sender, EventArgs e)
    {
        xmlOperationsService.Service1Client s1 = new xmlOperationsService.Service1Client();

        string xmlfile = "http://www.public.asu.edu/~srpate19/Movies.xml";
        string xsdfile = "http://www.public.asu.edu/~srpate19/Movies.xsd";

        if (xmlFile.Text != "" && xmlFile.Text != " ")
        {
            xmlfile = xmlFile.Text;
        }
        if (xsdFile.Text != "" && xsdFile.Text != " ")
        {
            xsdfile = xsdFile.Text;
        }

        result1.Text = s1.XmlVerification(xmlfile, xsdfile);
    }