Ignore DTD pi in xsl transform?

  • Thread starter Thread starter KatB
  • Start date Start date
K

KatB

Hi, I'm using the transform class for an xml document. However, all my
documents are created by authoring tool and contain a DTD declaration:

<!DOCTYPE jabil SYSTEM "C:\Program
Files\Epic\custom\doctypes\Jabil\Jabil.dtd">

I can't remove this since the authors need it every time they edit the
document.

Is there some way I can tell the transform to IGNORE this via my xsl
stylesheet?

Sorry if this is a stupid question, brain is kind of mushy today.


Thanks, Kat
 
The answer turned out to be quite simple, but very hard to find.

After you load the xmlDocument (e.g., xDoc), add a line:
xDoc.XmlResolver = Nothing (null if not vb)

Hope this helps someone else some day.

Kat
 
Back
Top