Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
read xml convert to folder/subfolder/text file
#1
If I have the following XML file
Code:
Copy      Help
<?xml version="1.0" encoding="UTF-8"?>
<snippetcollection>
  <maincat name="php">
      <subcat name="strings">
         <snippet>
            <title>explode-example1</title>
            <content>txttxttxt</content>
         </snippet>
       </subcat>
   </maincat>
</snippetcollection>

How can I create folders and subfolder with a text file and set it's content:

Code:
Copy      Help
php   (folder, main_cat)
|
|--strings   (subfolder, subcat)
   |
   |--explode-example1.txt  (textfile and contents="txttxttxt")


Messages In This Thread

Forum Jump:


Users browsing this thread: 7 Guest(s)