Retrieving Custom XML Parts using OfficeJs in Word Online

Zen Lang 0 Reputation points
2024-12-23T06:34:09.5866667+00:00

I have a Word document that contains Custom XML Parts, and it works perfectly when opened in the Desktop version of Word. Using Office.js, I can successfully retrieve the XML parts with the following method:

Get CustomXML Parts by Namespace

However, when I open the same document in Word Online, the getByNamespaceAsync function returns an empty result. Worse, it appears that Word Online strips out the custom XML parts entirely when the document is opened.

Does the getByNamespaceAsync function not support Word Online? If that's the case, what alternatives should we use instead?

Thanks!

Word
Word
A family of Microsoft word processing software products for creating web, email, and print documents.
909 questions
Office
Office
A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.
1,804 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
4,107 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.