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

Implement DTD code generator #688

Merged
merged 10 commits into from
Jul 9, 2022
Merged

Implement DTD code generator #688

merged 10 commits into from
Jul 9, 2022

Conversation

tefra
Copy link
Owner

@tefra tefra commented Jul 9, 2022

📒 Description

Add Support for Document type definitions (DTD)

Resolves #685

🔗 What I've Done

  • Used lxml dtd parser
  • Added dtd parse models
  • Added mapper to convert dtd models to codegen objects
  • Namespaces support is very experimental as I didn't have many samples

💬 Comments

🛫 Checklist

@codecov
Copy link

codecov bot commented Jul 9, 2022

Codecov Report

Merging #688 (9578ad3) into master (fa9f014) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##            master      #688    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files           95        98     +3     
  Lines         8268      8597   +329     
  Branches      1590      1646    +56     
==========================================
+ Hits          8268      8597   +329     
Impacted Files Coverage Δ
xsdata/codegen/parsers/schema.py 100.00% <ø> (ø)
xsdata/cli.py 100.00% <100.00%> (ø)
xsdata/codegen/mappers/dtd.py 100.00% <100.00%> (ø)
xsdata/codegen/parsers/dtd.py 100.00% <100.00%> (ø)
xsdata/codegen/transformer.py 100.00% <100.00%> (ø)
xsdata/models/dtd.py 100.00% <100.00%> (ø)
xsdata/models/enums.py 100.00% <100.00%> (ø)
xsdata/utils/package.py 100.00% <100.00%> (ø)
xsdata/utils/testing.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fa9f014...9578ad3. Read the comment docs.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jul 9, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 3 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@tefra tefra merged commit 7eede8e into master Jul 9, 2022
@tefra tefra deleted the dtd branch July 9, 2022 09:09
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.

Element substitution with context
1 participant