Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-26-2015, 05:57 AM
Daedalus Daedalus is offline Word XML Content Controls for custom XML output Windows 7 32bit Word XML Content Controls for custom XML output Office 2010 32bit
Novice
Word XML Content Controls for custom XML output
 
Join Date: Apr 2015
Posts: 5
Daedalus is on a distinguished road
Default Word XML Content Controls for custom XML output

I'm trying to devise a way of taking a large number of Word docs/pages and converting the text/content within them to a custom XML output in the simplest way.
The documents in question are user manuals.

I was originally going down the custom XML route whereby the contents of the Word docs could be tagged manually with custom tags, and I would then use a custom VSTO add-in to output the tags to an XML file in accordance with a schema. However, after looking into that option it seems it not possible due to Word not supporting custom tagging (as such) anymore.

The other option which looks plausible is to use Custom XML Parts. I'm still a little unsure as to whether it's a good fit for what i'm trying to do though. As far as I can see, I could add custom parts to a document like

'Component'
'Procedure' (i.e remove or install)
'Part Number'


'Spares'
'Procedural step'
'graphics'

But the problem is, I don't know how many, let's say, 'Procedural steps' there will be for this particular component. It could be one or 20. If there were 20 then I would need 20 <proceduralStep></proceduralStep> XML elements in the output. Similarly there might be a whole list of 'spares' in one doc, and none in another, same with graphics, so the XML mapping needs to know when to add more elements, or not add elements where not necessary - so the output XML has the correct number of elements.

Does anybody know a good solution to what i'm trying to do?

Thanks.
Reply With Quote
  #2  
Old 11-26-2015, 01:38 PM
macropod's Avatar
macropod macropod is offline Word XML Content Controls for custom XML output Windows 7 64bit Word XML Content Controls for custom XML output Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Adding the tags you require shouldn't be difficult - provided there is a reliable way of programmatically identifying where the various elements begin and end and their hierarchical order (e.g. Is 'Procedural step' an element of 'Procedure'?).
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Tags
custom part, mapping, xml



Similar Threads
Thread Thread Starter Forum Replies Last Post
Word XML Content Controls for custom XML output Substitute for Content Controls in Word 97 - 2003 Document taryn Word 4 02-13-2015 01:30 PM
More than one content controls in a word document lucky16 Word VBA 6 07-10-2014 08:34 AM
How to use onchange event for content controls in word lucky16 Word VBA 7 06-06-2014 05:05 AM
Word XML Content Controls for custom XML output MS Word 2010 Content Controls and PDF Conversion. MaxInCO Word 3 02-13-2014 12:58 PM
Word 2010 Macro Enabled Template with Content Controls keen1598 Word VBA 7 01-29-2014 03:17 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:59 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft