Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Word xslt to xml without database

Word xslt to xml without database

Scheduled Pinned Locked Moved Web Development
databasexmlhelptutorialcsharp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Glenn E Lanier II
    wrote on last edited by
    #1

    I am trying to generate a Word document for an ASP.Net application -- all users will have Word 2003. I created a simple document in Word (Simple.doc). Then, I used an XML Schema found in Simple.xsd and placed a couple of XML placeholders in the document. I saved it as Simple.XML. Downloaded and ran wml2xslt to create simple.xslt. However, I am a little stuck as to how to get the data from my application into xml using this xslt file. Every example I can find seems to assume all data will be coming from a SQL database or databound web/win forms. I would like to do something like: Swap("xmlDataElementName", myObject1.ToString()); Is this doable; any help is greatly appreciated. --G

    P 1 Reply Last reply
    0
    • G Glenn E Lanier II

      I am trying to generate a Word document for an ASP.Net application -- all users will have Word 2003. I created a simple document in Word (Simple.doc). Then, I used an XML Schema found in Simple.xsd and placed a couple of XML placeholders in the document. I saved it as Simple.XML. Downloaded and ran wml2xslt to create simple.xslt. However, I am a little stuck as to how to get the data from my application into xml using this xslt file. Every example I can find seems to assume all data will be coming from a SQL database or databound web/win forms. I would like to do something like: Swap("xmlDataElementName", myObject1.ToString()); Is this doable; any help is greatly appreciated. --G

      P Offline
      P Offline
      pmarfleet
      wrote on last edited by
      #2

      You could use the XmlSerializer[^] class to create an XML representation of your object at runtime.

      Paul Marfleet

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups