Hi, I'm not completely sure what you're trying to achieve, so let me clarify - are you:
1. Trying to send a SOAP response that has some XML as text data - in which case the characters need to be escaped in order to be XML-compliant or 2. Trying to send a SOAP response, and for some reason parts of your XML are being treated as text data (and you want it to stop). Perhaps you could send the fromXML() code that you have, along with the schema for the type you're supposed to be creating? This would help me figure out where the problem is from a XML creation standpoint. thanks, Dan "Baseer Khan \(bakhan\)" <[EMAIL PROTECTED]> wrote on 12/08/2006 12:19:29 AM: > Hi, > > Is their an easier way to escape the xml characters that are contained > within a string value? > > If my string value has some xml characters, the soap response is > escaping them to say > etc as below. See how I get <name instead > of <nam:... > > The contents within nq:objectWrapper are from a "fromXML" method I > implemented for one of the custom-serializer. I tried escaping before I > send it to createElement, but it didn't help. > > Any help is appreciated. > > Thanks. > > --Baseer > > <tns:WsResourceProperties > xmlns:tns="http://ws.apache.org/muse/test/wsrf"> > <nq:objectWrapper > xmlns:nq="http://schemas.xyz.com/2006/07/Chameleon/namedQuery"><nam:o > bjectWrapper > bean="com.cisco.cmp.schemas.x2006.x07.chameleon.equipmentP.impl.Equipmen > tTypeImpl" > xmlns:nam="http://schemas.cmp.cisco.com/2006/07/Chameleon/namedQuery"> > ;<topp:Top xsi:type="equ:EquipmentType" > xmlns:equ="http://schemas.xyz.com/2006/07/Chameleon/EquipmentP" > xmlns:topp="http://schemas.cmp.cisco.com/2006/07/Chameleon/TopP" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><topp:id> > PrimaryEquipment0</topp:id><res:isSendingAlarms > xmlns:res="http://schemas.xyz.com/2006/07/Chameleon/ResourceP">false& > lt;/res:isSendingAlarms></topp:Top></nam:objectWrapper></ > nq:objectWrapper> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
