Error Message When Validating XML

Having trouble installing Oxygen? Got a bug to report? Post it all here.
w_ludwig
Posts: 3
Joined: Tue Mar 25, 2014 11:30 pm

Error Message When Validating XML

Post by w_ludwig »

Hi,
I'm attempting to validate an xml file on Mac osx 10.9.2 (Mavericks). Each time I get an error message saying "F [Xerces] FileNotFoundException....../ACS-CEN-Article2.dtd (No such file or directory)"

IT can't figure this out and it's confusing to us because the file(s) I'm attempting to validate have all been successfully validated on other computers and the "ACS-CEN-Article2.dtd" does not have to be in the folder for the other computers. Granted, the other computers are running a slightly older operating system. Could this be related to my local settings or my operating system version?

Thank you,
WL
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

Re: Error Message When Validating XML

Post by adrian »

Hi,

You did not mention how is the DTD specified in your XML document.
Does the DOCTYPE have a public and system ID? Is the system ID an absolute URL?

If this works on other computers without the "ACS-CEN-Article2.dtd", they most likely have an XML catalog configured that resolves the public or system ID indicated in the DOCTYPE to a different location.
Please contact the person that made the setup regarding this.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
w_ludwig
Posts: 3
Joined: Tue Mar 25, 2014 11:30 pm

Re: Error Message When Validating XML

Post by w_ludwig »

Thank you for the fast response.

The DOCTYPE has a public ID-
<!DOCTYPE article
PUBLIC "-//ACS//DTD ACS CEN Article DTD v2.00 20100415//EN" "ACS-CEN-Article2.dtd">

I checked my preferences for XML catalog against 2 co-worker's and found that mine did not match. It was missing the file "mainArticle.dtd".

My dtd folder was also not as up to date as theres and was missing ACS-CEN-Article2.dtd. So, I copied their DTD folder and replaced mine with it. However, I'm getting a slightly different error now-
F [Xerces] FileNotFoundException-/Users/rls96/Documents/CEN-DTD/dtd/ACS-CEN-Article2.dtd (No such file or directory)

"rls96" is the user I copied the files from. The user should be me (c00226). I am absolutely sure I copied my co-worker's files and pasted them new into my CEN-DTD folder, so I am confused why it appears to be trying to use their path. Perhaps their files are encoded somehow? Is there a setting to choose my computer's path? I made sure that my XML catalog setting was linked from my own computer as well.

Lastly, I found out that my co-workers are on software version 14 and I'm on 15.2... would this make a difference?

Thank you again,
WL
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

Re: Error Message When Validating XML

Post by adrian »

Hi,

The Oxygen version difference shouldn't matter in this regard.

Now it looks like you have an additional XML catalog configured that may be overriding your own. It's most likely within the files you copied from the other user. Use the Find > Find/Replace in Files tool to search the XML files copied from the other user for the username appearing in the path, 'rls96'.
The other way would be to search in your XML catalog configuration or in the catalog files themselves for a nextCatalog entry that points to a new catalog and follow that trail.

I should also mention that for XML catalogs it's good practice to use relative (not absolute) paths when resolving resources, to avoid exactly the kind of problems you are encountering right now.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
w_ludwig
Posts: 3
Joined: Tue Mar 25, 2014 11:30 pm

Re: Error Message When Validating XML

Post by w_ludwig »

Thank you very much, your last post really helped to solve my issue. This issue WAS within one file I copied from another user. The XML written in the file specifically linked to their username. I checked this against the file from a different user who's ended up being specific to THEIR name. I opened the catalog file "MainCatalog" in oxygen and manually replaced their username with mine. I saved the file, and in preferences, re-linked the new catalog file. It worked after this.

Thank you for your great assistance in my matter. I really appreciate your fast and in-depth help!

WL
Post Reply