Reply
 
Thread Tools Display Modes
  #1   Report Post  
G Stark
 
Posts: n/a
Default How to import XML data into a Word document table

Is there a way to import XML data into a Word document table?

I do not need all the columns in the XML data file.

Is the an example handy. I have not been able to find one.

G. Stark


  #2   Report Post  
Word Heretic
 
Posts: n/a
Default

G'day "G Stark" ,

Create and attach an XSLT to transform the XML file into something
closer to a CSV, hiding all non-necc data as well, insert this and
keep the range, use the range to convert text to table.

Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice


G Stark reckoned:

Is there a way to import XML data into a Word document table?

I do not need all the columns in the XML data file.

Is the an example handy. I have not been able to find one.

G. Stark


  #3   Report Post  
Cindy M -WordMVP-
 
Posts: n/a
Default

Hi G,

Is there a way to import XML data into a Word document table?

I do not need all the columns in the XML data file.

Which version of Word are we discussing? Assuming it's
2003, there's one method that doesn't require any VBA: the
IncludeText field provides a switch that will pick up an XML
file. Note that the XML has to be in WordprocessingML syntax.
There's also a switch that will allow you to apply a transform.

The Word object model (VBA) also has command that will allow
you to insert XML directly into the document text. Here, again,
it must comply to the WordprocessingML schema.

Otherwise, you need an approach such as Steve outlines.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8
2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow
question or reply in the newsgroup and not by e-mail :-)

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Please give us REVEAL CODES like WORD PERFECT not reveal codes in. Rachel King Microsoft Word Help 38 August 21st 09 09:54 PM
Word 2003 [email protected] Microsoft Word Help 39 April 19th 06 06:35 PM
Envelope Address GR New Users 5 April 24th 05 09:48 PM
Locking Two Words Together to Make a Proper Compound Noun in Word WorkingWoman Microsoft Word Help 2 April 7th 05 02:33 PM
Converted document from WordPerfect. New footnotes are not being. C Lowman Microsoft Word Help 1 January 26th 05 10:19 PM


All times are GMT +1. The time now is 04:17 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"