Skip to Content.
Sympa Menu

mace-opensaml-users - registering new schema with opensaml1.01

Subject: OpenSAML user discussion

List archive

registering new schema with opensaml1.01


Chronological Thread 
  • 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



Archive powered by MHonArc 2.6.16.

Top of Page