get XOML dynamically

How do we get XOML content of a Workflow file say "Workflow1"

Scenario:

i opened a new project (Sequential Console application). then "Workflow1" will automatically added to our project.

take a host Application and display the xoml content of that "Workflow1" file.



Answer this question

get XOML dynamically

  • Bhawna

    To show the XOML xml use the following steps:

    1. Start with a workflow project
    2. Right click on the project and choose "Add New Item"
    3. Choose the item "Sequential Workflow (With Code Separation)"
    4. Right click on the new file Workflow2.xoml or whatever it's called
    5. Choose "Open With"
    6. Choose "XML Editor" and click OK
    7. If you get prompted to close the existing file, click Yes
    8. Now you should see the XML

    Cheers,
    Paul



  • MichaelWard

    You are correct. but i am not looking that.

    let me explain my scenario in detail.

    1. open a new console Sequential Workflow project.

    "Workflow1.cs" file will automatically added to project.

    2. add new windows project to the existing project.

    3. place a textBox, button in form1 and set the button text="Get XOML"

    after clicking button i want to display the xoml content of "workflow1.cs" in textbox.

    Note: The "Workflow1.cs" is a either a "Code file" or "Code Separated File"

    but i want xoml content.


  • get XOML dynamically