How to design the xml port for this xml file
I have tired but failed.
Please help.
<response> <id>2</id> <parent_id>1</parent_id> <name>Default Category</name> <is_active>true</is_active> <position>1</position> <level>1</level> <product_count>0</product_count> <children_data> <item> <id>4</id> <parent_id>2</parent_id> <name>Electronics</name> <is_active>true</is_active> <position>2</position> <level>2</level> <product_count>0</product_count> <children_data> <item> <id>5</id> <parent_id>4</parent_id> <name>Phones &amp; Tablets</name> <is_active>true</is_active> <position>1</position> <level>3</level> <product_count>0</product_count> <children_data> <item> <id>6</id> <parent_id>5</parent_id> <name>Smart Phones</name> <is_active>true</is_active> <position>1</position> <level>4</level> <product_count>3</product_count> <children_data> <item> <id>7</id> <parent_id>6</parent_id> <name>Apple</name> <is_active>true</is_active> <position>1</position> <level>5</level> <product_count>0</product_count> <children_data/> </item> <item> <id>8</id> <parent_id>6</parent_id> <name>Huawei</name> <is_active>true</is_active> <position>2</position> <level>5</level> <product_count>0</product_count> <children_data/> </item> <item> <id>9</id> <parent_id>6</parent_id> <name> Microsoft</name> <is_active>true</is_active> <position>3</position> <level>5</level> <product_count>0</product_count> <children_data/> </item> <item> <id>10</id> <parent_id>6</parent_id> <name>Mi</name> <is_active>true</is_active> <position>4</position> <level>5</level> <product_count>0</product_count> <children_data/> </item> </children_data> </item> </children_data> </item> </children_data> </item> </children_data> </response>
I have tired but failed.
Please help.