Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

a 1 3 . Simpose that records for students ( otn , name, surname ) have been stored in a xML fle ( students ami

a13. Simpose that records for students (otn, name, surname) have been stored in a xML fle (students ami). Which code checks if the sludent number entered by user (to textbosi) already exists in the file?
a xoociment Liat = xoocument 1.
iftestilonI. Text wnodel MestageBos. Sho 'stn')
foreach (var nade in Ust. Eiements [" student').Elements (" sta"))
if(textBox1. Text=nnode Value). MessageSox Show("Already Existst7'?
foreach (var node in Lit("student"). Elements("stn"))
If(textBov1 Text ranode) MessageBox.Show('Atready Exists)');
d. XElement Las = XElement. Load['d///students mm):
foreach (var node in List Elements('student") Elements("stn"))
If(textbox]. Text anode) MessageBox.Show ("Already Existsi'?)
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Information And Database Systems 12th Asian Conference ACIIDS 2020 Phuket Thailand March 23 26 2020 Proceedings

Authors: Pawel Sitek ,Marcin Pietranik ,Marek Krotkiewicz ,Chutimet Srinilta

1st Edition

9811533792, 978-9811533792

More Books

Students also viewed these Databases questions

Question

Ty e2y Evaluate the integral dy

Answered: 1 week ago