mace-opensaml-users - Creating an XMLObject - C++
Subject: OpenSAML user discussion
List archive
- From: "Brian Sheely" <>
- To: <>
- Subject: Creating an XMLObject - C++
- Date: Mon, 7 Jan 2008 07:43:43 -0800
I must be doing something wrong when trying to
create an XMLObject. It crashes when it gets to the memcpy call in
XMLString::replicate. The authnRequest parameter that's passed in is a null
terminated char*. The code that creates the authnRequest has been tested and
seems to work fine. If I write the DOMDocument, it looks as expected. Any idea
what's wrong? Thanks for your input! unsigned length; XMLByte* decoded =
Base64::decode(reinterpret_cast<const XMLByte*>(authnRequest), &length); stringstream stream; stream << reinterpret_cast<char*>(decoded); XMLString::release(&decoded); static const XMLCh
UTF8[]={ chLatin_U, chLatin_T, chLatin_F, chDigit_8, chNull }; DOMDocument* doc =
XMLToolingConfig::getConfig().getParser().parse(stream); doc->setEncoding(UTF8);
XMLObject* xmlObject
= XMLObjectBuilder::buildOneFromElement(doc->getDocumentElement(), true); Brian Sheely |
- Creating an XMLObject - C++, Brian Sheely, 01/07/2008
- RE: Creating an XMLObject - C++, Scott Cantor, 01/07/2008
- RE: Creating an XMLObject - C++, Brian Sheely, 01/07/2008
- RE: Creating an XMLObject - C++, Scott Cantor, 01/07/2008
- RE: Creating an XMLObject - C++, Brian Sheely, 01/07/2008
- RE: Creating an XMLObject - C++, Scott Cantor, 01/07/2008
- RE: Creating an XMLObject - C++, Brian Sheely, 01/07/2008
- RE: Creating an XMLObject - C++, Scott Cantor, 01/07/2008
- RE: Creating an XMLObject - C++, Brian Sheely, 01/07/2008
- Re: Creating an XMLObject - C++, Scott Cantor, 01/07/2008
- RE: Creating an XMLObject - C++, Brian Sheely, 01/07/2008
- RE: Creating an XMLObject - C++, Scott Cantor, 01/07/2008
- RE: Creating an XMLObject - C++, Brian Sheely, 01/07/2008
- RE: Creating an XMLObject - C++, Scott Cantor, 01/07/2008
- RE: Creating an XMLObject - C++, Brian Sheely, 01/07/2008
- RE: Creating an XMLObject - C++, Scott Cantor, 01/07/2008
Archive powered by MHonArc 2.6.16.