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

Customizable XML coding style for harvested documents #25

Open
michmech opened this issue Oct 17, 2017 · 1 comment
Open

Customizable XML coding style for harvested documents #25

michmech opened this issue Oct 17, 2017 · 1 comment

Comments

@michmech
Copy link
Owner

Xonomy's harvesting behaviour currently:

  • Xonomy always adds xml:space='preserve' to elements that have text nodes,
  • Xonomy always uses the single quote character ' to enclose attribute values,
  • Xonomy always encodes quotes and angle brackets as named entities (' etc.), even when this is, strictly speaking, unnecessary.

All these defaults are happening in the functions Xonomy.js2xml and Xonomy.xmlEscape.

None of these things are bugs and they should pose no problem for parsing the XML that has been harvested. However, it would be nice to give users some control over this behaviour.

@chippyash
Copy link

On the contrary, I think that Xonomy should not be adding additional content of any description. See #40 (comment)

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