Hi,
I have a requirement to extract data from XML file and load it to a tab delimitted sequential file.
My design flow is : External Stae --> XML input stage --> Transformaer Stage -->> Sequential File stage.
I imported the meta data,namespace declaration too.
1 row (XML file path) is coming as input to XML input stage and no records are coming as output.
Job ran fine with warnings as shown below.
XSLT Processor: Unknown element on the output. Element Name = "CustomerInfo"
XSLT Processor: Text can only occur as a direct child of a "column" element.
This warning came for all the columns.
PFB the file used.
<?xml version="1.0" encoding="UTF-8" ?>
- <CustomerInfo xmlns:cnt="http://www.ibm.com/schemas/ContactDemo" xmlns="http://www.ibm.com/schemas/SimpleXMLDemo" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<CustomerID>0000000003</CustomerID>
<CompanyName>Eastway software Inc.</CompanyName>
- <Contacts>
- <cnt:Contact>
<cnt:FirstName>Andy</cnt:FirstName>
<cnt:LastName>Lin</cnt:LastName>
<cnt:Email>AndyLin@eastway.com</cnt:Email>
</cnt:Contact>
- <cnt:Contact>
<cnt:FirstName>Lisa</cnt:FirstName>
<cnt:LastName>Pierce</cnt:LastName>
<cnt:Email>LisaP@eastway.com</cnt:Email>
</cnt:Contact>
</Contacts>
</CustomerInfo>
Please help me in resolving the issue.
TIA.....
Issue with data extraction from XML File
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 246
- Joined: Mon Jun 30, 2008 3:22 am
- Location: New York
- Contact: