sairfan1 Posted February 7, 2010 Share Posted February 7, 2010 hi im learning xml and xquery at w3schoolsi got following code to run xquery, i put this code in my html file, but when i view the page code remain same and shown as it is in browser<ul>{for $x in doc("books.xml")/bookstore/book/titleorder by $xreturn <li>{data($x)}</li>}</ul>as there is not working example at web site like(try it yourself) can any body guide?thanking you in advance Link to comment Share on other sites More sharing options...
Ingolme Posted February 7, 2010 Share Posted February 7, 2010 I actually have no idea what environment xQuery works in, but you can't just use it in the browser.There might be Javascript or PHP libraries that parse xQuery. Link to comment Share on other sites More sharing options...
Synook Posted February 8, 2010 Share Posted February 8, 2010 http://www.w3.org/TR/xquery/Unfortunately, there is no (official) implementation for PHP yet, though this looks like it will work: http://www.pecl.php.net/package/Zorba. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.