Oussema Posted April 6, 2017 Share Posted April 6, 2017 <root> <category title="tab1" id="tab1"> <subcategory title="Test1" id="Test1" > <content> dsqdqsdqsdqsdqsdqsdqsoduqsiopdyzaipdza...ect </content> </subcategory> <subcategory title="Test2" id="Test2" > <content> dsqdsqdqsdsqpodjqsdjqsopoo dsq...............ect </content> </subcategory> <category title="tab2" id="tab2"> <subcategory title="test3" id="test3" > <content> sdqdqsdqsdsqodqsoidsqoiqsdqs <content> </subcategory> </root> how i can get the texts from this xml for example ! i want get texts of tab2 subcategory test3 Link to comment
Pembo Posted April 8, 2017 Share Posted April 8, 2017 (edited) getResourceConfig or xmlLoadFile xmlFindChild -gets the child node xmlNodeGetAttributes -returns a table containing as keys the name of the attributes and as values the value of the attributes Edited April 8, 2017 by Pembo Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now