mace-opensaml-users - registering new schema with opensaml1.01
Subject: OpenSAML user discussion
List archive
- From: "Cameron Morris" <>
- To: <>
- Subject: registering new schema with opensaml1.01
- Date: Tue, 08 Mar 2005 12:26:38 -0700
I'm using XACML and openSAML in my project. I wanted the re-use the XML.parserPool from opensaml to parse XACML policies. But I'm not getting it to work. I always get "org.xml.sax.SAXException: cvc-elt.1: Cannot find the declaration of element 'Policy'."
I register the schema like this:
XML.parserPool.registerSchema("urn:oasis:names:tc:xacml:1.0:policy", "schemas/cs-xacml-schema-policy-01.xsd", null);
I put cs-xacml-schema-policy-01.xsd in a schemas directory in the classpath.
The policy I'm parsing looks like this:
<Policy xmlns="urn:oasis:names:tc:xacml:1.0:policy" PolicyId="VisaPolicy" RuleCombiningAlgId="urn:oasis:names:tc:xacml:1.0:rule-combining-algorithm:permit-overrides">
<Description>
This restricts disclosure of a creditcard
</Description>
<Target>
<Subjects>
....
I'm calling XML.parserPool.parse to parse it. Any suggestions?
Thanks, Cameron Morris
- registering new schema with opensaml1.01, Cameron Morris, 03/08/2005
- RE: registering new schema with opensaml1.01, Scott Cantor, 03/08/2005
Archive powered by MHonArc 2.6.16.