【发布时间】:2010-09-23 15:54:28
【问题描述】:
如果我想将我的 PHP 应用程序转换为 ASP.NET……您有什么建议以及为什么?
我目前正在使用 PHP 的 simplexml_load_string() 方法,因为它……嗯,很简单。
例如,对于 PHP 来处理我刚刚使用的 XML 形式的 http 请求:
$FILERAWDATA = file_get_contents("php://input");
$xml = simplexml_load_string($FILERAWDATA);
然后像这样从 xml 节点中获取值:
@$itemid = $xml->itemid;
// then use the node value as a PHP var $itemid
那么,ASP.NET 有类似的东西吗?
感谢阅读。
AlejandroConsueloRodriguezMiguel -- 也被称为 Fred :)
【问题讨论】: