Home > database >  PB125 generated XML in browsers can't browse
PB125 generated XML in browsers can't browse

Time:09-18

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
refer to the original poster u010524461 response:
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??


The & amp; lt; Replace with & lt;
The & amp; gt; Replace with & gt;

It's good

CodePudding user response:

Is the browser source code to display "& amp; Lt;" Inside the pb is still "& lt;" , so the browser is the client, there can't run to the customer for,
  • Related