내가 가진이상위 태그가없는 XElement에서 HTML을 가져 오는 방법은 무엇입니까?
XElement xe = "<root>
<mynode>
Text with link <a href=''>Test</a>
</mynode>
</root>";
public static string GetHtmlFromXElement(this XElement xe)
{
return xe.ToString();
}
같은 XML 내가
<mynode>Text with link <a href=''>Test</a></mynode>
얻을하지만
Text with link <a href=''>Test</a>
방법이 권리를 할 필요가
string result = xe.Element("mynode").GetHtmlFromXElement();
를 사용하는 경우?
가능한 복제를 시도 : [?하여 XElement의 InnerXml을 얻을 수있는 가장 좋은 방법] (http://stackoverflow.com/q/3793/299327) –