는 HttpWebRequest 클래스를 사용할 수있는 데이터를 가져, 이것은 내가 손을 가지고 예이지만 사용자의 요구에 약간 과장 될 수있다 (당신은 당신이있어 확인해야 옳은 일을하고있다 - 나는 POST가 아니라 GET이라고 생각한다.) 당신이 데이터를 다시했으면
Uri baseUri = new Uri(this.RemoteServer);
HttpWebRequest rq = (HttpWebRequest)HttpWebRequest.Create(new Uri(baseUri, action));
rq.Method = "POST";
rq.ContentType = "application/x-www-form-urlencoded";
rq.Accept = "text/xml";
rq.AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate;
Encoding encoding = Encoding.GetEncoding("UTF-8");
byte[] chars = encoding.GetBytes(body);
rq.ContentLength = chars.Length;
using (Stream stream = rq.GetRequestStream())
{
stream.Write(chars, 0, chars.Length);
stream.Close();
}
XDocument doc;
WebResponse rs = rq.GetResponse();
using (Stream stream = rs.GetResponseStream())
{
using (XmlTextReader tr = new XmlTextReader(stream))
{
doc = XDocument.Load(tr);
responseXml = doc.Root;
}
if (responseXml == null)
{
throw new Exception("No response");
}
}
return responseXml;
당신은 HTML, 많은과 선택의 많은 렌더링 할 필요가 - 당신은 그냥 다음 당신이 사용할 수있는 당신이 최소한의 추가 처리와 HTML에있어 무엇을 변환 할 경우 XSLT - 모든 질문 자체입니다. 당신이 그걸로 물건을 할 필요가 있다면 질문은 너무 막연하고 좀 더 구체적이어야합니다. 에 대한 충분한 정보와 특정 문제로 제한 할 수있는 질문을 수정 _Please :
이 질문에서 결과 XML에 스타일 시트 요소를 주입 "너무 광범위"의 본질이다 적절한 대답을 찾는다 ._ – halfer