Gus,
Is there a reason you don't want to do this from your program? An XML file
is nothing but a text file, so you can simply create a new file with an .xml
extension, and you're done.
Unless I'm missing something from your post.
-Altaf
--------------------------------------------------------------------------------
All that glitters has a high refractive index.
www.mendhak.com
"Gus Gustafson" <(E-Mail Removed)> wrote in message
news:4C2AC5AF-7CE7-4978-9472-(E-Mail Removed)...
>I have an application that must create a new, but empty, XML file on
>demand.
> My original approach was to copy an existing "template XML file" into the
> new
> XML file. I found that I needed to pass through each table in the newly
> created XML file and delete each row. I'm wondering if there is a better
> way. For example, I can programmatically create the XML file but the
> problem
> with this method is that the creation process is within a program.
>
> So is there a method that uses a schema to create an empty XML file. If
> there is, where is it documented? If not, what is suggested?
>
> TIA
>
> Gus
>