Post it to the list and everyone can see it......magic :-)
On Tue, Jul 29, 2008 at 4:25 AM, adam_j_bradley <[EMAIL PROTECTED]> wrote: > > Ok, I now have it generating the CDATA entry as I'd hoped! > http://www.nabble.com/file/p18704319/2712837314_dae51ea53a_o.jpg > > Drop me a line if you'd like to see know how :) > > Adam > > > > > dkulp wrote: >> >> >> I don't believe their is anyway to do this. I don't think the JAXB >> runtime EVER calls writeCDATA of the Stax stuff. Most likely, you >> should just remove the "<[CDATA[" and tailing "]]>" parts of the >> string and just pass that. It will get escaped, but that SHOULD be OK. >> >> >> Dan >> >> >> On Jul 28, 2008, at 1:13 AM, adam_j_bradley wrote: >> >>> >>> I have a parameter I want to populate with CDATA but I'm having >>> trouble. >>> Currently the String is defined as >>> >>> ---snip--- >>> String element = "!<[CDATA[<s:ppSoapHeader >>> xmlns:s=\"http://schemas.microsoft.com/Passport/SoapServices/SoapHeader >>> \" >>> version=\"1.0\"><s:lcid>1033</s:lcid><s:sitetoken><t:siteheader >>> xmlns:t=\"http://schemas.microsoft.com/Passport/SiteToken\" id=\"" + >>> siteID >>> + "\"/></s:sitetoken>" + >>> </s:ppSoapHeader>]]>"; >>> ---snip--- >>> >>> I wind up with >>> ---snip--- >>> !<[CDATA[<s:ppSoapHeader >>> xmlns:s="http://schemas.microsoft.com/Passport/SoapServices/ >>> SoapHeader"version="1.0"><s:lcid>1033</ >>> s:lcid><s:sitetoken><t:siteheader >>> xmlns:t="http://schemas.microsoft.com/Passport/SiteToken" >>> id="253988"/></s:sitetoken></s:ppSoapHeader>]]> >>> ---snip--- >>> >>> But I want >>> ---snip--- >>> !<[CDATA[<s:ppSoapHeader >>> xmlns:s="http://schemas.microsoft.com/Passport/SoapServices/ >>> SoapHeader"version="1.0"><s:lcid>1033</ >>> s:lcid><s:sitetoken><t:siteheader >>> xmlns:t="http://schemas.microsoft.com/Passport/SiteToken" >>> id="253988"/></s:sitetoken><s:ppSoapHeader>]]> >>> ---snip--- >>> >>> I don't want it to delimit the "<" with "<", expecially the one >>> before >>> the CDATA section! >>> Any ideas? >>> >>> Thanks in advance! >>> Adam >>> -- >>> View this message in context: >>> http://www.nabble.com/Q%3A-Marshall-CDATA-tp18684232p18684232.html >>> Sent from the cxf-user mailing list archive at Nabble.com. >>> >> >> --- >> Daniel Kulp >> [EMAIL PROTECTED] >> http://www.dankulp.com/blog >> >> >> >> >> >> > > -- > View this message in context: > http://www.nabble.com/Q%3A-Marshall-CDATA-tp18684232p18704319.html > Sent from the cxf-user mailing list archive at Nabble.com. > >
