mace-opensaml-users - Re: [OpenSAML] how to insert an xmlobject into xml
Subject: OpenSAML user discussion
List archive
- 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
- how to insert an xmlobject into xml, owen nirvana, 04/11/2010
- RE: [OpenSAML] how to insert an xmlobject into xml, Scott Cantor, 04/11/2010
- Message not available
- Re: [OpenSAML] how to insert an xmlobject into xml, owen nirvana, 04/11/2010
- RE: [OpenSAML] how to insert an xmlobject into xml, Scott Cantor, 04/11/2010
- Re: [OpenSAML] how to insert an xmlobject into xml, owen nirvana, 04/11/2010
- Re: [OpenSAML] how to insert an xmlobject into xml, Chad La Joie, 04/11/2010
- Re: [OpenSAML] how to insert an xmlobject into xml, owen nirvana, 04/13/2010
Archive powered by MHonArc 2.6.16.