mace-opensaml-users - [OpenSAML] Unmarshalling issue: XML doc with no prefix and no namespace
Subject: OpenSAML user discussion
List archive
- From: KARTHIKEYAN RAMALINGAM <>
- To:
- Subject: [OpenSAML] Unmarshalling issue: XML doc with no prefix and no namespace
- Date: Thu, 31 Mar 2011 05:46:24 -0400 (EDT)
Hi All,
I am new to OpenSaml and trying to use Open Saml for my project.
Issue in Unmarsahalling:
------------------------------
I am unable to unmarshall the document object if the input well formed xml
document's namespace and prefix is empty.
In my input XML document, the namespace and namespace prefix is not present.
While unmarshalling the document element, I am getting NullPointerException
since the unmarshaller retrieved below is null.
Unmarshaller
unmarshaller=Configuration.getUnmarshallerFactory().getUnmarshaller(el
ement);
But, when I provide the namespace accordingly in the document
and in the code, the unmarshalling works fine. :-)
Per OpenSaml, is it mandatory for an input xml document to have a
valid/non-empty namespace or prefix for successful un-marshalling?
The input xml document is as below:
<?xml version="1.0"
encoding="UTF-8"?><data><parameters><param1>abc</param1><param2>xyz</p
aram2></parameters></data>
Please let me know if I am missing some thing. Your inputs are highly
appreciated. Many Thanks.
Regards,
Karthikeyan.R
- [OpenSAML] Unmarshalling issue: XML doc with no prefix and no namespace, KARTHIKEYAN RAMALINGAM, 03/31/2011
- Re: [OpenSAML] Unmarshalling issue: XML doc with no prefix and no namespace, Cantor, Scott E., 03/31/2011
Archive powered by MHonArc 2.6.16.