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

How to write comments with the xml_write/3 that comes with SWI-Prolog 7.6.4? #27

Open
edom opened this issue Mar 12, 2019 · 2 comments
Open

Comments

@edom
Copy link

edom commented Mar 12, 2019

The document does not say anything about XML comments.

I saw the source code, and I found no syntax tree node for XML comments either.

@JanWielemaker
Copy link
Member

AFAIK, comments are not supported as part of the Prolog XML DOM. Only the call-back interface can be used to get information about comments. I have no concrete plans to do something about it. If you plan to add support for comments I'd surely consider to apply the patches.

@edom
Copy link
Author

edom commented Mar 13, 2019

At first I thought it would be a matter of adding some DCG rules, but then I saw some C files, and realized how mistaken I was. I thought it was a pure Prolog library. I'm afraid I can't send any patches.

Nevertheless, not having comments is not fatal for my use case. It's a minor cosmetic issue. (I'm generating a Java/Maven pom.xml file with Prolog.)

Thank you for writing the library. It did help me do what I needed to do, and I can live with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants