Problem Text :
Write a function ReadXml($xmlstr) which accepts an XML string as its only argument. Your function should write the names of the nodes and their values.
For Example :
ReadXml($xmlstr) where
$xmlstr= ‘<Address><to>James</to><from>Jani</from><heading>Reminder</heading><body>Please check your mail.</body></Address>’
should return
Address
to: James
from: Jani
heading: Reminder
body: Please check your mail.
Note: As the question requires the output to be displayed in the new/ next line, use “\n” instead of “<br>”
Please Share your Answer in Comment Box:
You must be logged in to post a comment.
Make an Enquiry
Categories
- Algorithm Update
- Articles Submission
- Canonicalization urls
- Dedicated Web Server
- Digital Marketing
- Frameworks
- Google Adsense
- Google Webmaster
- HTML
- Industrial Training projects for MCA/Engineering
- internet Marketing
- Job Openings
- Joomla Development
- MCA Live Projects
- MLM Software
- Newspaper Theme 8.5
- Notices
- Others
- Pay Per Click Advertising
- Paypal Integration
- PHP Development
- PHP MySQL
- PHP Professional Training
- Related Posts
- Search Engine Optimization
- Social Bookmarking
- Social Media Marketing
- Software Testing
- W3cValidation
- Wordpress

