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

  • From: Jonathan Cohn <jon.c.cohn@xxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Fri, 18 May 2018 16:31:32 -0400

Hello,

This function just calls  getDocumentXML(), and then loads this XML string into 
an object using the LoadXML function defined at:
https://msdn.microsoft.com/en-us/library/ms754585(v=vs.85).aspx

At this point it seems the only methods to use are 
nodeFromID or SelectNodes 

The first returns one Node object and the second returns an array of node 
objects.
You can then retrieve attribute objects, child node objects , and a few other 
methods / properties from each node or attribute object.
  

Sorry, I also just saw  "getElementsByTagName Method (DOMDocument)” I believe 
this also returns an array of node elements.



HTH,

Jonathan Cohn 


On May 18, 2018, at 10:06 AM, Travis Roth <travis@xxxxxxxxxxxxxx> wrote:

Hi Jonathan, 
What is the definition of GetDocumentXMLObject () in your sample code below 
please? 
Thanks. 
Travis


-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx <jawsscripts-bounce@xxxxxxxxxxxxx> On 
Behalf Of Jonathan Cohn
Sent: Wednesday, January 17, 2018 9:27 AM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: XML related questions, any help please?

Here is code I cleaned up yesterday.
...

*o = GetElementsByClass (RowHeader )*

*iCount = o.length  - 1 *

*for i =0  to iCount *

* sText = o.item(i).text*

*sId =  o.item(i).attributes.GetNamedItem("id").value *

...


; return list of DIV elements having a specific class

*Object Function GetElementsByClass (string sClass)*

*var*

* object XMLDomDoc = GetDocumentXMLObject (),*

* object oResult,*

* int  iCount*


*oResult = XMLDomDoc.DocumentElement.SelectNodes("//Div[@class='" + sClass
+ "']")*

*iCount = oResult.length*

*if iCount then *

* return  oResult *

*else*

* return null()*

*EndIf*
*EndFunction*



On 17 January 2018 at 09:52, Jitendra Kumar <jeet.invincible@xxxxxxxxx>
wrote:

I am sorry tom, I know that, it was from the office mail.
Well, thanks bob, I shall give it a try, Looks like I have got the new 
flashing car and not need to reinvent...
On 1/17/18, Bissett, Tom <tom.bissett@xxxxxxx> wrote:
Your message is coming through all messed up.  It is unreadable.
Regards
Tom Bisset
-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx 
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of jitender
kumar@5142695
Sent: Wednesday, January 17, 2018 5:04 AM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: XML related questions, any help please?
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 
http://www.freelists.org/list/jawsscripts


__________�

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




--
Skype:
Jeet.delhi
__________�

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



__________�

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

__________�

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


 

; Retrieve the current XML tree for a web browserDOM.  Currently this does no 
cacheing but if you believe it will be called for every focus change or 
keyboard input on the web page, consider storing in a global and finding a way 
to check for DOM changes.
; Also perhaps CreateObject results should be stored for performance. 


__________�

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

Other related posts: