PDA

Click to See Complete Forum and Search --> : Doctype Statement with VB


Jan Ulrich
Apr 12th, 2002, 06:40 AM
Hy, my problem is that i want to make a small vb prototyp with which i can produce a xml-file. So I do this with the

Dim oDoc As DOMDocument

my problem is that i want to create a xml-file which look like the next example:

<?xml version="1.0"?>
<!DOCTYPE mydoc SYSTEM "myDTD.dtd">
<Account>.....</Account>

.......

and so on but i found nothing how i can create the second statement
<!DOCTYPE mydoc SYSTEM "myDTD.dtd">

I use vb 6.0 and Microsoft XML v3.0

Please help me soon
Regards, Jan :confused:

Renee K
Mar 15th, 2004, 01:58 PM
Hello,

I am trying to find the answer to this question as well, so instead of starting a new thread I'm bumping this one up. I am using VB6 and I can not find any documentation on creating this either.
There is not a dom.CreateDocumentType, so how can I do this?

<!DOCTYPE mydoc SYSTEM "myDTD.dtd">

Thanks in advance

Renee K
Mar 16th, 2004, 12:53 PM
Is using fso or something to that effect the only way to do this?

MartinLiss
Mar 16th, 2004, 08:08 PM
Perhaps bad news. (http://www.topxml.com/forum/Using_DOM_to_Create_DOCTYPE/m_4/tm.htm)

Renee K
Mar 18th, 2004, 09:11 AM
Thank you Martinliss. Your response is greatly appreciated I wanted to ensure that I wasn't overlooking something.