Advertisement
Guest User

Untitled

a guest
Oct 12th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.33 KB | None | 0 0
  1.  public void RemoverBook ( XmlDocument doc)
  2.     {
  3.  
  4.     Console.WriteLine("Remover primeiro livro - exercicio 3.7");
  5.     XmlNode root = doc.DocumentElement;
  6.  
  7.         //Remove the title element.
  8.         root.RemoveChild(root.FirstChild);
  9.  
  10.         Console.WriteLine("Livro removido com sucesso");
  11.         doc.Save(Console.Out);
  12.  
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement