Question

2
Replies
482
Views
JOHNPW_GCS Member since 2009 18 posts
PEGA
Posted: 2 years ago
Last activity: 2 years 4 months ago
Closed
Solved

Help mapping this XML to PRPC properties.....

Can anybody advise how to build a PARSE-XML, PRPC Data Model and SECTION to display the data in a Tree View ?

Any help with any bits of this appreciated !

Thanks

BACKGROUND:

I have some XML which is generated by the following Linux Command:

tree -XD

If I run this against a filesystem which has this structure for instance:

.

.
├── a
│   ├── another_file.txt
│   ├── b
│   └── c
│       └── leaf.txt
├── goodbye.txt
└── hello.txt

It returns the following XML:

<?xml version="1.0" encoding="UTF-8"?>
<tree>
  <directory name=".">
    <directory name="a" time="Mar 29 14:18">
      <file name="another_file.txt" time="Mar 29 14:18"></file>
      <directory name="b" time="Mar 29 14:18">
      </directory>
      <directory name="c" time="Mar 29 14:18">
        <file name="leaf.txt" time="Mar 29 14:18"></file>
      </directory>
    </directory>
    <file name="goodbye.txt" time="Mar 29 14:18"></file>
    <file name="hello.txt" time="Mar 29 14:18"></file>
  </directory>
  <report>
    <directories>3</directories>
    <files>4</files>
  </report>
</tree>
Data Integration
Moderation Team has archived post
Share this page LinkedIn