Ignore DTD pi in xsl transform?

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
 
K

KatB

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top