以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 DOM/SAX/XPath 』  (http://bbs.xml.org.cn/list.asp?boardid=11)
----  [求助]XPath问题! 急(已解决)  (http://bbs.xml.org.cn/dispbbs.asp?boardid=11&rootid=&id=16608)


--  作者:mafia77
--  发布时间:4/5/2005 9:44:00 AM

--  [求助]XPath问题! 急(已解决)
<People>
 <person>
  <name>Person2</name>
  <ID>2</ID>
 </person>

 <person>
  <name>Person3</name> 
  <ID>3</ID>
 </person>

 <person>
  <name>Person4</name>
  <ID>4</ID>
 </person>

 <Relation>
  <SonID>4</SonID>
  <ParentID>2</ParentID>
 </Relation>
 <Relation>
  <SonID>4</SonID>
  <ParentID>3</ParentID>
 </Relation>
</People>

我想将这段XML转换为
            <input xmlns:v="urn:schemas-microsoft-com:vml">
            <Person>
                Person4's ParentID is Person2
            </Person>
            </input>
            <input xmlns:v="urn:schemas-microsoft-com:vml">
            <Person>
                Person4's ParentID is Person3
            </Person>
            </input>

怎么办?  谢谢  在线等

已解决 使用Para!


[此贴子已经被作者于2005-4-5 10:24:53编辑过]

--  作者:feiniao_21
--  发布时间:5/5/2005 9:30:00 PM

--  
可以用xmltextwriter类结合xmlpath!
--  作者:cwzb
--  发布时间:7/1/2005 10:32:00 PM

--  
Para 在XPATH里...是什么意思???


我英文不好...所以一直不知道...请多帮忙啦:)


W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
46.875ms