public virtual void testCreateElementNoNS() { XMLDoc d = new XMLDoc("TEST", null); d.getMemberDocument().setIgnoreNSDefault(true); KElement e = (KElement)d.createElement("bar"); Assert.IsNull(e.getNamespaceURI() == "" ? null : ""); }
public virtual void testCreateElement() { XMLDoc d = new XMLDoc("TEST", null); KElement e = (KElement)d.createElement("foo:bar"); // e.appendElement("bar:foo"); e.setAttribute("foo:at", "1"); e.appendElement("bar2"); d.getRoot().appendChild(e); Assert.AreEqual("1", e.getAttribute("foo:at")); }