whitespace in xml

Age Jan Kuperus AgeJan.Kuperus at wur.nl
Tue Jul 31 06:58:36 EDT 2012


On 30/07/12 15:46, Roderick Grau wrote:
> In an attempt to make my xml files more readable, I added some white space between elements.
>
> For example in the relying-party.xml:
>
> <!-- Load the IdP's own metadata.  This is necessary for artifact support. -->
>
>      <MetadataProvider
>        id="IdPMD"
>        xsi:type="ResourceBackedMetadataProvider"
>        xmlns="urn:mace:shibboleth:2.0:metadata" >
>        <MetadataResource
>          xsi:type="resource:FilesystemResource"
>          file="/usr/local/shibboleth-idp/metadata/idp-metadata.xml" />
>      </MetadataProvider>
>
Here it does not matter, as it's not part of any attribute and the element value is not relevant.

> In the security configuration:
>
>    <security:Credential id="IdPCredential" xsi:type="security:X509Filesystem">
>      <security:PrivateKey>
>        /usr/local/shibboleth-idp/credentials/idp.key
>     </security:PrivateKey>
>      <security:Certificate>
>        /usr/local/shibboleth-idp/credentials/idp.crt
>     </security:Certificate>
>    </security:Credential>
>

Here it adds white space before and after the values. Some software explicitly trims this kind 
of wihtespace; I don't know whether the IdP code does. If not, it can be the cause of your problem.

-- 
with kind regards,

Age Jan Kuperus





More information about the users mailing list