Parameters
- name
- value
Library/Library.Test/TestHtmlParser.cs
C# | Copy Code |
---|---|
HtmlLightDocument doc = new HtmlLightDocument(); XmlLightElement body = new XmlLightElement(new XmlLightElement(doc, "html"), "body"); body.IsEmpty = false; body.Attributes.Add("id", "bdy"); Assert.AreEqual("<html> <body id=\"bdy\"> </body> </html>", Normalize(doc.InnerXml)); |
VB.NET | Copy Code |
---|---|
Dim doc As New HtmlLightDocument() Dim body As New XmlLightElement(New XmlLightElement(doc, "html"), "body") body.IsEmpty = False body.Attributes.Add("id", "bdy") Assert.AreEqual("<html> <body id=""bdy""> </body> </html>", Normalize(doc.InnerXml)) |
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7
Reference
XmlLightAttributes ClassXmlLightAttributes Members