1. The webserver function in writing:
The public function string getresources_rmavaildetail ();
//get datawindow syntax
Ls_xmldata=https://bbs.csdn.net/topics/ls_xmldata + '& lt; RtavMessage> '
Ls_xmldata=https://bbs.csdn.net/topics/ls_xmldata + '& lt; HotelReference hotelCode="' + sid +"/& gt; '
Ls_xmldata=https://bbs.csdn.net/topics/ls_xmldata + '& lt; RoomType name="' + ls_roomType + '" & gt; '
Ls_xmldata=https://bbs.csdn.net/topics/ls_xmldata + '& lt; PhysicalRooms> 10 & lt;/physicalRooms> '
Ls_xmldata=https://bbs.csdn.net/topics/ls_xmldata + '& lt; RoomTypeOverbook> 0 '
Ls_xmldata=https://bbs.csdn.net/topics/ls_xmldata + '& lt; OutOfOrder> 0 '
Ls_xmldata=https://bbs.csdn.net/topics/ls_xmldata + '& lt;/roomType> '
Ls_xmldata=https://bbs.csdn.net/topics/ls_xmldata + '& lt;/RtavMessage> '
Return ls_xmldata
End the function
2. The client code, normal should be:
10 & lt;/physicalRooms>
0
0
But now is such:
& lt; RtavMessage& gt;
& lt; HotelReference hotelCode="123"/& amp; gt;
& lt; RoomType name="tty" & amp; gt;
& lt; PhysicalRooms& gt; 10 & amp; lt;/physicalRooms& gt;
& lt; RoomTypeOverbook& gt; 0 & amp; lt;/roomTypeOverbook& gt;
& lt; OutOfOrder& gt; 0 & amp; lt;/outOfOrder& gt;
& lt;/roomType& gt;
& lt;/RtavMessage& gt;
How should I solve??
CodePudding user response:
The