|
-
October 9th, 2011, 10:42 AM
#1
Changing the Document Property of docx file.
Hi,
I wanted to change the xmlns property in the document.xml file which we get when we unzip the .docx file. When we change the extension of .docx file to .zip and then unzip the .zip to some folder. then we get xml files . I want to change the xmlns property in the document.xml file. . If anybody knows please help me regarding this..! Thanks in advance.!
-
October 9th, 2011, 12:47 PM
#2
Re: Changing the Document Property of docx file.
Couldn't you just open the XML file and change the xmlns attribute on the root? If you need to do it in code, XElement in System.XML.Linq provides support. Use XElement.Name.Namespace.
-
October 10th, 2011, 12:03 AM
#3
Re: Changing the Document Property of docx file.
Hello ,
Thanks for the Reply ,.
Basically the problem is with .docx file. when I upload the same .docx file to two different sites, that file works fine with only one site . when I see the properties that we get when we open the .docx with winzip archive , I got the change in xmlns attribute. When I change this attribute manually then that file works fine.. Now what i want is I want to do the whole procedure programatically, Please help me regarding this. .
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|