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

In minidom module ability to add Standalone Document Declaraion is missing while generating XML documents #81715

Closed
henryh9n mannequin opened this issue Jul 9, 2019 · 2 comments
Labels
3.9 only security fixes topic-XML type-feature A feature request or enhancement

Comments

@henryh9n
Copy link
Mannequin

henryh9n mannequin commented Jul 9, 2019

BPO 37534
Nosy @scoder, @serhiy-storchaka, @henryh9n
PRs
  • bpo-37534: Adding ability to add Standalone Document Declaration when generating XML documents #14912
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2020-02-29.08:23:51.292>
    created_at = <Date 2019-07-09.23:26:51.079>
    labels = ['expert-XML', 'type-feature', '3.9']
    title = 'In minidom module ability to add Standalone Document Declaraion is missing while generating XML documents'
    updated_at = <Date 2020-02-29.08:23:51.292>
    user = 'https://github.com/henryh9n'

    bugs.python.org fields:

    activity = <Date 2020-02-29.08:23:51.292>
    actor = 'scoder'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-02-29.08:23:51.292>
    closer = 'scoder'
    components = ['XML']
    creation = <Date 2019-07-09.23:26:51.079>
    creator = 'hharutyunyan'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 37534
    keywords = ['patch']
    message_count = 2.0
    messages = ['347583', '362968']
    nosy_count = 3.0
    nosy_names = ['scoder', 'serhiy.storchaka', 'hharutyunyan']
    pr_nums = ['14912']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue37534'
    versions = ['Python 3.9']

    @henryh9n
    Copy link
    Mannequin Author

    henryh9n mannequin commented Jul 9, 2019

    Though the Standalone Document Declaration in XML Declaration is optional and the default value of "no" is assumed in case it's omitted, in certain cases it makes sense to change the value to indicate the absence of external markup declarations. It's a part of W3C recommendation on XML (https://www.w3.org/TR/xml/#sec-prolog-dtd).
    Though minidom module allows to modify the encoding declaration if needed, the same is not true for standalone declaration.
    As I've recently came up with an issue while generating XML documents with the module I suggest adding the ability to add and modify the declaration.

    @henryh9n henryh9n mannequin added 3.9 only security fixes topic-XML type-feature A feature request or enhancement labels Jul 9, 2019
    @scoder
    Copy link
    Contributor

    scoder commented Feb 29, 2020

    New changeset dc04a05 by Henry Harutyunyan in branch 'master':
    bpo-37534: Allow adding Standalone Document Declaration when generating XML documents (GH-14912)
    dc04a05

    @scoder scoder closed this as completed Feb 29, 2020
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.9 only security fixes topic-XML type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant