Created
May 21, 2012 07:02
-
-
Save ericeijkelenboom/2760890 to your computer and use it in GitHub Desktop.
CreateLocalExtensionXmlElement
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static XmlElement[] CreateLocalExtensionXmlElement() | |
{ | |
const string xml = "<documentParts><documentPart variantIndex=\"{0}\" documentPartIndex=\"{1}\" documentPartPropertyText=\"{2}\"><fileName>{3}</fileName><byteArray><![CDATA[{4}]]></byteArray></documentPart></documentParts>"; | |
var xmlDocument = new XmlDocument(); | |
xmlDocument.LoadXml(string.Format(xml, 0, 0, DocumentPartPropertyText, "Lorem ipsum dolor sit amet.pdf", CreateFile())); | |
return new[] {xmlDocument.DocumentElement}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment