Re: Adding XML payload to WordML document

From: Jason De Lorme (delormej_at_comcast.net)
Date: 08/05/04

  • Next message: angus: "very slow to step through the debugger"
    Date: Wed, 4 Aug 2004 23:43:10 -0400
    
    

    If anyone is interested, I did stumble accross a blog entry that Chris
    Kunicki had from Nov 2003
    (http://216.239.41.104/search?q=cache:w-y2iSLW7WQJ:blogs.officezealot.com/ch
    ris/archives/000025.html+Word.Document+Variables&hl=en), where he used the
    Document Variables! Which when accessed through XML is stored like this:

    <w:docVars>
    <w:docVar w:name="MyXML" w:val="&lt;Config&gt;&lt;var1&gt;True&lt;/var1&gt;
    &lt;var2&gt;False&lt;/var2&gt;&lt;/Config&gt;"/>
    </w:docVars>

    Thanks, Chris! (If you're out there reading this ;-).

    - Jason

    "Jason De Lorme" <delormej@comcast.net> wrote in message
    news:58OdnUn0No0Kf2PdRVn-pw@comcast.com...
    > Ok, I'm bracing for a beating... but I need to do this for several reasons
    > which I won't get into right here.
    >
    > I need to embed some "Context" information in the WordML stream that I'm
    > sending down to a client. Ideally, I'll be able to get away with storing
    > this information in attributes within my own markup, but I may need to go
    > beyond this. Is there any support for adding arbitrary XML into the
    WordML
    > document? Using attributes may not be rich enough, I'd like to just stick
    a
    > chunk of well-formed XML somewhere in the document and not have that
    > displayed in Word.
    >
    > ie. maybe in the <o:CustomDocumentProperties>... section?
    >
    >
    >


  • Next message: angus: "very slow to step through the debugger"

    Relevant Pages

    • Re: Anyone using Berkley XML DB w/Perl (of course)...?
      ... > Chris wrote: ... >> though an article I read on XML DB claims there is Perl support. ... I'd *really* like to play with this XML DB some... ... I'll download the Linux source and follow the lead I was given and see ...
      (comp.lang.perl.misc)
    • Re: writing xml files with a schema
      ... How would you place attributes of an element in the XML document??? ... Chris DeBoer wrote: ... >> To construct this in MATLAB, ... I can make a real nice schema in VS to verify my ...
      (comp.soft-sys.matlab)
    • Re: writing xml files with a schema
      ... How would you place attributes of an element in the XML document??? ... Chris DeBoer wrote: ... >> To construct this in MATLAB, ... I can make a real nice schema in VS to verify my ...
      (comp.soft-sys.matlab)
    • Re: [PHP] XML & HTTP
      ... Chris Shiflett wrote: ... >> I generated XML file. ... ways to send an XML file. ... is supposed to receive the XML document? ...
      (php.general)
    • Re: Data entry environment using Word 2003
      ... I cannot let the user delete any XML node by mistake. ... > I suggest using a template centered around the use of Styles, ... add if VBA can be used Document Variables. ... > and constrains the user not from deletion, but now you can easily detect ...
      (microsoft.public.office.developer.vba)