Skip to content

ryan-zheng-teki/folder-to-xml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Introduction

This package is used to convert a folder structure into xml file

Algorithm

We used nonrecursive way of parsing the tree to generate the xml nodes

The data structure used in this algorithm is.

node {
    parent: node
    sibling: node
}  

while(nextWork) {
beginWork(nextWork);
}

beginWork(nextWork) {
    perform work on nextWork
    if nextWork.sibling not empty
        return nextWork.sibling
    call finish(nextWork)
}

Work flow

Process the current item, after processing the current item, then continue with its sibling. If the current item does not have sibling, then go back to its parent.

How To Use

npm install folder-to-xml folder-to-xml source-folder-name targt-file

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published