wester1991
wester1991

Reputation: 25

eXide not show any results on screen

I write this query in eXist-db (eXide):

doc("/db/libros/prueba.xhtml")/html/body/p/a/@href

Find two results: Found 2 in 0.003s

But the screen does not show any

Input document is:

<html>
<head>
    <title> titulo </title>
</head>
<body>
<p class="clase1"> esto es un parrafo <a href="www.wikipedia.com"> wikipedia </a></p>
<p> otro parrafo <a href="www.youtube.com">youtube</a></p>
</body>
</html>

the system is

kernel : Linux 3.5.0-27-generic (x86_64)

Distribution Linux Mint 14 Nadia

eXist Version:  2.0
eXist Build:    20130207

Upvotes: 1

Views: 387

Answers (1)

Navin Rawat
Navin Rawat

Reputation: 3138

I think you need to put data() around. Have a look:

data(doc("file:/C:/Users/vgv/Desktop/Testing/Untitled1.xml")/html/body/p/a/@href)

output:

www.wikipedia.com www.youtube.com

Upvotes: 1

Related Questions