Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make XMLParser less picky about dtd grammar file locations #6

Closed
Sv3n opened this issue Jul 22, 2014 · 0 comments
Closed

Make XMLParser less picky about dtd grammar file locations #6

Sv3n opened this issue Jul 22, 2014 · 0 comments
Assignees

Comments

@Sv3n
Copy link
Collaborator

Sv3n commented Jul 22, 2014

Custom memspecs might not sit in the same folder as the dtd file that is delivered with DRAMPower, causing the parser to fail. Locally I've fixed this by adding an EntityResolver to the parser, which attempts to load the dtd from a path that is:

  • relative to the xml file (default behavior)
  • relative to the current working directory
  • relative to an environmental variable (such that you can point it to the DRAMPower folder for example)

I propose to add this functionality in the official version as well, since it does no harm. Long term we might want to consider switching to a less wacky xml parser, and perhaps a grammarless structure (since we don't really rely on it anyway).

@Sv3n Sv3n self-assigned this Jul 22, 2014
IESE-T3 added a commit that referenced this issue Oct 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants