Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I need to write a one-line JavaScri

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I need to write a one-line JavaScript statement to get the first “InvoiceNum” from the XML data island shown below where the order total is at least $100:


<XML id=&quot;MyXML&quot;>
<Customers>
<Customer Name=&quot;Acme Widgets, Inc.&quot;>
<Order InvoiceNum=&quot;1001&quot; Total=&quot;75.99&quot;/>
<Order InvoiceNum=&quot;1004&quot; Total=&quot;119.50&quot;/>
</Customer>
<Customer Name=&quot;Foo Gizmos, Inc.&quot;>
<Order InvoiceNum=&quot;1002&quot; Total=&quot;39.95&quot;/>
<Order InvoiceNum=&quot;1003&quot; Total=&quot;145.10&quot;/>
</Customer>
</Customers>
</XML>

I would be grateful for any help.

Sincerely,

Adventurenow
 
I would not count on the possibility with this one :-( ICQ: 54380631
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top