Hello,
I have been trying to process an XML file with a varying degree of success (mostly failure).
I have managed to create the following parallel job which works fine:
sequential file -> xml input -> sequential file.
I used Record type=implicit and Delimiter=none in the sequential file stage to read the entire file as one row.
The actual file that I will have to process is about 3 MB in size, so the sequential stage is not going to work.
I replaced the sequential file with an external source stage and changed the "Column content" radio button in the XML Input stage to "URL/File Path" from "XML Document". The "Source Program" property in the external source stage contains "ls /user/user23/sample.xml".
The program is running without any errors/warnings, but I am getting 0 rows. I see one row going into the XML input stage but none coming out.
Following are the contents of sample.xml
<?xml version="1.0"?>
<Name>
<FirstName>name1</FirstName>
<FirstName>name2</FirstName>
</Name>
I am sure that I have missed something - some very small thing most likely. Please assist.
Processing XML using external source
Moderators: chulett, rschirm, roy
Look carefully at the Description property of your output link......you should have something like /Name/FirstName . Anything else would be a typical reason for getting zero rows.
Also...just in case, send your External Source stage link to a sequential file and be sure you are getting the filename as you expect.
Ernie
Also...just in case, send your External Source stage link to a sequential file and be sure you are getting the filename as you expect.
Ernie
Ernie Ostic
blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>