Hi,
I'm going to read a repeated xml hierarchy and extract some key column to a flat file. It always output the first row ?? I guess we need to XSLT or DTD before hand we read the xml file. Please let me know if you know anything about this problem.
Thanks
-U
Here is the sample input : Where LevelID and LevelCode are repeating in the same xml itself.
- <Product_Hierarchies>
- <Store>
- <ProductHierarchy>
- <Level Parent="0">
<TranType>T</TranType>
<LevelId>6</LevelId>
<HostTechKey>9</HostTechKey>
- <LevelName>
<Language>en</Language>
<Name>RAMPAGE</Name>
</LevelName>
<LevelCode>2</LevelCode>
- <Level Parent="9">
<TranType>T</TranType>
<LevelId>5</LevelId>
<HostTechKey>11</HostTechKey>
- <LevelName>
<Language>en</Language>
<Name>DIVISION 6 - ACC - RAMPAGE</Name>
</LevelName>
<LevelCode>6</LevelCode>
- <Level Parent="11">
<TranType>T</TranType>
how to read a repeated xml hierarchy
Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.
Moderators: chulett, rschirm, roy
Return to “IBM<sup>®</sup> Infosphere DataStage Server Edition”
Jump to
- Moderators' Choice
- ↳ Editor's BLOG Corner
- ↳ Ask the Experts! - Dads and Grads
- ↳ DSXchange Testimonials
- ↳ Cognos (IBM BI)
- FAQs
- ↳ FAQs
- ↳ FAQ Discussion
- DataStage
- ↳ General
- ↳ IBM<sup>®</sup> Infosphere DataStage Server Edition
- ↳ IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- ↳ Archive of DataStage Users@Oliver.com
- IBM<sup>®</sup>Infosphere Products<sup></sup>
- ↳ Business Glossary
- Suggestions
- ↳ Site/Forum
- ↳ Enhancement Wish List
- Consulting
- ↳ Talent
- ↳ Looking for Talent
- Support
- ↳ Parameter Manager
- ↳ Compile All Plus
- Usergroup Forums
- ↳ Usergroup Central Forum
- ↳ Heartland Usergroup Forum
- The Written Word
- ↳ Articles, White Papers and Tips and Tricks
- ↳ Product Documentation
- Third Party Applications
- ↳ Third Party Applications
- Product Derivatives
- ↳ Functions
- ↳ Routines
- ↳ Jobs
- ↳ Logs
- Tools
- ↳ Tools Forum
- Category
- ↳ Infosphere Master Data Management
- ↳ Data Quality Best Practices
- ↳ IBM QualityStage
- ↳ Information Analyzer (formerly ProfileStage)
- ↳ IBM<sup>®</sup> SOA Editions (Formerly RTI Services)
- ↳ IBM<sup>®</sup> DataStage TX
- ↳ BI
- ↳ Data Integration