I am working with Office Open SDK 2.5 at the moment, and the cool thing is, all namespaces declared in the document tag are possible to use wherever in my document (not only default one). For example:
<w:document xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"> <w:body> <wp:p here i have access to 'wp' too for example/> </w:body> </w:document> But the problem I'm having is when I'm trying to add some xml through Linq-to-xml, because this saved xml (textfile) uses certain prefixes that I declared in the document tag but not in the saved xml, XElement.Load(...) says there are missing prefixes. Is there any way I can add the xml to my body without letting it do checks for valid xml?
No comments:
Post a Comment