XPATH is an incredible tool. If you plan on using xml more, its
something you should learn. Playing with xpath in witango, or other
code environments, is not very easy. What I do, is I use an EXCELLENT
xml editor called oxygen. I can load the xml in it, and I can enter
xpath statements to play and test and see the results of my query.
Its a real good way to learn and try out queries on real xml. I am
sure there are other xml tools out there like this, but I really like
oxygen.
--
Robert Garcia
President - BigHead Technology
VP Application Development - eventpix.com
13653 West Park Dr
Magalia, Ca 95954
ph: 530.645.4040 x222 fax: 530.645.4040
[EMAIL PROTECTED] - [EMAIL PROTECTED]
http://bighead.net/ - http://eventpix.com/
On May 23, 2007, at 6:46 AM, Fogelson, Steve wrote:
Robert,
Lightning got my DSL modem at home so I couldn’t respond to you
last night. But your snippet was just what the doctor ordered. I
tested it this morning and it works great. I need to do some
research on XPath as I don’t understand your xpath elements, but I
figured it out enough to get it to work for my app.
Thanks.
Steve
From: Robert Garcia [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 22, 2007 7:29 PM
To: [email protected]
Subject: Re: Witango-Talk: XPointer - 2 dimensional Array
Did that help? I just realized I don't use xpointer, but xpath, I
don't use xpointer.
--
Robert Garcia
President - BigHead Technology
VP Application Development - eventpix.com
13653 West Park Dr
Magalia, Ca 95954
ph: 530.645.4040 x222 fax: 530.645.4040
[EMAIL PROTECTED] - [EMAIL PROTECTED]
http://bighead.net/ - http://eventpix.com/
On May 22, 2007, at 2:44 PM, Robert Garcia wrote:
Check my tools site, www.bighead.net/tools.
There is a pdf about efficient webservices. Search for domtoarray.
Something like that. I go over methods for efficiently turning doms
into arrays. Its been a while since I was doing that, but I think
it fits your situation.
--
Robert Garcia
President - BigHead Technology
VP Application Development - eventpix.com
13653 West Park Dr
Magalia, Ca 95954
ph: 530.645.4040 x222 fax: 530.645.4040
[EMAIL PROTECTED] - [EMAIL PROTECTED]
http://bighead.net/ - http://eventpix.com/
On May 22, 2007, at 2:23 PM, Fogelson, Steve wrote:
Is there a way to get a 2 dimensional array with XPointer with the
following DOM
<@assign request$ScopeDom value="<@dom value='
<webapp>
<site domain="xxxcom">
<scope_name>scope1</scope_name>
<dsn_name>Cat1</dsn_name>
<dsn_user>user1</dsn_user>
<dsn_password>password1</dsn_password>
</site>
<site domain="yyycom">
<scope_name>scope2</scope_name>
<dsn_name>Cat2</dsn_name>
<dsn_user>user2</dsn_user>
<dsn_password>password2</dsn_password>
</site>
</webapp>'>">
I get a one dimensional array with the following. I have tried
other combinations with no success.
<@elementvalue object='request$ScopeDom' element='root().child
(all).child(all)'>
Thanks
Steve Fogelson
Internet Commerce Solutions
______________________________________________________________________
__
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
______________________________________________________________________
__
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
______________________________________________________________________
__
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
______________________________________________________________________
__
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf