local dtd file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • smanna
    New Member
    • Jun 2006
    • 1

    #1

    local dtd file

    Hello I am parsing xml files which have the following header
    <!DOCTYPE gogn SYSTEM "../../../format/dtd/lo-dtd.dtd">
    which is working very well but how ever some of the files have this header
    <!DOCTYPE gogn SYSTEM "../../../../../format/dtd/no-dtd.dtd">
    When I try to parse these I get an malformedurl exception, no protocol ../../../../../format/dtd/no-dtd.dtd

    any ideas on how to fix this?
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    Looks to me like you may have ../../ too much in

    <!DOCTYPE gogn SYSTEM "../../../../../format/dtd/no-dtd.dtd">

    try

    <!DOCTYPE gogn SYSTEM "../../../format/dtd/no-dtd.dtd">

    Comment

    Working...