metadata-providers.xml syntax

Tom Scavo trscavo at gmail.com
Mon Mar 7 13:08:18 EST 2016


On Mon, Mar 7, 2016 at 12:56 PM, Kevin Foote <kpfoote at uoregon.edu> wrote:
>
>> On Mar 7, 2016, at 9:46 AM, Robert Lamothe <robert_lamothe at yahoo.com> wrote:
>>
>>     What confuses me is that in one example the <MetadataProvider> doesn't have a closer in the form of </MetadataProvider> but the other one does.
>>
>>     Is this a mistake in the example?  Or is there some logic that determines when you close the <MetadataProvider> and when you don’t?
>
> In the first example - without the </MetadataProviders> explicit closing tag. The entire MetadataProvider element is encapsulated in the attributes of the element.
>
> The next example uses elements within the MetadataProvider itself so it needs the explicit closing tag.

Or put another way, in the second example, the <MetadataProvider>
element has child elements (i.e., two <MetadataFilter>s), so an
explicit </MetadataProvider> tag is required. This is basic XML
syntax, it has nothing to do with Shibboleth configuration syntax per
se.

Tom


More information about the users mailing list