I have n number of Xml files ... and I need to read those xml files one by one(all have same metadata) and then do some transformation for the logic
My problem here in parallel is I don,t have FOlder stage to do.How can I implement this in parallel
Anyone have an idea abt this
THis will help me a lot
xml files
Moderators: chulett, rschirm, roy
Not sure. The Sequential stage in PX can support bringing in multiple wild-carded files without having to cat them together. However, I don't know if it can supply just the filename of each file rather than the file's data. If that's the case, you can use the URL method in the XML Input stage.
Or roll your own external command to return the filenames to the XML Input stage.
Or perhaps someone will chime in with something more better for PX.![Wink :wink:](./images/smilies/icon_wink.gif)
Or roll your own external command to return the filenames to the XML Input stage.
Or perhaps someone will chime in with something more better for PX.
![Wink :wink:](./images/smilies/icon_wink.gif)
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
yes you can use as many files as you want, in your sequential stage, and you can also use wildcard characters in those file names,chulett wrote:Not sure. The Sequential stage in PX can support bringing in multiple wild-carded files without having to cat them together. However, I don't know if it can supply just the filename of each file rather than the file's data. If that's the case, you can use the URL method in the XML Input stage.
Or roll your own external command to return the filenames to the XML Input stage.
Or perhaps someone will chime in with something more better for PX.
thanks
cetin
Thanks,
Chad
__________________________________________________________________
"There are three kinds of people in this world; Ones who know how to count and the others who don't know how to count !"
Chad
__________________________________________________________________
"There are three kinds of people in this world; Ones who know how to count and the others who don't know how to count !"
-
- Participant
- Posts: 145
- Joined: Fri May 02, 2003 9:59 am
- Location: Seattle, Washington. USA
Re: xml files
External Source -> XML Input -> Rest of processingpukars4u wrote:I have n number of Xml files ... and I need to read those xml files one by one(all have same metadata) and then do some transformation for the logic
My problem here in parallel is I don,t have FOlder stage to do.How can I implement this in parallel
Anyone have an idea abt this
THis will help me a lot
Use the external source to get a list of XML files to process. We on Linux so I put find /data3/XMLLogin/ -name '*.xml' -print -type f as the command (not exactly sure what you would use for windows). This command gives you a list of file names with path. Feed this into the XML Stage and set the Column Content to URL/File path.
That is it.
Shawn Ramsey
"It is a mistake to think you can solve any major problems just with potatoes."
-- Douglas Adams
"It is a mistake to think you can solve any major problems just with potatoes."
-- Douglas Adams