Parse xml document without getting the files referenced in the DTD

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • AK

    Parse xml document without getting the files referenced in the DTD

    Hello,

    I want to remove the DTD reference from an xml document before
    validating it against a local schema instead. Currently I'm first
    creating an xml document and removing the DTD reference, then creating
    the XmlReaderSettin gs with the schema etc.

    However, the reason I want to remove the DTD reference is that it
    takes up to a minute to grab all the files referenced in it, and when
    loading the xml document it still goes and grabs them. Is there any
    way of parsing an xml document and remove the DTD reference without it
    trying to fetch all the files?

    Many thanks,

    AK
  • Martin Honnen

    #2
    Re: Parse xml document without getting the files referenced in theDTD

    AK wrote:
    I want to remove the DTD reference from an xml document before
    validating it against a local schema instead. Currently I'm first
    creating an xml document and removing the DTD reference, then creating
    the XmlReaderSettin gs with the schema etc.
    >
    However, the reason I want to remove the DTD reference is that it
    takes up to a minute to grab all the files referenced in it, and when
    loading the xml document it still goes and grabs them. Is there any
    way of parsing an xml document and remove the DTD reference without it
    trying to fetch all the files?
    You asked the same question yesterday and got an answer for that:





    --

    Martin Honnen --- MVP XML

    Comment

    Working...