<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<br>
<div class="moz-cite-prefix">On 6/17/15 10:27 AM, Sandeep urs wrote:<br>
</div>
<blockquote
cite="mid:CABfoH02-gsjMY8xBLuGpQovRkVWO9uw4F+DJcj-+yJ=1xfjXxA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div><br>
<div><span class="" style="white-space:pre"> </span>Element
metadataRoot = document.getDocumentElement();</div>
<div><span class="" style="white-space:pre"> </span>QName
qName = new
QName(metadataRoot.getNamespaceURI(),metadataRoot.getLocalName(),
metadataRoot.getPrefix());</div>
<div><span class="" style="white-space:pre"> </span>unmarshaller=
org.opensaml.core.xml.util.XMLObjectSupport.getUnmarshaller(qName);<br>
</div>
</div>
</div>
</blockquote>
<br>
Scott already gave the answer to your problem. Unrelated to that:
the above is more complex than it needs to be. We support lookup of
Unmarshallers via direct input of an Element, in addition to a
QName.<br>
<br>
So the last line could just be:<br>
<br>
<tt>unmarshaller=
org.opensaml.core.xml.util.XMLObjectSupport.getUnmarshaller(metadataRoot);</tt>
</body>
</html>