添加一个自定义命名空间,并通过c#openxml sdk在openxml excel中使用它

有没有一个例子来添加一个自定义名称空间

例如

xmlns:bluh = "http://www.bluhbluh.com" 

Workbook/WorkbookPart/SpreadSheetDocument级别

使用C#OpenXml SDK?

不能将自定义命名空间添加到电子表格,word文档等等。OOXML格式不允许使用它。

请参阅Grey Knowlton的博客文章http://blogs.technet.com/b/gray_knowlton/archive/2009/12/23/what-is-custom-xml-and-the-impact-of-the-i4i-judgment -on-word.aspx