Menu

#8 DTD validation fails if DTD path has spaces

Bugs
closed-fixed
5
2013-12-12
2006-07-26
Alectrus
No

Environment: Windows XP Professional SP2
Program version: 1.0.6.2

The Problem:

If I open an XML file and associate a DTD to it that
has spaces in the path, such as:

C:/Documents and Settings/matt/Desktop/mydtdfile.dtd

and I try to validate the XML against the DTD (the
validation should be successful), I get this error:

"Validation failed: no DTD found !"

However, placing the DTD in the following path:

C:/QA/XML/mydtdfile.dtd

validation is successful.

To Simulate:

- Associate a DTD to an XML file and ensure the path to
the DTD has spaces in it.
- Validate a valid XML file against it; it should fail.

Possible Solutions:

My guess is that it's an issue with the spaces, but I
could be wrong. That's all I really have to go on.

Discussion

  • gnschmidt

    gnschmidt - 2006-07-26
    • assigned_to: nobody --> gnschmidt
     
  • gnschmidt

    gnschmidt - 2006-07-29

    Logged In: YES
    user_id=1298822

    I think libxml2 is right to reject spaces in URLs, but the
    'Associate DTD/XML Schema' functions up to 1.0.6.2 were
    wrong to insert URLs with spaces. They now insert %20s instead.

     
  • gnschmidt

    gnschmidt - 2006-07-29
    • status: open --> pending-fixed
     
  • gnschmidt

    gnschmidt - 2006-07-30
    • status: pending-fixed --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB