i have website and the XML from another site gives booking info within the CDATA and i want to extract the content of this CDATA using PHP and also create a button so when this is clicked this CDAT content is retrieved. Please help
alltech
0
Newbie Poster
Recommended Answers
Jump to PostUse SimpleXML: http://php.net/manual/en/book.simplexml.php
From that extension you can use simplexml_load_file() with LIBXML_NOCDATA, here's an example:# XML file <?xml version='1.0' standalone='yes'?> <aaa> <bbb> <id>1</id> <title>title 1</title> <msg><![CDATA[hello world string]]></msg> </bbb> …
All 4 Replies
cereal
1,524
Nearly a Senior Poster
Featured Poster
alltech
0
Newbie Poster
cereal
1,524
Nearly a Senior Poster
Featured Poster
alltech
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.