The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 895 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 895 errorHandler->error




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: 2 Guest(s)