Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 8.3   8.4   8.5   9.0   9.1   9.2   9.3   9.4   9.5   10.0    Statistic  


Queries xml content of the word file.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
WordFile 6.2 Yes Yes Yes Yes Yes
MBS( "WordFile.GetXML"; WordFile { ; Part } )   More


Parameter Description Example value
WordFile The reference number of the open word file. $wordFile
Part Optional
The name of the part to query.
See WordFile.Parts for a list of parts.
if no part is given, we use the document.


Returns xml text or error.


Queries xml content of the word file.
Getting the raw xml allows you to make modification yourself like adding paragraphs or a table.


Query XML of first footer:

MBS( "WordFile.GetXML"; $wordFile; "footer1" )

Query document relations:

MBS( "WordFile.GetXML"; $WordFile; "document.xml.rels")

See also

Blog Entries

Release notes

  • Version 9.5
    • Improved WordFile.GetXML function to work with rels parts in the Word file.

Created 15th March 2016, last changed 6th November 2019

WordFile.GetMediaFile   -   WordFile.HasTag

Feedback: Report problem or ask question.

MBS Xojo Chart Plugins