Skip to content

Conversation

@pschaffl
Copy link

The proposed changes allow to create child classes that include a namespace or other root attributes, e.g.

class UrlXmlRenderer(XMLRenderer):
    root_tag_name = 'urlset'
    item_tag_name = 'url'
    root_attributes = {'xmlns': 'http://www.sitemaps.org/schemas/sitemap/0.9'}

The proposed changes allow to create child classes that include a namespace or other root attributes, e.g.

class UrlXmlRenderer(XMLRenderer):
    root_tag_name = 'urlset'
    item_tag_name = 'url'
    root_attributes = {'xmlns': 'http://www.sitemaps.org/schemas/sitemap/0.9'}
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

Successfully merging this pull request may close these issues.

1 participant