Skip to Content.
Sympa Menu

mace-opensaml-users - Re: [OpenSAML] how to insert an xmlobject into xml

Subject: OpenSAML user discussion

List archive

Re: [OpenSAML] how to insert an xmlobject into xml


Chronological Thread 
  • From: Chad La Joie <>
  • To:
  • Subject: Re: [OpenSAML] how to insert an xmlobject into xml
  • Date: Sun, 11 Apr 2010 13:37:47 -0400
  • Organization: Itumi, LLC

Have you looked at the marshalling API? It has a method that does this.

On 4/11/10 1:02 PM, owen nirvana wrote:
> I want create an assertion and insert into xml like soap message org
> wss header in soap message
>
> the following is my code:
>
> docBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
> Document doc = docBuilder.parse(...); // doc is ok
>
> Assertion assertion = createAssertion(...); // assertion is ok
>
> AssertionMarshaller marshaller = new AssertionMarshaller();
> Element elment = marshaller.marshall(assertion);
>
> XMLHelper.adoptElement(element, doc);
> XMLHelper.prettyPrintXML(doc);
>
> but , doc is still the original xml document.
>
> thanks for help.
>
> gtalk:
>
> <mailto:gtalk%>

--
Chad La Joie
www.itumi.biz
trusted identities, delivered



Archive powered by MHonArc 2.6.16.

Top of Page