[jawsscripts] Re: XML related questions, any help please?

  • From: Jonathan Cohn <jon.c.cohn@xxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Sun, 21 Jan 2018 10:04:27 -0500

That is a xpath specification. You can find several sites out there that will 
describe it. If you are just looking for elements with a specific tag and 
attributes use the example from my scripts where I get elements with tag "div" 
and id attribute of provided content. If you need more complicated searches 
like every th element within the table called "CrackerJack", then you will need 
to study the xPath notation yourself. Just google for it.
 
                Best wishes,
Jonathan Cohn



On Jan 20, 2018, at 6:19 AM, Jitendra Kumar <jeet.invincible@xxxxxxxxx> wrote:

OK, Thank you very much, It helped me a lot, but where can I find the
information for the following code?
like what can we put in brackets and what should be the format.
var object o = doc.selectSingleNode("//node()[@class='" +pclass +"']")

On 1/20/18, Jonathan Cohn <jon.c.cohn@xxxxxxxxx 
<mailto:jon.c.cohn@xxxxxxxxx>> wrote:
Hello,
I think I can answer all your questions here:

1. the attributes, values, text and other methods are Microsoft XML methods
that get loaded as part   the CreateObject("msxml2.DOMDocument.6.0")
2. SelectNode( Pattern )  method returns a 0 based array matching  Pattern.
This Pattern uses     XPath syntax, and is documented at:
https://msdn.microsoft.com/en-us/library/ms754523(v=vs.85).aspx 
<https://msdn.microsoft.com/en-us/library/ms754523(v=vs.85).aspx> standard

3. I believe you should be able to find the properties and methods used on
this MSDN page:
https://msdn.microsoft.com/en-us/library/system.xml.xmlnode(v=vs.110).aspx 
<https://msdn.microsoft.com/en-us/library/system.xml.xmlnode(v=vs.110).aspx>
<https://msdn.microsoft.com/en-us/library/system.xml.xmlnode(v=vs.110).aspx 
<https://msdn.microsoft.com/en-us/library/system.xml.xmlnode(v=vs.110).aspx>>

4. To access individual items in the array use either for each notation or
with an index in square brackets. I believe the two examples provided each
show different ways of doing this. If you need the second item it would be
[1].


             Best wishes,

Jonathan Cohn



On Jan 17, 2018, at 7:18 AM, Jitendra Kumar <jeet.invincible@xxxxxxxxx>
wrote:

I am sorry, the outlook webmail is not performing well perhaps, so if
I have two elements matching same class, how should I set focus to the
second one?
and where can I find methods like Attribs.get names
On 1/17/18, jitender kumar@5142695 <Jeet.Kumar1@xxxxxxxxx> wrote:
wp…«b±«m®&ìüg­5©žt‹^›øŸŠØ¬jšè¥êíÊŠ
Ú™ëa¡ßð…êÞ!Ƨ~)ÝjX¬¶‡ì¹ÈfzØhvƧvšè¥êí‰ëÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
º&þ8­zw^®K¦j¿ù× 
º÷”žžßÖyÙÞ±Ö²ü–§¹ªò׿öÓ_5Óýuÿ @1:ÿ 
¬,±Êâ¦Ûÿ~·ž–+-³ú+ +›
ç-ý
ÿþ6°²Ç+Š›lý Ã¿\ÂëzV­yÚ®zËb¢{ÿj|¡zZi•æ¬{ôb‚ 
ÿnëp…«b~z,µ«br)ߢ+
½¨¥i¹^ý©Ýjȧ‚Wš¶Úânë^–) 
rV¬²+.±ç_¢¹¨­ëajz'yé^™éí³ùb‘ïÚ®&ÿ•¦Þ–W o
__________�

View the list's information and change your settings at
//www.freelists.org/list/jawsscripts




--
Skype:
Jeet.delhi
__________�

View the list's information and change your settings at
//www.freelists.org/list/jawsscripts



__________�

View the list's information and change your settings at
//www.freelists.org/list/jawsscripts ;
<//www.freelists.org/list/jawsscripts>




-- 
Skype:
Jeet.delhi
__________�

View the list's information and change your settings at 
//www.freelists.org/list/jawsscripts ;
<//www.freelists.org/list/jawsscripts>

__________�

View the list's information and change your settings at 
//www.freelists.org/list/jawsscripts

Other related posts: