WriteStartElement() public method

See XmlWriter.WriteStartElement(string, string, string).
public WriteStartElement ( string prefix, string localName, string ns ) : void
prefix string
localName string
ns string
return void
Ejemplo n.º 1
0
		public void ShouldUseBaseUriForDocument()
		{
			XPathDocumentWriter writer = new XPathDocumentWriter("kzu-uri");
			writer.WriteStartElement("Foo");
			XPathDocument doc = writer.Close();

			Assert.IsNotNull(doc);
			Assert.AreEqual("kzu-uri", doc.CreateNavigator().BaseURI);
		}
Ejemplo n.º 2
0
		public void ShouldAcceptStartElementRootOnly()
		{
			XPathDocumentWriter writer = new XPathDocumentWriter();
			writer.WriteStartElement("Foo");
			XPathDocument doc = writer.Close();
		}