Hi Mike,
From my experience with this tool, the DTD is not treated as a primary
part of the document in VW. Notice that when you parse a document
from file, the document is returned with only the body content --
despite having a dtd instance variable. The DTD is actually parsed
all right, but it winds up in the Parser's dtd instance variable.
Given this observation, it seems unlikely to me that the DTD is
supported as part of the document model. However, I have not searched
exhaustively for the support you are seeking.
Regards.
Gregory Bourassa
mikea59 wrote:
> I want to create a XML.Document with a DOCTYPE node and I don't see how to do
> it. The VW basic user guide shows an example like this
>
> Create a document:
>
> newDoc := XML.Document new.
>
> Add nodes using
>
> newDoc addNode: aNode
>
> so far, so good, then to add the prolog stuff they do something like
> this:
>
> str nextPutAll: '<?xml version="1.0"?>'; cr.
> str nextPutAll: '<!DOCTYPE XML SYSTEM "vwhelp.dtd">'; cr.
>
> OK, well anyone can build up XML from streaming a bunch of strings, I
> want to know how to build the document type declaration into the document
> object and I can't see how to do it in VW 7.5 with the standard XML package.
> An example would be greatly apreciated.
>
> Thanks,
> Mike
>
>
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc