Windows Vista Forums

Console Window and XmlSchema

  1. #1


    Terrance Guest

    Console Window and XmlSchema

    Good Afternoon:

    I have two questions I was hoping someone can help me with.

    1. I've created a app that creates a xml file; the project was constructed
    as a console window. I want to know is there anyway to suppress the console
    window from showing? One of the options is I have is to generate the xml file
    without showing the console window. Even though I'm not calling the Console
    it still flashes. Any suggestions. I plan on running this exe as a scheduled
    task. Is there a better method in doing that; like should it be a library
    (dll) file? Would a dll run as a scheduled task?

    2. The xml file that I'm creating needs a schema. Is there any good
    information on how to create the schema for such a file? It's a simple xml
    file with that's in the following format:

    <main>
    <record>
    <name>Joe Smith</name>
    .... other elements
    </record>
    <record>....
    </main>
    --
    TC

      My System SpecsSystem Spec

  2. #2


    Mr. Arnold Guest

    Re: Console Window and XmlSchema


    "Terrance" <Terrance@xxxxxx> wrote in message
    news:267E91B0-62F8-4B3E-8C24-9CAC831DFBFB@xxxxxx

    > Good Afternoon:
    >
    > I have two questions I was hoping someone can help me with.
    >
    > 1. I've created a app that creates a xml file; the project was constructed
    > as a console window. I want to know is there anyway to suppress the
    > console
    > window from showing? One of the options is I have is to generate the xml
    > file
    > without showing the console window. Even though I'm not calling the
    > Console
    > it still flashes. Any suggestions. I plan on running this exe as a
    > scheduled
    > task. Is there a better method in doing that; like should it be a library
    > (dll) file? Would a dll run as a scheduled task?
    What do you care if the Console application is showing the console?
    So, you have it running as an unattened scheduled task, there is nothing
    wrong with that.

    No, you can't schedule a DLL to run by itself. A DLL must be hosted by an
    EXE that's using the DLL. The Task Scheduler knows nothing a about the DLL
    interfaces. Only a program/exe that was written by the developer to use the
    DLL would know about the DLL's interfaces and methods, and the Task
    Scheduler doesn't know them.

    >
    > 2. The xml file that I'm creating needs a schema. Is there any good
    > information on how to create the schema for such a file? It's a simple xml
    > file with that's in the following format:
    >
    There are plenty of articles on Google or Dogpile.com


      My System SpecsSystem Spec

  3. #3


    Terrance Guest

    Re: Console Window and XmlSchema

    I'm looking for some examples for creating a schema programmatically. I've
    searched using Yahoo and found articles in creating a schema in the IDE of VS
    but nothing programmatically.

    The reason I don't want the console to flash was because it may be
    distracting for the user. I'm trying to make the app user friendly as
    possible.


    --
    TC


    "Mr. Arnold" wrote:

    >
    > "Terrance" <Terrance@xxxxxx> wrote in message
    > news:267E91B0-62F8-4B3E-8C24-9CAC831DFBFB@xxxxxx

    > > Good Afternoon:
    > >
    > > I have two questions I was hoping someone can help me with.
    > >
    > > 1. I've created a app that creates a xml file; the project was constructed
    > > as a console window. I want to know is there anyway to suppress the
    > > console
    > > window from showing? One of the options is I have is to generate the xml
    > > file
    > > without showing the console window. Even though I'm not calling the
    > > Console
    > > it still flashes. Any suggestions. I plan on running this exe as a
    > > scheduled
    > > task. Is there a better method in doing that; like should it be a library
    > > (dll) file? Would a dll run as a scheduled task?
    >
    > What do you care if the Console application is showing the console?
    > So, you have it running as an unattened scheduled task, there is nothing
    > wrong with that.
    >
    > No, you can't schedule a DLL to run by itself. A DLL must be hosted by an
    > EXE that's using the DLL. The Task Scheduler knows nothing a about the DLL
    > interfaces. Only a program/exe that was written by the developer to use the
    > DLL would know about the DLL's interfaces and methods, and the Task
    > Scheduler doesn't know them.
    >

    > >
    > > 2. The xml file that I'm creating needs a schema. Is there any good
    > > information on how to create the schema for such a file? It's a simple xml
    > > file with that's in the following format:
    > >
    >
    > There are plenty of articles on Google or Dogpile.com
    >
    >

      My System SpecsSystem Spec

  4. #4


    Mr. Arnold Guest

    Re: Console Window and XmlSchema


    "Terrance" <Terrance@xxxxxx> wrote in message
    news:97A6A845-62B3-4985-902E-9067AFF19D97@xxxxxx

    > I'm looking for some examples for creating a schema programmatically. I've
    > searched using Yahoo and found articles in creating a schema in the IDE of
    > VS
    > but nothing programmatically.
    Programmically create a XSD to do what? The XSD is based off an existing XML
    file. The XML is validated against its XSD. You change the the XML file, you
    create a XSD from it in VS 2008 or some other XML tool, and you validate the
    XML file's data and tags against its XSD programmically to veryify that the
    XML is correct when using the XML in a program..

    >
    > The reason I don't want the console to flash was because it may be
    > distracting for the user. I'm trying to make the app user friendly as
    > possible.
    Then you use a Windows Service application that doesn't use a console. It
    runs unattended in the background, uses a thread process on a timer event,
    the tread executes, its processes and goes back to sleep until the elapsed
    time event for the thread fires again to start the process over --- in
    intervals.


    >
    > "Mr. Arnold" wrote:
    >

    >>
    >> "Terrance" <Terrance@xxxxxx> wrote in message
    >> news:267E91B0-62F8-4B3E-8C24-9CAC831DFBFB@xxxxxx

    >> > Good Afternoon:
    >> >
    >> > I have two questions I was hoping someone can help me with.
    >> >
    >> > 1. I've created a app that creates a xml file; the project was
    >> > constructed
    >> > as a console window. I want to know is there anyway to suppress the
    >> > console
    >> > window from showing? One of the options is I have is to generate the
    >> > xml
    >> > file
    >> > without showing the console window. Even though I'm not calling the
    >> > Console
    >> > it still flashes. Any suggestions. I plan on running this exe as a
    >> > scheduled
    >> > task. Is there a better method in doing that; like should it be a
    >> > library
    >> > (dll) file? Would a dll run as a scheduled task?
    >>
    >> What do you care if the Console application is showing the console?
    >> So, you have it running as an unattened scheduled task, there is nothing
    >> wrong with that.
    >>
    >> No, you can't schedule a DLL to run by itself. A DLL must be hosted by
    >> an
    >> EXE that's using the DLL. The Task Scheduler knows nothing a about the
    >> DLL
    >> interfaces. Only a program/exe that was written by the developer to use
    >> the
    >> DLL would know about the DLL's interfaces and methods, and the Task
    >> Scheduler doesn't know them.
    >>

    >> >
    >> > 2. The xml file that I'm creating needs a schema. Is there any good
    >> > information on how to create the schema for such a file? It's a simple
    >> > xml
    >> > file with that's in the following format:
    >> >
    >>
    >> There are plenty of articles on Google or Dogpile.com
    >>
    >>

      My System SpecsSystem Spec

Console Window and XmlSchema

Similar Threads
Thread Forum
Window Vista 32 recovery console
where can i download the ISO file for windows vista recovery.Thank you.
General Discussion
Delayed display of console window
Hi, For a few weeks now, I've had a delay of ~5 seconds before the console window (or command prompt) gets displayed. As I use it a lot, this is...
Vista General
Resize the console window ?
My apologies if this has been asked and answered before, but is there any way to resize the Virtual PC 2007 console window so that it is wider ?...
Virtual PC
VS2005 Basic Hangs when changing from Code window to Design Window
When I change from the code view to the design view of a form in Visual Studio 2005 (VB.NET) The design environment hangs for up to five minutes...
.NET General
Console - a replacement for old command window
I am happily using Console to wrap the Powershell in a Console window: http://sourceforge.net/projects/console/ Allows user definable keyboard...
PowerShell
An alternative console window for PowerShell
Hi, I know you all hate the current implementation of PowerShell's console window. Therefore I have a present for you (in case you don't already...
PowerShell
The 'http://www.w3.org/2001/XMLSchema:schema' element is not declared
Hi, I am using the FEB release of WCF. I am using typed dataset in my service. when I try top generate proxy for this service, i am getting the...
Indigo