Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old November 11th, 2005, 10:51 PM
Antonio Maciel
Guest
 
Posts: n/a
Default Detect schemas in use on xml file

Hi.

My application uses 4 xml files as configuration files. Actually, I use an
If statement with a function to run my schema files against the xml files
every time the application loads. This function receives as parameters the
name of the .xml file and the name of the .xsd file. I am trying to find a
more independent approach to validate the 4 xml files at once. In VB.NET,
how can I discover what are the .xml files on a directory and for each one
found, discover what is the .xsd file it uses?

Thanks,

Antonio Maciel


  #2  
Old November 11th, 2005, 10:51 PM
Lee Chapman
Guest
 
Posts: n/a
Default Re: Detect schemas in use on xml file

For the first bit, have you found Directory.GetFiles("C:\", "*.xml")? (There
are other similar functions available in System.IO...

- Lee


"Antonio Maciel" <antmac@consys.com> wrote in message
news:ue5awxSVDHA.3232@tk2msftngp13.phx.gbl...[color=blue]
> Hi.
>
> My application uses 4 xml files as configuration files. Actually, I use an
> If statement with a function to run my schema files against the xml files
> every time the application loads. This function receives as parameters the
> name of the .xml file and the name of the .xsd file. I am trying to find a
> more independent approach to validate the 4 xml files at once. In VB.NET,
> how can I discover what are the .xml files on a directory and for each one
> found, discover what is the .xsd file it uses?
>
> Thanks,
>
> Antonio Maciel
>
>[/color]


 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles