Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8003361
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T16:37:48+00:00 2026-06-04T16:37:48+00:00

SWI-Prolog has plenty to offer as a generalized XML processor. library(sgml) for read/write XML

  • 0

SWI-Prolog has plenty to offer as a generalized XML processor.

library(sgml) for read/write XML structured formats, library(xpath) for navigation and more… but if I attempt to read a SVG, that it is valid XML, I get the message:

ERROR: SGML2PL(xml): ...my_file...svg:2: file "...myfile.path.../http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" does not exist

false.

Does anyone has an hint on this? I’d also want to rewrite the eventually modified file content preserving of course the distinctive DTD.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T16:37:50+00:00Added an answer on June 4, 2026 at 4:37 pm

    I found a solution, saving locally the DTD file I got with curl, I can request to SGML library to use it.

    ...
        new_dtd(svg, DTD),
        path(Dir, 'svg11.dtd', DtdFile),
        load_dtd(DTD, DtdFile),
    
        path(Dir, 'html_labels.svg', SvgFile),
        load_structure(SvgFile, [Svg], svg:[dtd(DTD), dialect(xmlns), xml_no_ns(quiet)]),
    ...
    

    As I said, I got svg11.dtd in this way

    $ curl http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd > svg11.dtd
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I found a code that multiplicates matrixes. % SWI-Prolog has transpose/2 in its clpfd
I'm trying to use the SWI-Prolog JPL library, but I'm having problems. I'm trying
swi-prolog uses list of list of list of ... to represent XML tree. I
I've read the manual from swi-prolog: union(+Set1, +Set2, -Set3) what do + and -
I am looking for example uses (or tutorials) of the record library http://www.cs.fit.edu/~pkc/classes/ai/swi-prolog/Manual/record.html for
Using SWI-Prolog's listing predicate (or SICStus' predicate in its list library), we have: lists:subtract([],
I need to write a program in swi-prolog that removes the second value of
I am required to write my own version of all_different in SWI-Prolog. I've written
Why this predicate random_permutation doesn't work? http://www.swi-prolog.org/pldoc/doc_for?object=random_permutation/2 ?- use_module(library(random)). % library(pairs) compiled into pairs
I have set up and installed both interprolog and swi prolog on my linux

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.