如果下一个标记为New
<b>
及其内容
这是我的xml文件
<tag>
<New>some content</New>
<b> bold </b>
<New> content two </New>
<p> p tag </p>
</tag>
输出
<tag>
<b> bold </b>
<New> content two </New>
<p> p tag </p>
</tag>
这是我的代码
XElement rootImg = XElement.Parse(xml string variable);
IEnumerable<XElement> img =
from el in rootImg.Descendants("New").ToList()
select el;
foreach (XElement el in img)
{
//what am i going to do here?
}
答案 0 :(得分:2)
SELECT
round(
st_distance_sphere(
st_geomfromtext(
'Multipoint(72.87765590000004 17.385044,73.8567436 18.5204303)'
),
st_geomfromtext(
'POINT (73.8567436 18.5204303)'
)
)
) as dist;