I am trying to get the following sent in an xml.
<Request xmlns="http://abc.org/1.1/Listener.wsdl"><serverstatusinquiry xmlns="http://abc.org/messages"/></Request>
The problem I am facing is the text part of the Request node. I am printing the text as follows.
"<serverstatusinquiry xmlns=\"http://abc.org/messages\"/>"
But I end up with:
<serverstatusinquiry xmlns="http://abc.org/messages"/>
I understand "
stands for double quotes, is there a way I can force it to actually output "
instead of "
? Is there anything wrong with what I开发者_如何学运维 am doing?
Use <
for < (Less than), > >
for > (Greater than), and "
for "
<Request xmlns="http://abc.org/1.1/Listener.wsdl"><serverstatusinquiry xmlns="http://abc.org/messages"/></Request>Quotation).
精彩评论