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

Remove Dom4j Dependency #2028

Merged
merged 7 commits into from Jul 19, 2021
Merged

Remove Dom4j Dependency #2028

merged 7 commits into from Jul 19, 2021

Conversation

nielsm5
Copy link
Sponsor Member

@nielsm5 nielsm5 commented Jul 16, 2021

No description provided.

Comment on lines 66 to 77
public int compare(Attribute o1, Attribute o2) {
String o1Name = o1.localName;
if ("".equals(o1Name)) {
o1Name = o1.qName;
}

String o2Name = o2.localName;
if ("".equals(o2Name)) {
o2Name = o2.qName;
}
return o1Name.compareTo(o2Name);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Ik denk dat je niet moet sorteren op qName, maar op uri en localname.
Als de prefix verschilt maar de namespace uri hetzelfde is, is de XML effectief dezelfde

@nielsm5 nielsm5 self-assigned this Jul 19, 2021
@gvanbrakel gvanbrakel merged commit 55b92f7 into master Jul 19, 2021
@gvanbrakel gvanbrakel deleted the feature/dom4j branch July 19, 2021 11:42
@nielsm5 nielsm5 mentioned this pull request Jul 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants