<?xml version="1.0" encoding="UTF-8"?>
<result>
<selfnodename ino:id="3"> ???? </selfnodename>
<selfnodename ino:id="3"> ??? </selfnodename>
<selfnodename ino:id="3"> ??????? </selfnodename>
<selfnodename ino:id="3"> ?? </selfnodename>
<selfnodename ino:id="3"> ??????? </selfnodename>
</result> </pre><BR><BR>what dom method should i use to get the value of element.<BR><BR>when i use the follow method :<BR> <pre class="ip-ubbcode-code-pre"> xqlResult=QueryResult.getResult();
var nodeList=xqlResult.childNodes;
itemSelected = nodeList.item(i);
scr = itemSelected.nodeValue;
document.write(scr);
Hi markk, > Does itemSelected.xml help? what do you means? I can’t find more details in tamino document. How can I find more documents about jscript API ?
In your example you said that itemSelected.nodeValue produced a null result. I was suggesting using itemSelected.xml. I typically use node.xml to display the XML for debugging or whatever.
The API doesn’t provide a mechanism for storing the XML to a file. But given node.xml it should be relatively easy to do this.
[This message was edited by markk on 09 May 2003 at 08:08.]
The JScript API documentation only describes the API specific parts. On Windows it only supports the Microsoft DOM (MSXML3/MSXML4). Information about this can be found online at http://msdn.microsoft.com.
Hi markk, I want to ask another question: what the type of the QueryResult, Is it a document object or element object or others onject ? Then what about the xqlResult, And i am sorry to tell you that i only know some sample object,such as nodeList is nodeList object…
var QueryVal=‘/?[?ID = “TP312/0001”]’; QueryResult = QueryObj.query(QueryVal); xqlResult=QueryResult.getResult(); var nodeList=xqlResult.childNodes;//error message is: the object doesn’t support the method or attribute.
then i chage it like this: var QueryVal=‘/?[?ID = “TP312/0001”]’; QueryResult = QueryObj.query(QueryVal); var nodelist = QueryQesult.nodes();//it displays the same error.
however it shows QueryResult.errorNo=0; also the result in x-query query is like this :