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

Add namespace awareness for validating xml against xsd files #75

Merged
merged 4 commits into from
Feb 26, 2025

Conversation

SasinduDilshara
Copy link
Contributor

Purpose

Add namespace awareness for validating xml against xsd files

Fixes: ballerina-platform/ballerina-library#7643

Examples

Checklist

  • Linked to an issue
  • Updated the changelog
  • Added tests
  • Updated the spec
  • Checked native-image compatibility

Copy link

codecov bot commented Feb 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.32%. Comparing base (d0d4e08) to head (66e2da0).
Report is 5 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main      #75      +/-   ##
============================================
- Coverage     85.92%   85.32%   -0.61%     
- Complexity      800      911     +111     
============================================
  Files            25       31       +6     
  Lines          3432     3795     +363     
  Branches        685      767      +82     
============================================
+ Hits           2949     3238     +289     
- Misses          303      338      +35     
- Partials        180      219      +39     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

dbFactory.setIgnoringComments(true); // Ignore comments in the XML
dbFactory.setIgnoringElementContentWhitespace(true); // Ignore white spaces in the XML
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may need to provide a configuration to override the removal of leading and trailing whitespaces

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will revert that

gimantha
gimantha previously approved these changes Feb 26, 2025
@gimantha gimantha merged commit 324c848 into ballerina-platform:main Feb 26, 2025
7 checks passed
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.

validate API in data.xmldata package needs to aware with namespaces
2 participants