Question

2
Replies
513
Views
John Pritchard-Williams (JOHNPW_GCS)
PEGA
Client Support Team Lead
Pegasystems Inc.
GB
JOHNPW_GCS Member since 2009 20 posts
PEGA
Posted: March 29, 2018
Last activity: May 11, 2018
Posted: 29 Mar 2018 9:28 EDT
Last activity: 11 May 2018 12:09 EDT
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, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.