Exemplo n.º 1
0
 public void EmptyElements()
 {
     const string pre = "<root><parent></parent><parent></parent></root>";
     const string post = "<root></root>";
     const string xpath = "//parent";
     var task = new Unwrap();
     Run(pre, post, xpath, task);
 }
Exemplo n.º 2
0
 public void ElementHasAttributes()
 {
     const string pre = "<root><parent a=\"\" b=\"\">1</parent></root>";
     const string post = "<root>1</root>";
     const string xpath = "//parent";
     var task = new Unwrap();
     Run(pre, post, xpath, task);
 }