Dear Sunil,
After making the change, the program works for the sample 1
However, I found that if I change to the xml I use, even I change the name to sample.xml there is nothing happens. Therefore I wonder, is it only applied to certain format of xml, eg with the tag start with rdf ??
here is the xml I want to embed, is it workable?
<?xml version="1.0" encoding="UTF-8"?>
<Invoice xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" xmlns:cac=
"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc =
"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">
<cbc:UBLVersionID>2.1</cbc:UBLVersionID>
<cbc:ID>TOSL108</cbc:ID>
<cbc:IssueDate>2009-12-15</cbc:IssueDate>
<cbc:InvoiceTypeCode listID="UN/ECE 1001 Subset"
listAgencyID="6">380</cbc:InvoiceTypeCode>
<cbc:TaxPointDate>2014-10-01</cbc:TaxPointDate>
<cbc:DocumentCurrencyCode listID="ISO 4217 Alpha"
listAgencyID=" 6 ">USS</cbc:DocumentCurrencyCode>
<cac:InvoicePeriod>
<cbc:StartDate> 2014 - 10 - 01 </cbc:StartDate>
<cbc:EndDate> 2014 - 10 - 01 </cbc:EndDate>
</cac:InvoicePeriod>
</Invoice>
Regards,
Brian