©2009 Bubaweb.com -
XML mini-portal home -
Terms of Use -
Privacy Policy
Copy and paste on your website to use!
<iframe src="http://www.thalesjacobi.com/webtools/php_xml_debugger.php" scrolling="auto" frameborder="1" style="height:450px;width:455px;"> </iframe>
In some cases, where the XML files to validate, a debugging method is necessary.
| Method | Description |
|---|---|
| With the debugger | This method requires you to connect to the internet and place the XML document's content, or destination URL, into it. Running the XML Debugger is possible to step through line-by-line and analyse the structure of the XML. It's simple and strait forward! |
| Without the debugger | This method requires you to execute the same steps the XML Debugger would, but manually. You must validate chunks of the XML at a time until you see the error. It can take a long time to do it because long XMLs aren't people-friendly and reading it can be very tiring. |
The best example of the use of our API is Thales Jacobi's HTML code to be used in any website:
<iframe src="http://www.thalesjacobi.com/webtools/php_xml_debugger.php" scrolling="auto" frameborder="1" style="height:450px;width:455px;"> </iframe>
Using PHP:
$curl= curl_init("http://xml.bubaweb.com/api/php_xml_debugger.php");
curl_setopt ($curl, CURLOPT_POST, 1);
curl_setopt ($curl, CURLOPT_POSTFIELDS, $_POST);
curl_setopt ($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($curl, CURLOPT_USERAGENT, 'Thales Jacobi API connection, cURL code from personal blog');
$xml=curl_exec ($curl);
$parser=simplexml_load_string($xml);
foreach ($parser as $k=>$v)echo "<p>$v</p><br />";
echo "<div><a href=\"javascript:window.location='http://www.thalesjacobi.com/webtools/php_xml_debugger.php';\">Try again!</a></div>";
Try placing the following XML into the field above:
<?xml version='1.0' encoding='UTF-8'?>
<rss xmlns:atom='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' version='2.0'>
<channel>
<atom:id>tag:blogger.com,1999:blog-8561868508709777690</atom:id>
<lastBuildDate>Thu, 27 Aug 2009 15:17:51 +0000</lastBuildDate>
<title>PHP developer and systems analist Thales Jacobi</title>
<description>PHP developer Thales Jacobi. Some of my work and the web related topics that I'm interested at the moment. AJAX, with jQuery, high performance MySQL, XML and RDF/XML parsing and understanding, SEO technics and a more IT subjects.</description>
<link>http://www.thalesjacobi.com/index.php</link>
<managingEditor>noreply@blogger.com (Thales Jacobi)</managingEditor>
<generator>Blogger</generator>
<openSearch:totalResults>1</openSearch:totalResults>
<openSearch:startIndex>1</openSearch:startIndex>
<openSearch:itemsPerPage>25</openSearch:itemsPerPage>
<item>
<guid isPermaLink='false'>tag:blogger.com,1999:blog-8561868508709777690.post-3483277524508145444</guid>
<pubDate>Mon, 24 Aug 2009 13:54:00 +0000</pubDate>
<atom:updated>2009-08-27T05:10:33.714-07:00</atom:updated>
<title>Plataform update</title>
<description>Blogger.com is now my blog plataform. I was using MS Office Live system and now Google's blog engine. All my previous posts including PHP classes and articles will be posted here in a little while. Thanks for passing by.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8561868508709777690-3483277524508145444?l=www.thalesjacobi.com%2Findex.php'/></div></description>
<link>http://www.thalesjacobi.com/2009/08/testing-blogger-ftp-post.html</link>
<author>noreply@blogger.com (Thales Jacobi)</author>
<thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total>
</item>
</channel>
</rss>