Creates XmlData from a string
View code on GitHub
Inheritance Hierarchy
DeltaEngine.Content.Xml XmlSnippet
Namespace: DeltaEngine.Content.Xml
Assembly: DeltaEngine.Content.Xml (in DeltaEngine.Content.Xml.dll) Version: 1.1.1.0 (1.1.1)
Syntax
The XmlSnippet type exposes the following members.
Constructors
Name | Description | |
---|---|---|
XmlSnippet | Initializes a new instance of the XmlSnippet class |
Properties
Name | Description | |
---|---|---|
Root |
Remarks
Examples
[Test] public void ToAndFromXmlSnippetLeavesTextUnchanged() { var snippet = CreateTestXmlData().ToString(); var xmlSnippet = new XmlSnippet(snippet); Assert.AreEqual(snippet, xmlSnippet.Root.ToString()); }
[Test] public void IgnoresLeadingJunk() { var snippet = CreateTestXmlData().ToString(); var xmlSnippet = new XmlSnippet("blahblah" + snippet); Assert.AreEqual(snippet, xmlSnippet.Root.ToString()); }
See Also