the xml shows ok in a browser like Firefox, but if open the file in ex, ultraedit, i see that the formatting is lost after somepoint.
it doesn't really matter that much.
XML produced, beautyfied and tags removed:
Code: Select all
<Root>
<AuditFile>
<HeaderFile>
<AuditFileVersion>Some value</AuditFileVersion>
<CompanyID>Some value</CompanyID>
<TaxRegistrationNumber>Some value</TaxRegistrationNumber>
<TaxAccountingBasis>Some value</TaxAccountingBasis>
<CompanyName>Some value</CompanyName>
<CompanyAddress>
<BuildingNumber>Comapany address value</BuildingNumber>
<StreetName>Comapany address value</StreetName>
<AddressDetail>Comapany address value</AddressDetail>
<City>Comapany address value</City>
<PostalCode>Comapany address value</PostalCode>
<Region>Comapany address value</Region>
<Country>Comapany address value</Country>
</CompanyAddress>
<FiscalYear>Some value</FiscalYear>
<StartDate>Some value</StartDate>
<EndDate>Some value</EndDate>
<CurrencyCode>Some value</CurrencyCode>
<DateCreated>Some value</DateCreated>
<ProductID>Some value</ProductID>
<ProductVersion>Some value</ProductVersion>
<HeaderComment>Some value</HeaderComment>
<Telephone>Some value</Telephone>
<Fax>Some value</Fax>
<Email>Some value</Email>
<WebSite>Some value</WebSite>
</HeaderFile>
<MasterFiles>
<GeneralLedgers/>
<Customers/>
<Suppliers/>
<Products/>
<TaxTables/>
</MasterFiles>
<GeneralLedgerEntries>
<NumberOfEntries/>
<TotalDebit/>
<TotalCredit/>
<Journals/>
</GeneralLedgerEntries>
<SourceDocuments>
<SalesInvoices>
<NumberOfEntries/>
<TotalDebit/>
<TotalCredit/>
<Invoices>
<Invoice>
<InvoiceNo>IA10000001</InvoiceNo>
<Period/>
<InvoiceDate>2008-21-01</InvoiceDate>
<InvoiceType>Venda a dinheiro</InvoiceType>
<SystemEntryDate>2008-21-01T17:46:52</SystemEntryDate>
<TransactionID/>
<CustomerID/>
<ShipTo/>
<ShipFrom/>
<Line>
<LineNumber>1</LineNumber>
<OrderReferences/>
<ProductCode/>
<ProductDescription/>
<Quantity>1</Quantity>
<UnitOfMeasure/>
<UnitPrice>26</UnitPrice>
<TaxPointDate>2008-21-01</TaxPointDate>
<References/>
<Description>Serviços Internet (alojamento/acesso)</Description>
<DebitAmount/>
<CreditAmount/>
<Tax/>
<SettlementAmount/>
</Line>
<DocumentTotals>
<TaxPayable/>
<NetTotal/>
<GrossTotal/>
<Currency/>
<Settlement/>
</DocumentTotals>
</Invoice>
<Invoice>
<InvoiceNo>IA10000002</InvoiceNo>
<Period/>
<InvoiceDate>2008-21-01</InvoiceDate>
<InvoiceType>Venda a dinheiro</InvoiceType>
<SystemEntryDate>2008-21-01T17:46:56</SystemEntryDate>
<TransactionID/>
<CustomerID/>
<ShipTo/>
<ShipFrom/>
<Line>
....
XML produced, tags removed, beautyfied:
Code: Select all
<Root>
<AuditFile>
<HeaderFile>
<AuditFileVersion>Some value</AuditFileVersion>
<CompanyID>Some value</CompanyID>
<TaxRegistrationNumber>Some value</TaxRegistrationNumber>
<TaxAccountingBasis>Some value</TaxAccountingBasis>
<CompanyName>Some value</CompanyName>
<CompanyAddress>
<BuildingNumber>Comapany address value</BuildingNumber>
<StreetName>Comapany address value</StreetName>
<AddressDetail>Comapany address value</AddressDetail>
<City>Comapany address value</City>
<PostalCode>Comapany address value</PostalCode>
<Region>Comapany address value</Region>
<Country>Comapany address value</Country>
</CompanyAddress>
<FiscalYear>Some value</FiscalYear>
<StartDate>Some value</StartDate>
<EndDate>Some value</EndDate>
<CurrencyCode>Some value</CurrencyCode>
<DateCreated>Some value</DateCreated>
<ProductID>Some value</ProductID>
<ProductVersion>Some value</ProductVersion>
<HeaderComment>Some value</HeaderComment>
<Telephone>Some value</Telephone>
<Fax>Some value</Fax>
<Email>Some value</Email>
<WebSite>Some value</WebSite>
</HeaderFile>
<MasterFiles>
<GeneralLedgers/>
<Customers/>
<Suppliers/>
<Products/>
<TaxTables/>
</MasterFiles>
<GeneralLedgerEntries>
<NumberOfEntries/>
<TotalDebit/>
<TotalCredit/>
<Journals/>
</GeneralLedgerEntries>
<SourceDocuments>
<SalesInvoices>
<NumberOfEntries/>
<TotalDebit/>
<TotalCredit/>
<Invoices>
<Invoice>
<InvoiceNo>IA10000001</InvoiceNo>
<Period/>
<InvoiceDate>2008-21-01</InvoiceDate>
<InvoiceType>Venda a dinheiro</InvoiceType>
<SystemEntryDate>2008-21-01T17:46:52</SystemEntryDate>
<TransactionID/>
<CustomerID/>
<ShipTo/>
<ShipFrom/>
<Line>
<LineNumber>1</LineNumber>
<OrderReferences/>
<ProductCode/>
<ProductDescription/>
<Quantity>1</Quantity>
<UnitOfMeasure/>
<UnitPrice>26</UnitPrice>
<TaxPointDate>2008-21-01</TaxPointDate>
<References/>
<Description>Serviços Internet (alojamento/acesso)</Description>
<DebitAmount/>
<CreditAmount/>
<Tax/>
<SettlementAmount/>
</Line>
<DocumentTotals>
<TaxPayable/>
<NetTotal/>
<GrossTotal/>
<Currency/>
<Settlement/>
</DocumentTotals>
</Invoice>
.....
this is how ultraedit shows both files...