i need to load a local xml file(ie: c:\temp\sample.xml) into local html5 page and show the result variables.
this is sample.xml
<?xml version="1.0" encoding="UTF-8"?>
<fe:Invoice>
<cbc:ProfileID>1.0</cbc:ProfileID>
<cbc:ID>FV341375</cbc:ID>
<fe:AccountingCustomerParty>
<cbc:AdditionalAccountID>2</cbc:AdditionalAccountID>
<fe:Party>
<fe:Person>
<cbc:FirstName>Andres</cbc:FirstName>
</fe:Person>
</fe:Party>
</fe:AccountingCustomerParty>
<fe:InvoiceLine>
<cbc:ID>1102347224825331</cbc:ID>
<cbc:InvoicedQuantity>1</cbc:InvoicedQuantity>
<fe:Item>
<cbc:Description>Item Description</cbc:Description>
</fe:Item>
<fe:Price>
<cbc:PriceAmount currencyID="COP">65000.00</cbc:PriceAmount>
</fe:Price>
</fe:InvoiceLine>
</fe:Invoice>
i need to print the values for:
fe:invoice-> cbc:ID
fe:invoice-> fe:AccountingCustomerParty -> fe:Party -> fe:Person -> cbc:FirstName
fe:invoice-> fe:InvoiceLine -> fe:Item -> cbc:Description
fe:invoice-> fe:InvoiceLine -> fe:price -> cbc:PriceAmount
the result on my html5 page must be something like this:
Invioce Id: FV341375
First name: Andres
Description: Item Description
Price: 65000.00
How i can do this using javascript?
thanks