CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2011
    Posts
    2

    Post 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.!

  2. #2
    Join Date
    Jun 2009
    Posts
    10

    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.

  3. #3
    Join Date
    Oct 2011
    Posts
    2

    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
  •  





Click Here to Expand Forum to Full Width

Featured