G
Guest
I have added an XML file to my project and set it up like so:
<rotas xmlns = "http:\\ etc..">
<Managers>
<manager ID = "1" FirstName = "Bill" LastName = "Gates"<\manager>
<\Managers>
<\rotas>
Now, when I add a new manager row to this table called Managers, it doesn't
appear between the <Managers> tags, but instead it appears just below it. I
then have difficulty in deleting a new file as it can't be found, probably
due to this error.
The syntax I am using to add a new manager row is:
DataRow row = rotas1.manager.NewRow();
string [] ar = new string [3] {txtID.Text, txtFirstName.Text,
txtLastName.Text};
for(int i = o; i<ar.Length; i++)
{
row = ar;
}
rotas1.manager.Rows.Add(row);
rotas1.WriteXml("..\\..\\XMLFile1.xml");
Can anyone please point me in the right direction.
<rotas xmlns = "http:\\ etc..">
<Managers>
<manager ID = "1" FirstName = "Bill" LastName = "Gates"<\manager>
<\Managers>
<\rotas>
Now, when I add a new manager row to this table called Managers, it doesn't
appear between the <Managers> tags, but instead it appears just below it. I
then have difficulty in deleting a new file as it can't be found, probably
due to this error.
The syntax I am using to add a new manager row is:
DataRow row = rotas1.manager.NewRow();
string [] ar = new string [3] {txtID.Text, txtFirstName.Text,
txtLastName.Text};
for(int i = o; i<ar.Length; i++)
{
row = ar;
}
rotas1.manager.Rows.Add(row);
rotas1.WriteXml("..\\..\\XMLFile1.xml");
Can anyone please point me in the right direction.