Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Reporter Bean Parser rejects attributes that declare namespaces (e.g. xmlns:context="...") #103

Open
wants to merge 4 commits into
base: v3.0-maintenance
Choose a base branch
from

Conversation

danapsimer
Copy link

The AbstractReporterElementParser has a method in it's ValidationContext class called "rejectUnmatchedProperties". This modification changes the behavior of this method to ignore attributes that have a namespace specifier (e.g. "xmlns:context"). In XML namespaces can be defined on any element and attributes can be applied to elements from other namespaces. The XML spec defines that these should be ignored when processing elements by processors that do not understand them.

One could argue that rejecting unknown properties (i.e. attributes) is not a good idea since as an eXtensible Markup Language, XML allows adding attributes to elements that will not be known by older processors. However, the advantage of detecting attributes that don't belong may out weight that concern.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant