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="MyXML">
<Customers>
<Customer Name="Acme Widgets, Inc.">
<Order InvoiceNum="1001" Total="75.99"/>
<Order InvoiceNum="1004" Total="119.50"/>
</Customer>
<Customer Name="Foo Gizmos, Inc.">
<Order InvoiceNum="1002" Total="39.95"/>
<Order InvoiceNum="1003" Total="145.10"/>
</Customer>
</Customers>
</XML>
I would be grateful for any help.
Sincerely,
Adventurenow
<XML id="MyXML">
<Customers>
<Customer Name="Acme Widgets, Inc.">
<Order InvoiceNum="1001" Total="75.99"/>
<Order InvoiceNum="1004" Total="119.50"/>
</Customer>
<Customer Name="Foo Gizmos, Inc.">
<Order InvoiceNum="1002" Total="39.95"/>
<Order InvoiceNum="1003" Total="145.10"/>
</Customer>
</Customers>
</XML>
I would be grateful for any help.
Sincerely,
Adventurenow