A few things are happening in the above code.
上面代码中发生了以下几件事。
Thus in the above code, $newownernode becomes a child of $newfilesnode.
因此在上面的代码中,$newownernode 成为了 $newfilesnode 的子节点。
This approach would eliminate the need to cast in the above code, but it would not fix the bug.
这种方法可除去上面代码中类型强制转换的需要,但不修正错误。
应用推荐