<Estimate domain="QBO" sparse="false">
<Id>151</Id>
<SyncToken>0</SyncToken>
<MetaData>
<CreateTime>2025-01-10T00:19:29-08:00</CreateTime>
<LastUpdatedTime>2025-01-10T00:19:29-08:00</LastUpdatedTime>
</MetaData>
<DocNumber>1004</DocNumber>
<TxnDate>2025-01-10</TxnDate>
<CurrencyRef name="United States Dollar">USD</CurrencyRef>
<TxnStatus>Pending</TxnStatus>
<
Line>
<Id>1</Id>
<LineNum>1</LineNum>
<Description>Pest Control Services</Description>
<Amount>35.00</Amount>
<DetailType>SalesItemLineDetail</DetailType>
<SalesItemLineDetail>
<ItemRef name="Pest Control:Pest Control">10</ItemRef>
<UnitPrice>35</UnitPrice>
<Qty>1</Qty>
<ItemAccountRef name="Pest Control Services">54</ItemAccountRef>
<TaxCodeRef>NON</TaxCodeRef>
</SalesItemLineDetail>
</
Line>
<
Line>
<Amount>35.00</Amount>
<DetailType>SubTotalLineDetail</DetailType>
<SubTotalLineDetail/>
</
Line>
<
Line>
<Amount>3.50</Amount>
<DetailType>DiscountLineDetail</DetailType>
<DiscountLineDetail>
<PercentBased>true</PercentBased>
<DiscountPercent>10</DiscountPercent>
<DiscountAccountRef name="Discounts given">86</DiscountAccountRef>
</DiscountLineDetail>
</
Line>
<TxnTaxDetail>
<TotalTax>0</TotalTax>
</TxnTaxDetail>
<CustomerRef name="Cool Cars">3</CustomerRef>
<CustomerMemo>Thank you for your business and have a great day!</CustomerMemo>
<BillAddr>
<Id>105</Id>
<Line1>65 Ocean Dr.</Line1>
<City>Half Moon Bay</City>
<CountrySubDivisionCode>CA</CountrySubDivisionCode>
<PostalCode>94213</PostalCode>
</BillAddr>
<ShipAddr>
<Id>106</Id>
<Line1>65 Ocean Dr.</Line1>
<City>Half Moon Bay</City>
<CountrySubDivisionCode>CA</CountrySubDivisionCode>
<PostalCode>94213</PostalCode>
</ShipAddr>
<FreeFormAddress>true</FreeFormAddress>
<ShipFromAddr>
<Id>107</Id>
<Line1>123 Sierra Way</Line1>
<Line2>San Pablo, CA 87999</Line2>
</ShipFromAddr>
<TotalAmt>31.50</TotalAmt>
<ApplyTaxAfterDiscount>false</ApplyTaxAfterDiscount>
<PrintStatus>NeedToPrint</PrintStatus>
<EmailStatus>NotSet</EmailStatus>
<BillEmail>
<Address>Cool_Cars@intuit.com</Address>
</BillEmail>
</Estimate>
This is My
XML file (Code).
There will be multiple estimate Node and Each Estimate node have various no. of Line node.
Now I want to iterate through each line (Green highlighted on above XML code) of each node How Can I do?
For that I did below method but it's not working.
What is an issue here or How Can I do it?