在Javascript中的Xpath [英] Xpath In Javascript
问题描述
大家好,
我正在使用xml文件,其结构是>>
< data>
< book>
< title> < / title>
< pages> < / pages>
< isbn> < / isbn>
< / book>
< / data>
------- -------------------------------------------------- -------------------------------------------------- -
现在我想使用xpath和xquery像
页面> 30只能看到thosae记录
你能告诉我怎么shld我去了... ...
我能够获得整个记录集(没有问题)
bt无法使用xpath / xquery在这个人可以告诉我
thnxs
byeee
hi all,
im using xml file its structure is lik>>
<data>
<book>
<title> </title>
<pages> </pages>
<isbn> </isbn>
</book>
</data>
-------------------------------------------------------------------------------------------------------------
now i want to use xpath and xquery like
pages>30 only thosae records to be seen
can u tell me how shld i go furhte...
im able to get whole recordset(no problem atall)
bt not able to use xpath/xquery in thiscan anyone tell me
thnxs
byeee
推荐答案
欢迎来到TheScripts TSDN ....
>
您使用的是哪种编程语言? ASP,PHP,XSL ......?
Welcome to TheScripts TSDN....
What programming language are you using? ASP, PHP, XSL...?
欢迎来到TheScripts TSDN ....
您使用的是哪种编程语言? ASP,PHP,XSL ......?
Welcome to TheScripts TSDN....
What programming language are you using? ASP, PHP, XSL...?
使用JAVASCRIPT解析xml ..
请回复我....
thnx回复
m using JAVASCRIPT to parse the xml..
pls reply me....
thnx for reply
您应该创建一个XSL文件并将其应用于源XML。
参见此示例。
XSL应包含在 - 每个循环(按书),类似于:
You should create an XSL file an apply it on the source XML.
See this example.
The XSL should contain in a for-each loop (by book), something like:
这篇关于在Javascript中的Xpath的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!