:: Forum >>

Getting XML data without showing in columns

Say I have the following XML:

<xml>
<otherdata></otherdata>
<somedata>
<a></a>
<b></b>
<c></c>
</somedata>
</xml>

I use the XML.Table structure to load the XML, and I want to display columns a,b and c. However, I want to use "otherdata" for some branching logic in the code. Once I have the XML loaded using table.request(), can I navigate the DOM and extract values from this XML file? Even though, my table columns and XPath are set to /xml/somedata

Does this make sense?

Thanks!
Curtis
Thursday, January 22, 2004
You can plug you code into table.response(data):

var defaultResponse = table.response;
table.response = function(data){
defaultResponse.call(this, data);
... // do your stuff here
}

The argument (data) is XML DOMDocument, so you can access it directly from here. In Mozilla I am adding some IE proprietary methods like selectNodes/selectSingleNode, but it's not 100% compatible.

Alex (ActiveWidgets)
Thursday, January 22, 2004
Thanks Alex! Amazing tool! I keep finding new things every day!
Curtis
Friday, January 23, 2004
Can a solution be posted?

How do I use selectNodes/selectSingleNode?


Thursday, March 23, 2006
Comparing with Bindows .I like it's UI .hoho
josh
Friday, March 31, 2006

This topic is archived.


Back to support forum

Forum search