Requirements for converting array to XML source code: 1. suitable for arrays with multiple layers 2. support attributes 3. the key name of the array can be a lot of numbers found on the Internet, and none of them meet the requirements ------ solution ------------------ what is support attribute ??? ------ Solution -------------------- the xml format is generally fixed. You can use the xml tag as the subscript of the array. Then the circular value is ready. ------ solve the problem of converting array to XML source code.
Requirements:
1. suitable for arrays with multiple layers
2. supported attributes
3. the key name of the array can be a number.
I have found a lot on the Internet, but none of them meet the requirements.
------ Solution --------------------
What is support attribute ???
------ Solution --------------------
The xml format is generally fixed. You can use the xml tag as the subscript of the array.
Then the loop value is enough.
------ Solution --------------------
I remember, you can do it with xml objects.