유효한 UPnP 제어 응답을 따르고 있습니까? 이 문자들을 <OutProfile>
의 값으로 이스케이프해야합니까? UPnP device architecture1.1(sec 3.2.4)은 <, & 등의 문자가 포함 된 경우 인수 값을 이스케이프 처리해야한다고 말합니다.하지만 xml 인 경우에는 그렇지 않아야한다고 생각합니다. 누구나이 혼란을 없앨 수있는 표준 문서를 참조 할 수 있습니까? 내 요점은 다음과 같은 경우 이스케이프 된 문자를 사용하는 것이 불필요하며 디버깅을 어렵게 만든다는 것입니다. 그러나 필자는 동료들에 대한 견고한 언급을 통해이 점을 설명해야합니다.XML 태그의 이스케이프 문자를 사용할 수 있습니까? 어떤 경우에?
<?xml version="1.0"?><s:Envelope
xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"
s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:SetABCResponse
xmlns:u="urn:schemas-upnp-org:service:Client:1"><OutProfile><cProfile>
<cID>0</cID>
<iconPreference>
<mimetype>image/bmp</mimetype>
<width>32</width>
<height>32</height>
<depth>24</depth>
</iconPreference>
</cProfile>
</OutProfile></u:SetABCResponse></s:Body></s:Envelope>
XML API를 사용하여 XML을 작성하기 만하면됩니다. 탈출 규칙이 무엇인지 알 수 있으므로 그렇게하지 않아도됩니다. –