나는하여 XDocument로 구문 분석 XML이 : 나는 그래서추출하여 XDocument 비누 응답 본문
<MyResponse xmlns="https://www.domain.net/">
<Node1>0</Node1>
</MyResponse>
같은 뿌리를 가진 새하여 XDocument를 만들기 위해 노력하고 기본적으로
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<MyResponse xmlns="https://www.domain.net/">
<Node1>0</Node1>
</MyResponse>
</soap:Body>
</soap:Envelope>
본질적으로 저는 이것을 비누 몸체에서 추출하려고합니다. 내가 Linq를 사용하여 구문 분석을 시도했지만이 새로운 루트와 새로운 XDocument를 반환 할 수 없습니다. 어떤 아이디어? 사전에
덕분에
'새로운하여 XDocument (old.Element ("{http://schemas.xmlsoap.org/soap/envelope/} Envelope ") .Element ("{http://schemas.xmlsoap.org/soap/envelope/}Body ") .Element ("{https://www.domain.net/}MyResponse ")) ' – PetSerAl