<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>WebDeveloper.com - XML</title>
		<link>http://www.webdeveloper.com/forum/</link>
		<description>Discussion and technical support for using and deploying XML applications and websites.</description>
		<language>en</language>
		<lastBuildDate>Wed, 22 May 2013 16:55:44 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.webdeveloper.com/forum/images/misc/rss.png</url>
			<title>WebDeveloper.com - XML</title>
			<link>http://www.webdeveloper.com/forum/</link>
		</image>
		<item>
			<title>New, Learning, and completely lost now</title>
			<link>http://www.webdeveloper.com/forum/showthread.php?277765-New-Learning-and-completely-lost-now&amp;goto=newpost</link>
			<pubDate>Fri, 10 May 2013 18:51:12 GMT</pubDate>
			<description><![CDATA[I am guessing this should be simple but its not for me. My professor does not understand English well and is using a book we don't have. Sigh 
Any help is extremely appreciated, especially explanations of why something is done a certain way 
This is what I need to do: 
 
1. Use your text editor to...]]></description>
			<content:encoded><![CDATA[<div>I am guessing this should be simple but its not for me. My professor does not understand English well and is using a book we don't have. Sigh<br />
Any help is extremely appreciated, especially explanations of why something is done a certain way<br />
This is what I need to do:<br />
<br />
1. Use your text editor to open the golfer.txt and scores.txt files from the folder you saved them, and then study the contents of the files. Based on the contents of these two files, develop two XML vocabularies: one to describe the information from the golfer.txt file and the other to describe the information from the scores.txt file. The structure of the two vocabularies is up to you, but it should include examples of attributes and nested child elements.<br />
2. Place the golfer vocabulary in the namespace <a rel="nofollow" href="http://fairwayviews.com/golfers/ns" target="_blank">http://fairwayviews.com/golfers/ns</a> and the scores vocabulary in the namespace <a rel="nofollow" href="http://fairwayviews.com/scores/ns" target="_blank">http://fairwayviews.com/scores/ns</a>.<br />
3. Create a compound document named golfer.xml that includes data from both the golfer and the scores vocabularies. Include a comment section in the file that describes the content and purpose of the document.<br />
4. Create a schema file named scores.xsd that can be used to validate the content from the scores vocabulary. The layout and structure of the schema is up to you, but it should contain examples of the following:<br />
• A customized data type restricting the value of a built-in XML Schema data type<br />
• A named complex type that describes the structure of a complex element<br />
• An attribute that employs the IDREF data type<br />
5. Create a schema file named golfers.xsd that can be used to validate the golfer vocabulary. The schema should demonstrate how to import the scores schema and include the following features:<br />
• Attributes with data values limited to nonnegative and positive integers<br />
• An attribute containing an ID value<br />
• An element containing a floating point value<br />
6. Apply the two schemas you created to your compound document, golfer.xml. Validate the file to ensure that there are no errors.<br />
<br />
Files are as:<br />
golfer.txt:<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">Name: Brett Bierson<br />
News: Bierson fresh off his 7th place finish in the Buick Invitational, tees off<br />
&nbsp; &nbsp; &nbsp; with the last group in the Southern Open. Bierson looks to finish in the<br />
&nbsp; &nbsp; &nbsp; Top 30 of the money list for the third consecutive year.<br />
<br />
<br />
&nbsp;  Events:&nbsp; &nbsp; 3<br />
&nbsp;  Cuts:&nbsp; &nbsp; &nbsp; 3<br />
&nbsp;  Top 10:&nbsp; &nbsp; 2<br />
&nbsp;  Wins:&nbsp; &nbsp; &nbsp; 0<br />
&nbsp;  Avg:&nbsp; &nbsp; &nbsp; 70.9<br />
&nbsp;  Earnings: 980968<br />
<br />
Player ID: pga028</code><hr />
</div> scores.txt:<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">Venue: Buick Invitational<br />
Golfer: Brett Bierson<br />
Finish: 7<br />
Score: 285 (-3)<br />
Winnings: 589231<br />
<br />
Scoring<br />
=======<br />
Round 1<br />
&nbsp;  Hole1 (par 4): 4<br />
&nbsp;  Hole2 (par 4): 4<br />
&nbsp;  Hole3 (par 5): 5<br />
&nbsp;  Hole4 (par 3): 2<br />
&nbsp;  Hole5 (par 4): 4<br />
&nbsp;  Hole6 (par 4): 4<br />
&nbsp;  Hole7 (par 5): 5<br />
&nbsp;  Hole8 (par 3): 4<br />
&nbsp;  Hole9 (par 4): 4<br />
&nbsp;  Hole10 (par 4): 4<br />
&nbsp;  Hole11 (par 5): 3<br />
&nbsp;  Hole12 (par 4): 4<br />
&nbsp;  Hole13 (par 3): 3<br />
&nbsp;  Hole14 (par 4): 4<br />
&nbsp;  Hole15 (par 5): 5<br />
&nbsp;  Hole16 (par 4): 5<br />
&nbsp;  Hole17 (par 3): 3<br />
&nbsp;  Hole18 (par 4): 3<br />
<br />
Round 2<br />
&nbsp;  Hole1 (par 4): 3<br />
&nbsp;  Hole2 (par 4): 4<br />
&nbsp;  Hole3 (par 5): 5<br />
&nbsp;  Hole4 (par 3): 3<br />
&nbsp;  Hole5 (par 4): 4<br />
&nbsp;  Hole6 (par 4): 4<br />
&nbsp;  Hole7 (par 5): 5<br />
&nbsp;  Hole8 (par 3): 3<br />
&nbsp;  Hole9 (par 4): 4<br />
&nbsp;  Hole10 (par 4): 4<br />
&nbsp;  Hole11 (par 5): 4<br />
&nbsp;  Hole12 (par 4): 4<br />
&nbsp;  Hole13 (par 3): 3<br />
&nbsp;  Hole14 (par 4): 4<br />
&nbsp;  Hole15 (par 5): 6<br />
&nbsp;  Hole16 (par 4): 4<br />
&nbsp;  Hole17 (par 3): 4<br />
&nbsp;  Hole18 (par 4): 4<br />
<br />
<br />
Round 3<br />
&nbsp;  Hole1 (par 4): 3<br />
&nbsp;  Hole2 (par 4): 4<br />
&nbsp;  Hole3 (par 5): 6<br />
&nbsp;  Hole4 (par 3): 3<br />
&nbsp;  Hole5 (par 4): 4<br />
&nbsp;  Hole6 (par 4): 4<br />
&nbsp;  Hole7 (par 5): 5<br />
&nbsp;  Hole8 (par 3): 2<br />
&nbsp;  Hole9 (par 4): 4<br />
&nbsp;  Hole10 (par 4): 4<br />
&nbsp;  Hole11 (par 5): 4<br />
&nbsp;  Hole12 (par 4): 3<br />
&nbsp;  Hole13 (par 3): 3<br />
&nbsp;  Hole14 (par 4): 5<br />
&nbsp;  Hole15 (par 5): 4<br />
&nbsp;  Hole16 (par 4): 4<br />
&nbsp;  Hole17 (par 3): 2<br />
&nbsp;  Hole18 (par 4): 4<br />
<br />
Round 4<br />
&nbsp;  Hole1 (par 4): 4<br />
&nbsp;  Hole2 (par 4): 4<br />
&nbsp;  Hole3 (par 5): 5<br />
&nbsp;  Hole4 (par 3): 2<br />
&nbsp;  Hole5 (par 4): 3<br />
&nbsp;  Hole6 (par 4): 5<br />
&nbsp;  Hole7 (par 5): 5<br />
&nbsp;  Hole8 (par 3): 4<br />
&nbsp;  Hole9 (par 4): 3<br />
&nbsp;  Hole10 (par 4): 5<br />
&nbsp;  Hole11 (par 5): 5<br />
&nbsp;  Hole12 (par 4): 4<br />
&nbsp;  Hole13 (par 3): 6<br />
&nbsp;  Hole14 (par 4): 5<br />
&nbsp;  Hole15 (par 5): 5<br />
&nbsp;  Hole16 (par 4): 3<br />
&nbsp;  Hole17 (par 3): 3<br />
&nbsp;  Hole18 (par 4): 4</code><hr />
</div> </div>

 ]]></content:encoded>
			<category domain="http://www.webdeveloper.com/forum/forumdisplay.php?5-XML">XML</category>
			<dc:creator>DanS</dc:creator>
			<guid isPermaLink="true">http://www.webdeveloper.com/forum/showthread.php?277765-New-Learning-and-completely-lost-now</guid>
		</item>
		<item>
			<title>How to Add Global Shipping Program in Ebay API</title>
			<link>http://www.webdeveloper.com/forum/showthread.php?277531-How-to-Add-Global-Shipping-Program-in-Ebay-API&amp;goto=newpost</link>
			<pubDate>Tue, 07 May 2013 05:25:53 GMT</pubDate>
			<description>Hi Friend, 
 
I need your help to Add Global Shipping Program in Ebay API, 
 
Can u Explain how to Add in the Xml and Where to Add? 
 
Kindly Specify the Tag to be Added and Above and Below Tag Element. 
 
With the help of ur Answer, I can Solve this Issue.</description>
			<content:encoded><![CDATA[<div>Hi Friend,<br />
<br />
I need your help to Add Global Shipping Program in Ebay API,<br />
<br />
Can u Explain how to Add in the Xml and Where to Add?<br />
<br />
Kindly Specify the Tag to be Added and Above and Below Tag Element.<br />
<br />
With the help of ur Answer, I can Solve this Issue.<br />
<br />
Thank U in Advance,</div>

 ]]></content:encoded>
			<category domain="http://www.webdeveloper.com/forum/forumdisplay.php?5-XML">XML</category>
			<dc:creator>bheema</dc:creator>
			<guid isPermaLink="true">http://www.webdeveloper.com/forum/showthread.php?277531-How-to-Add-Global-Shipping-Program-in-Ebay-API</guid>
		</item>
		<item>
			<title>Created an XML test for programmers to prove their skills. What do you guys think?</title>
			<link>http://www.webdeveloper.com/forum/showthread.php?277205-Created-an-XML-test-for-programmers-to-prove-their-skills.-What-do-you-guys-think&amp;goto=newpost</link>
			<pubDate>Wed, 01 May 2013 18:58:23 GMT</pubDate>
			<description>Hey gang  
 
Our community created an XML test for programmers to test their skills and prove their knowledge. What do you guys think? Give it a shot and post your scores below so you can see where you stack up against each other.  
 
Any feedback is very appreciated :) 
 
So you think you know...</description>
			<content:encoded><![CDATA[<div>Hey gang <br />
<br />
Our community created an XML test for programmers to test their skills and prove their knowledge. What do you guys think? Give it a shot and post your scores below so you can see where you stack up against each other. <br />
<br />
Any feedback is very appreciated :)<br />
<br />
<a rel="nofollow" href="http://smarterer.com/tests/xml?c=forum-xml" target="_blank">So you think you know XML?</a></div>

 ]]></content:encoded>
			<category domain="http://www.webdeveloper.com/forum/forumdisplay.php?5-XML">XML</category>
			<dc:creator>Jsmarterer</dc:creator>
			<guid isPermaLink="true">http://www.webdeveloper.com/forum/showthread.php?277205-Created-an-XML-test-for-programmers-to-prove-their-skills.-What-do-you-guys-think</guid>
		</item>
		<item>
			<title>XML Document Validation using PHP - Error</title>
			<link>http://www.webdeveloper.com/forum/showthread.php?277151-XML-Document-Validation-using-PHP-Error&amp;goto=newpost</link>
			<pubDate>Tue, 30 Apr 2013 11:37:24 GMT</pubDate>
			<description>hi, 
 
I am trying to validate a huge xml document perhaps with 10 lakh lines it. 
 
The problem is that the validation error happens above line 65535. 
 
I think there is a problem or limitation in libxml2 library. Please help me  
 
i would attach me php script below.</description>
			<content:encoded><![CDATA[<div>hi,<br />
<br />
I am trying to validate a huge xml document perhaps with 10 lakh lines it.<br />
<br />
The problem is that the validation error happens above line 65535.<br />
<br />
I think there is a problem or limitation in libxml2 library. Please help me <br />
<br />
i would attach me php script below.<br />
<br />
-------------------------- &lt; PHP SCRIPT &gt; --------------------------------------------<br />
<br />
&lt;?php<br />
ini_set('max_execution_time', 3000); // Maximum exection time for validating large XML Data<br />
//ini_set('memory_limit', '-1'); // Memory Limit is set to '-1' : unlimited <br />
define(&quot;LIMIT&quot;,&quot;&lt;br/&gt;&quot;);<br />
$error=&quot;&quot;;<br />
$count=0;<br />
$line_no=0; <br />
// Array of all the nodes<br />
$formats =array(<br />
					&quot;Herstellernummer&quot;=&gt;&quot;o_varchar_255&quot;,<br />
					&quot;Herstellername&quot;=&gt;&quot;c_varchar_255&quot;,<br />
					&quot;Eigenmarke&quot;=&gt;&quot;o_boolean&quot;,// 0 or 1 only<br />
					&quot;ID&quot;=&gt;&quot;c_varchar_255&quot;,<br />
					&quot;Name&quot;=&gt;&quot;c_varchar_255&quot;,<br />
					&quot;Beschreibung&quot;=&gt;&quot;o_varchar_12255&quot;,<br />
					&quot;Anzahl&quot;=&gt;&quot;o_Decimal&quot;,<br />
					&quot;Packungseinheit&quot;=&gt;&quot;o_varchar_12255&quot;,<br />
					&quot;Packungsmenge&quot;=&gt;&quot;o_Decimal&quot;,<br />
					&quot;Basismengeneinheit&quot;=&gt;&quot;o_varchar_12255&quot;,<br />
					&quot;MwSt&quot;=&gt;&quot;o_int&quot;,<br />
					&quot;EAN&quot;=&gt;&quot;o_varchar_255&quot;,<br />
					&quot;HIBC&quot;=&gt;&quot;o_varchar_255&quot;,<br />
					&quot;PZN&quot;=&gt;&quot;o_varchar_255&quot;,<br />
					&quot;Bild1URL&quot;=&gt;&quot;o_url&quot;,<br />
					&quot;DatenblattURL&quot;=&gt;&quot;o_url&quot;,<br />
					&quot;ExtraDateiURL&quot;=&gt;&quot;o_url&quot;,<br />
					&quot;Groesse&quot;=&gt;&quot;o_varchar_100&quot;,<br />
					&quot;Geschlecht&quot;=&gt;&quot;o_varchar_100&quot;,<br />
					&quot;Farbe&quot;=&gt;&quot;o_varchar_100&quot;,<br />
					&quot;Material&quot;=&gt;&quot;o_varchar_100&quot;,<br />
					&quot;Kategorien&quot;=&gt;array(&quot;Kategorie&quot;=&gt;&quot;o_varchar_100&quot;),<br />
					&quot;ZugehoerigeArtikel&quot;=&gt;array(&quot;ID&quot;=&gt;&quot;o_varchar_255&quot;),<br />
					&quot;Angebote&quot;=&gt;array(<br />
										&quot;Angebot&quot;=&gt;array(<br />
															&quot;Bestellnummer&quot;=&gt;&quot;c_varchar_255&quot;,<br />
															&quot;GueltigAb&quot;=&gt;&quot;o_date&quot;,<br />
															&quot;GueltigBis&quot;=&gt;&quot;o_date&quot;,<br />
															&quot;MinBestellmenge&quot;=&gt;&quot;c_int&quot;,<br />
															&quot;Preis&quot;=&gt;&quot;c_Decimal&quot;,<br />
															&quot;Rabattfaehig&quot;=&gt;&quot;o_boolean&quot;,<br />
															&quot;Beschaffungsartikel&quot;=&gt;&quot;o_int&quot;,<br />
															&quot;Lagerstatus&quot;=&gt;&quot;c_boolean&quot;<br />
														 )<br />
									  )							<br />
			   );<br />
// Reading the XML Document			   			   <br />
$xml_read = new XMLReader;<br />
//$xml_read-&gt;open('xml2wwb_20130323_001626.xml');<br />
//$xml_read-&gt;open('xml2wwb_eas_20130405_162920.xml');<br />
//$xml_read-&gt;open('xml2wwb_20130215_214835.xml');<br />
<br />
<br />
$xml_read-&gt;open('sample.xml');<br />
$doc = new DOMDocument;<br />
    //echo $xml_read-&gt;expand()-&gt;getLineNo().&quot;&lt;br/&gt;&quot;;	<br />
function is_valid_xml ( $xml ) {<br />
	    libxml_use_internal_errors( true );<br />
     <br />
	    $doc = new DOMDocument('1.0', 'utf-8');	     <br />
	    $doc-&gt;loadXML( $xml );<br />
  	    $errors = libxml_get_errors();<br />
	    return empty( $errors );	<br />
		}<br />
	<br />
<br />
while ($xml_read-&gt;read() &amp;&amp; $xml_read-&gt;name !== 'Artikel');<br />
while ($xml_read-&gt;name === 'Artikel')<br />
{<br />
    $count++;<br />
	<br />
	$line_no=$xml_read-&gt;expand()-&gt;getLineNo();<br />
    $Artikel = simplexml_import_dom($doc-&gt;importNode($xml_read-&gt;expand(), true));<br />
	foreach($formats as $f1_key =&gt; $f1_value)<br />
	{<br />
		if(is_array($f1_value))//checking for inner node<br />
		{<br />
			foreach($f1_value as $f2_key =&gt; $f2_value)<br />
			{<br />
				if(is_array($f2_value))//checking for inner node<br />
				{<br />
					foreach($f2_value as $f3_key =&gt; $f3_value)<br />
					{<br />
						$c_key=isset($Artikel-&gt;$f1_key-&gt;$f2_key-&gt;$f3_key)?$Artikel-&gt;$f1_key-&gt;$f2_key-&gt;$f3_key:null;<br />
						do_or_die($c_key,$f3_value,array($f3_key,$f2_key,$f1_key));<br />
					}<br />
				<br />
				}<br />
				else<br />
				{<br />
					$c_key=isset($Artikel-&gt;$f1_key-&gt;$f2_key)?$Artikel-&gt;$f1_key-&gt;$f2_key:null;<br />
					do_or_die($c_key,$f2_value,array($f2_key,$f1_key));<br />
					<br />
				}<br />
			}<br />
				<br />
		}<br />
		else<br />
		{<br />
			$c_key=isset($Artikel-&gt;$f1_key)?$Artikel-&gt;$f1_key:null;<br />
			do_or_die($c_key,$f1_value,array($f1_key));<br />
			<br />
			//if($f1_key==&quot;Name&quot;){$name=$Artikel-&gt;$f1_key;};<br />
		}<br />
	}<br />
   <br />
    $xml_read-&gt;next('Artikel');<br />
}<br />
<br />
<br />
/* starts predefined functions */<br />
<br />
<br />
function do_or_die($key,$value,$attribute=null)<br />
{<br />
//echo $attribute.&quot;&lt;br/&gt;&quot;;<br />
global $error,$line_no;<br />
//	echo isset($key)?&quot;true&lt;br/&gt;&quot;:&quot;false&quot;;<br />
//	echo isset($Artikel-&gt;$f1_key)?&quot;true&lt;br/&gt;&quot;:&quot;false&quot;;<br />
		if(isset($key))//and !empty($key)<br />
		{<br />
			//var_dump($key);<br />
			data_check($key,$value,$attribute);<br />
		}<br />
		else<br />
		{	//var_dump($value);<br />
			$error.=echo_attr($attribute).&quot; not present for Artikel @ line no &quot;.$line_no.LIMIT; // for missing XML data  <br />
		}<br />
}<br />
<br />
echo &quot;No of Artikel in the XML Document : &quot;.$count;<br />
function data_check($data,$format,$attribute=null)<br />
{<br />
global $error,$line_no;<br />
	$arr_format=explode(&quot;_&quot;,$format);<br />
	switch($arr_format[0])<br />
	{<br />
		case &quot;o&quot;:<br />
			if($arr_format[0]===&quot;o&quot;&amp;&amp;strlen($data)!=0)//condtion for optional tags and the data <br />
			{<br />
				check_again($arr_format,$data,$attribute);<br />
			}<br />
		break;<br />
		case &quot;c&quot;:<br />
			if(strlen($data)!=0) // condition for Required tags and the data<br />
			{<br />
				check_again($arr_format,$data,$attribute);<br />
			}<br />
			else<br />
			{<br />
				$error.=&quot; Error, Data not present - please fill in the required details for : &quot;.echo_attr($attribute).&quot;  for Artikel @ line no &quot;.$line_no.LIMIT;<br />
			}<br />
		break;<br />
	}<br />
	<br />
}<br />
function check_again($arr_format,$data,$attribute=null)<br />
{<br />
global $error,$line_no;<br />
switch(strtolower($arr_format[1])) // checking of Different Data Types<br />
	{<br />
			case &quot;varchar&quot;: <br />
				if(!(strlen($data)&lt;=intval($arr_format[2])))<br />
				{<br />
				$error.=&quot;Error,length exceeded - z.B.: Heraeus Kulzer - &quot;.echo_attr($attribute).&quot;  for Artikel @ line no &quot;.$line_no.LIMIT;<br />
				}			<br />
			break;<br />
			case &quot;decimal&quot;:<br />
			if(!iis_decimal($data))<br />
				{<br />
				$error.=&quot;Data_type(Decimal) Format Incorrect - z.B.: 2.00 - &quot;.echo_attr($attribute).&quot;  for Artikel @ line no &quot;.$line_no.LIMIT;<br />
				}				<br />
			break;<br />
			case &quot;boolean&quot;:<br />
				if(!iss_boolean($data))<br />
				{<br />
					$error.=&quot;Data_type(Boolean) Format Incorrect - z.B.: 0 - &quot;.echo_attr($attribute).&quot;  for Artikel @ line no &quot;.$line_no.LIMIT;<br />
				}				<br />
			break;<br />
			case &quot;date&quot;:<br />
			if(!iis_date($data))<br />
				{<br />
					$error.=&quot;Incorrect Date Format - z.B.: 2013-03-15 - &quot;.echo_attr($attribute).&quot;  for Artikel @ line no &quot;.$line_no.LIMIT;<br />
				}<br />
				<br />
			break;<br />
			case &quot;url&quot;:<br />
			if(!isValidURL($data))<br />
				{<br />
					$error.=&quot; URL Format Incorrect - z.B.: bild1.jpg ODER <a rel="nofollow" href="http://www.meinshop.de/bild1.jpg" target="_blank">http://www.meinshop.de/bild1.jpg</a> - &quot;.echo_attr($attribute).&quot;  for Artikel @ line no &quot;.$line_no.LIMIT;<br />
				}<br />
			break;<br />
			case &quot;int&quot;:<br />
				if(!iis_int($data))<br />
				{<br />
				$error.=&quot;Data_type(Integer) Format Incorrect - z.B.: 0 - &quot;.echo_attr($attribute).&quot;  for Artikel @ line no &quot;.$line_no.LIMIT;<br />
				}				<br />
			break;<br />
	}<br />
}<br />
echo &quot;&lt;br/&gt;&quot;.$error;<br />
function iss_boolean($var)//  Function to validate the Boolean type values<br />
{<br />
	if((strlen($var)===1&amp;&amp;iis_int($var))&amp;&amp; ($var==&quot;1&quot; ||$var==&quot;0&quot;))<br />
	{<br />
		return true;<br />
	}<br />
	else<br />
	{<br />
		return false;<br />
	}<br />
}<br />
<br />
function iis_int($var) <br />
{<br />
//return preg_match(&quot;/^[0-9]$/&quot;, $var);<br />
return preg_match(&quot;/^\d+$/&quot;, $var);<br />
}<br />
/*function iis_int($var) <br />
{<br />
if(strval(intval($var)) == strval($var)) {<br />
return true;<br />
} <br />
else return false;<br />
}*/<br />
function iis_decimal($number_check) //Function to validate the Decimal type values<br />
{<br />
//$number_check = str_replace(&quot;,&quot; , &quot;.&quot; , $number_check);<br />
//if (preg_match( '/^[\-+]?[0-9]{1}\.{1}\,?[0-9]+$/', $number_check))<br />
if (preg_match( '/^([1-9][0-9]*(.[0-9]+)?|0.[0-9]+|.[0-9]+|0)$/', $number_check))<br />
{<br />
    return TRUE;<br />
}<br />
else<br />
<br />
return false;<br />
<br />
}<br />
function isValidURL($url) // Function to validate URL's<br />
{<br />
return preg_match('|^http(s)?://[a-z0-9-]+(.[a-z0-9-]+)*(:[0-9]+)?(/.*)?$|i', $url);<br />
}<br />
function iis_date($input,$date_format = 'Y-m-d') // Function to validate Date Format<br />
{<br />
$date_format = 'Y-m-d';<br />
$input = trim($input);<br />
$time = strtotime($input);<br />
<br />
$is_valid = date($date_format, $time) == $input;<br />
return $is_valid;<br />
}<br />
function echo_attr($attributes)<br />
{<br />
$output=&quot;&quot;;<br />
$numItems = count($attributes);<br />
$i = 0;<br />
foreach($attributes as $attribute)<br />
{<br />
 if(++$i === $numItems) {<br />
    $output.=$attribute;<br />
  }<br />
  else<br />
  {<br />
	$output.=$attribute.&quot;-&gt;&quot;;<br />
  }<br />
}<br />
return $output;<br />
}<br />
<br />
?&gt;<br />
<br />
-------------------------- &lt; END OF SCRIPT &gt; -----------------------------------------<br />
<br />
i have a sample XML file<br />
<br />
-----------------------  &lt; XML SCRIPT &gt; ----------------------------------<br />
<br />
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt;<br />
&lt;AlleArtikel&gt;<br />
	&lt;Artikel&gt;<br />
		&lt;Herstellernummer&gt;D 10&lt;/Herstellernummer&gt;<br />
		&lt;Herstellername&gt;AD-Arztbedarf&lt;/Herstellername&gt;<br />
		&lt;Eigenmarke&gt;0&lt;/Eigenmarke&gt;<br />
		&lt;ID&gt;A_00000103&lt;/ID&gt;<br />
		&lt;Name&gt;Algisept-Spray D 10 | Algisept-Spray D 10, Sprühflasche 200 ml&lt;/Name&gt;<br />
		&lt;Beschreibung&gt;Algisept-Spray D 10<br />
Speziell konzipiert für die Desinfektion von Alginat- und Silikon-Abdrücken. Gute Materialverträglichkeit. Praxisgerechte, sparsame Anwendung. Abdrücke einsprühen, feucht halten und nach 5 Min. ausgießen. Nicht geeignet für Hydrokolloide.<br />
Wirkungsspektrum:<br />
Wirksam gegen Bakterien einschließlich Tbc, Pilze, HBV und HIV<br />
<br />
Verkaufseinheit:<br />
Algisept-Spray D 10, Sprühflasche 200 ml&lt;/Beschreibung&gt;<br />
		&lt;Packungseinheit&gt;Sprühflasche&lt;/Packungseinheit&gt;<br />
		&lt;Anzahl&gt;&lt;/Anzahl&gt;<br />
		&lt;Packungsmenge&gt;200&lt;/Packungsmenge&gt;<br />
		&lt;Basismengeneinheit&gt;ml&lt;/Basismengeneinheit&gt;<br />
		&lt;MwSt&gt;0&lt;/MwSt&gt;<br />
		&lt;EAN&gt;&lt;/EAN&gt;<br />
		&lt;HIBC&gt;&lt;/HIBC&gt;<br />
		&lt;PZN&gt;&lt;/PZN&gt;<br />
		&lt;Bild1URL&gt;http://www.d-rect.de/pictures/gross/76655-01_gross.jpg&lt;/Bild1URL&gt;<br />
		&lt;Bild2URL&gt;&lt;/Bild2URL&gt;<br />
		&lt;DatenblattURL&gt;&lt;/DatenblattURL&gt;<br />
		&lt;ExtraDateiURL&gt;&lt;/ExtraDateiURL&gt;<br />
		&lt;Groesse&gt;&lt;/Groesse&gt;<br />
		&lt;Geschlecht&gt;&lt;/Geschlecht&gt;<br />
		&lt;Farbe&gt;&lt;/Farbe&gt;<br />
		&lt;Material&gt;&lt;/Material&gt;<br />
		&lt;Kategorien&gt;<br />
			&lt;Kategorie&gt;002 Desinfektion / Sterilisation &amp;gt; 002.010 Abformdesinfektion&lt;/Kategorie&gt;<br />
		&lt;/Kategorien&gt;<br />
		&lt;ZugehoerigeArtikel&gt;<br />
			&lt;ID&gt;A_00000103&lt;/ID&gt;<br />
			&lt;ID&gt;A_00000104&lt;/ID&gt;<br />
		&lt;/ZugehoerigeArtikel&gt;<br />
		&lt;Angebote&gt;<br />
			&lt;Angebot&gt;<br />
				&lt;Bestellnummer&gt;47 51 72&lt;/Bestellnummer&gt;<br />
				&lt;GueltigAb&gt;&lt;/GueltigAb&gt;<br />
				&lt;GueltigBis&gt;&lt;/GueltigBis&gt;<br />
				&lt;MinBestellmenge&gt;1&lt;/MinBestellmenge&gt;<br />
				&lt;Preis&gt;4.15&lt;/Preis&gt;<br />
				&lt;Rabattfaehig&gt;1&lt;/Rabattfaehig&gt;<br />
				&lt;Beschaffungsartikel&gt;0&lt;/Beschaffungsartikel&gt;<br />
				&lt;Lagerstatus&gt;1&lt;/Lagerstatus&gt;<br />
			&lt;/Angebot&gt;<br />
		&lt;/Angebote&gt;<br />
	&lt;/Artikel&gt;<br />
&lt;/AlleArtikel&gt;<br />
<br />
<br />
----------------------- &lt; END OF XML SCRIPT &gt; ---------------------------<br />
<br />
<br />
thanks<br />
<br />
Regards<br />
<br />
Ash</div>

 ]]></content:encoded>
			<category domain="http://www.webdeveloper.com/forum/forumdisplay.php?5-XML">XML</category>
			<dc:creator>Ashie</dc:creator>
			<guid isPermaLink="true">http://www.webdeveloper.com/forum/showthread.php?277151-XML-Document-Validation-using-PHP-Error</guid>
		</item>
		<item>
			<title>End tag not finished XML problem!</title>
			<link>http://www.webdeveloper.com/forum/showthread.php?277119-End-tag-not-finished-XML-problem!&amp;goto=newpost</link>
			<pubDate>Mon, 29 Apr 2013 19:45:33 GMT</pubDate>
			<description><![CDATA[Hello 
 
I'm working on conversting a text cookbook to online DTD and XML. I've almost finished, but just got 1 annoying error which I can't seem to solve. 
 
The error says: end tag for "method" which is not finished 
 
However as far as I can see Ive correctly ended the tag and nested the data. ...]]></description>
			<content:encoded><![CDATA[<div>Hello<br />
<br />
I'm working on conversting a text cookbook to online DTD and XML. I've almost finished, but just got 1 annoying error which I can't seem to solve.<br />
<br />
The error says: end tag for &quot;method&quot; which is not finished<br />
<br />
However as far as I can see Ive correctly ended the tag and nested the data. <br />
<br />
Any help would be massively appreciated. Thanks!<br />
<br />
<br />
<br />
<br />
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br />
&lt;!DOCTYPE cookbook [ <br />
&lt;!ELEMENT cookbook (frontcover+,body+)&gt;<br />
&lt;!ELEMENT frontcover (title,byline,author)&gt;<br />
&lt;!ELEMENT title (#PCDATA)&gt;<br />
&lt;!ELEMENT byline (#PCDATA)&gt;<br />
&lt;!ELEMENT author (#PCDATA)&gt;<br />
&lt;!ELEMENT body (recipeone+,recipetwo+)&gt;<br />
&lt;!ENTITY PUBLISHER &quot;Quadrille Publishing&quot;&gt;<br />
&lt;!ENTITY COPYRIGHT &quot;Copyright 2010 Quadrille Publishing&quot;&gt;<br />
<br />
&lt;!ELEMENT recipeone (recipe_title,prep_time,cook_time,recipe_blurb,ingredients_list,ingredient*,quantity*,food_item*,met  hod*)&gt;<br />
&lt;!ELEMENT recipetwo (recipe_title,prep_time,serves?,cook_time,recipe_blurb,ingredients_list,ingredient*,quantity*,food_i  tem*,method*)&gt;<br />
&lt;!ELEMENT recipe_title (#PCDATA)&gt;<br />
&lt;!ELEMENT prep_time (#PCDATA)&gt;<br />
&lt;!ELEMENT serves (#PCDATA)&gt;<br />
&lt;!ELEMENT cook_time (#PCDATA)&gt;<br />
&lt;!ELEMENT recipe_blurb (#PCDATA)&gt;<br />
&lt;!ELEMENT ingredients_list (ingredient+)&gt;<br />
&lt;!ELEMENT ingredient (#PCDATA|quantity|food_item)*&gt;<br />
&lt;!ELEMENT quantity (#PCDATA)&gt;<br />
&lt;!ELEMENT food_item (#PCDATA)&gt;<br />
&lt;!ELEMENT method (step_one,step_two,step_three,step_four,step_five,step_six,step_seven,step_eight,step_nine,step_ten,  step_eleven,step_twelve,step_thirteen,step_fourteen,step_fifteen,step_sixteen)*&gt;<br />
&lt;!ELEMENT step_one (#PCDATA)&gt;<br />
&lt;!ELEMENT step_two (#PCDATA)&gt;<br />
&lt;!ELEMENT step_three (#PCDATA)&gt;<br />
&lt;!ELEMENT step_four (#PCDATA)&gt;<br />
&lt;!ELEMENT step_five (#PCDATA)&gt;<br />
&lt;!ELEMENT step_six (#PCDATA)&gt;<br />
&lt;!ELEMENT step_seven (#PCDATA)&gt;<br />
&lt;!ELEMENT step_eight (#PCDATA)&gt;<br />
&lt;!ELEMENT step_nine (#PCDATA)&gt;<br />
&lt;!ELEMENT step_ten (#PCDATA)&gt;<br />
&lt;!ELEMENT step_eleven (#PCDATA)&gt;<br />
&lt;!ELEMENT step_twelve (#PCDATA)&gt;<br />
&lt;!ELEMENT step_thirteen (#PCDATA)&gt;<br />
&lt;!ELEMENT step_fourteen (#PCDATA)&gt;<br />
&lt;!ELEMENT step_fifteen (#PCDATA)&gt;<br />
&lt;!ELEMENT step_sixteen (#PCDATA)&gt;<br />
]&gt;<br />
	<br />
	<br />
 &lt;cookbook&gt;<br />
 <br />
		<br />
		&lt;frontcover&gt;<br />
			<br />
			&lt;title&gt; Alice's Cookbook &lt;/title&gt;<br />
			&lt;byline&gt; &quot;I love this book. I love everything about it: the recipes, the tone and, as importantly, Alice's warmth.&quot; &lt;/byline&gt;<br />
			&lt;author&gt; Alice Hart &lt;/author&gt;<br />
			<br />
		&lt;/frontcover&gt;<br />
		<br />
	&lt;body&gt; <br />
		&lt;recipeone&gt;<br />
				&lt;recipe_title&gt; Honey's Raspberry Turnover &lt;/recipe_title&gt;<br />
				&lt;prep_time&gt; Hands on Time: 15 mins &lt;/prep_time&gt;<br />
				&lt;cook_time&gt; 20 mins &lt;/cook_time&gt;<br />
				&lt;recipe_blurb&gt; Honey, my baker-extraordinaire, puff-pastry-making gradnmother, has been a dab hand with a turnover for <br />
				as long as I can remember, churning out batches of apple, apricot or raspberry from a handsome blue Aga. Make sure you <br />
				use all-butter puff pastry; it tastes better and has a much more wholesome ingredient list. &lt;/recipe_blurb&gt;<br />
	<br />
			&lt;ingredients_list&gt;<br />
				<br />
				&lt;ingredient&gt; flour, to dust &lt;/ingredient&gt; <br />
				&lt;ingredient&gt; &lt;quantity&gt; 500g &lt;/quantity&gt; of &lt;food_item&gt;  all-butter puff pastry <br />
				&lt;/food_item&gt; &lt;/ingredient&gt;<br />
				&lt;ingredient&gt; &lt;quantity&gt; 500g &lt;/quantity&gt; of &lt;food_item&gt; fresh raspberries &lt;/food_item&gt; <br />
				&lt;/ingredient&gt;<br />
				&lt;ingredient&gt; &lt;quantity&gt; 125g &lt;/quantity&gt; of &lt;food_item&gt; vanilla sugar or caster sugar<br />
				&lt;/food_item&gt; &lt;/ingredient&gt;			 		<br />
				&lt;ingredient&gt; &lt;quantity&gt; 1 &lt;/quantity&gt; of &lt;food_item&gt; free-range egg yolk &lt;/food_item&gt; <br />
				mixed with &lt;quantity&gt; 1 tbsp &lt;/quantity&gt; &lt;food_item&gt; milk &lt;/food_item&gt; &lt;/ingredient&gt;<br />
			<br />
			&lt;/ingredients_list&gt;<br />
		<br />
		<br />
	&lt;method&gt;<br />
					&lt;step_one&gt; Flour surface. &lt;/step_one&gt;<br />
					&lt;step_two&gt; Roll out pastry to form a 1/2 thick rectangle. &lt;/step_two&gt;<br />
					&lt;step_three&gt; Straighten raggedy edges with a sharp knife. &lt;/step_three&gt;<br />
					&lt;step_four&gt; Cut pastry into eight even squares of 15x15cm. &lt;/step_four&gt;<br />
					&lt;step_five&gt; Place a pile of raspberries in each square, slightly off centre. <br />
					&lt;/step_five&gt;<br />
					&lt;step_six&gt; Add a heaped teaspoon of sugar. &lt;/step_six&gt;<br />
					&lt;step_seven&gt; Using a pastrry brush, paint a little water around the edge and bring one <br />
					corner to meet its diaganol opposite. &lt;/step_seven&gt;<br />
			 		&lt;step_eight&gt; Press the edges together firmly to seal using the tines of a fork. <br />
					&lt;/step_eight&gt;<br />
					&lt;step_nine&gt; Repeat to make eight pastries. &lt;/step_nine&gt;<br />
					&lt;step_ten&gt; Place pastries on a baking tray. &lt;/step_ten&gt;<br />
					&lt;step_eleven&gt; Preheat oven to 200 degrees/fan 190 degrees/gas mark 6. &lt;/step_eleven&gt;<br />
					&lt;step_twelve&gt; Brush pastry with egg wash (yolk and milk mixture). &lt;/step_twelve&gt;<br />
					&lt;step_thirteen&gt; Sprinkle with a little more sugar. &lt;/step_thirteen&gt;<br />
					&lt;step_fourteen&gt; Cut a small vent in the top of each to let the steam out. <br />
					&lt;/step_fourteen&gt;<br />
					&lt;step_fifteen&gt; Bake for 20 minutes, until exuberantly plump and golden. &lt;/step_fifteen&gt;<br />
					&lt;step_sixteen&gt; Cool on a wire rack and serve warm. &lt;/step_sixteen&gt;<br />
				<br />
	&lt;/method&gt; <br />
		<br />
		&lt;/recipeone&gt;<br />
		<br />
		&lt;recipetwo&gt;<br />
		<br />
				&lt;recipe_title&gt; Melting Chocolate Cake &lt;/recipe_title&gt;<br />
				&lt;prep_time&gt; Hands on Time: 20 mins &lt;/prep_time&gt;<br />
				&lt;serves&gt; Serves 8 &lt;/serves&gt;<br />
				&lt;cook_time&gt; 30-35 mins &lt;/cook_time&gt;<br />
				&lt;recipe_blurb&gt; Ah, the wonder of fallen, sunken chocolate cakes. They're so rich but <br />
				oh-so-good and only need a few ingredients. Basically, this is a sunful baked mousse, with 				<br />
				only a few ground almonds to take it into cake territory &lt;/recipe_blurb&gt;<br />
			<br />
			&lt;ingredients_list&gt;<br />
				&lt;ingredient&gt; pinch of salt &lt;/ingredient&gt;<br />
				&lt;ingredient&gt; &lt;quantity&gt; 150g &lt;/quantity&gt; of &lt;food_item&gt;  alcubed unsalted butter, plus more<br />
				for the tin &lt;/food_item&gt; &lt;/ingredient&gt;<br />
				&lt;ingredient&gt; &lt;quantity&gt; 250g &lt;/quantity&gt; of &lt;food_item&gt; good, dark chocolate <br />
				(70% cocoa solids), broken into pieces &lt;/food_item&gt; &lt;/ingredient&gt;<br />
				&lt;ingredient&gt; &lt;quantity&gt; 150g &lt;/quantity&gt; of &lt;food_item&gt; caster sugar &lt;/food_item&gt; <br />
				&lt;/ingredient&gt;			 		<br />
				&lt;ingredient&gt; &lt;quantity&gt; 5 &lt;/quantity&gt; of &lt;food_item&gt; free-range eggs, separated <br />
				&lt;/food_item&gt; &lt;/ingredient&gt;<br />
				&lt;ingredient&gt; &lt;quantity&gt; 30g &lt;/quantity&gt; of &lt;food_item&gt; ground almonds &lt;/food_item&gt; <br />
				&lt;/ingredient&gt;<br />
				&lt;ingredient&gt; &lt;quantity&gt; 1 tbsp &lt;/quantity&gt; of &lt;food_item&gt; bourbon &lt;/food_item&gt; <br />
				&lt;/ingredient&gt;<br />
			<br />
			&lt;/ingredients_list&gt;<br />
			<br />
	&lt;method&gt;<br />
				<br />
				&lt;step_one&gt; Lightly butter a 23 cm round, springform cake tin, then cut non-stick baking <br />
				parchment to line the base and sides. &lt;/step_one&gt;<br />
				&lt;step_two&gt; Heat the oven to 160 degrees/fan 150 degrees/gas mark 3. &lt;/step_two&gt;<br />
				&lt;step_three&gt; Melt the chocolate and butter in a bain marie or in the microwave. <br />
				&lt;/step_three&gt;<br />
				&lt;step_four&gt; Allow to cool a little, then stir until smooth and add 60g of the suger and 1 <br />
				egg yolk. &lt;/step_four&gt;<br />
				&lt;step_five&gt; Gardually mix in the remaining yolks. &lt;/step_five&gt;<br />
				&lt;step_six&gt; Stir in the almonds and bourbon. &lt;/step_six&gt;<br />
				&lt;step_seven&gt; Use electric beaters to whisk the egg whites with the salt until they hold <br />
				soft peaks. &lt;/step_seven&gt;<br />
				&lt;step_eight&gt; Gradually whisk in the remaining sugar, 2 tbsp a time, whisking until stiff <br />
				and glossy. &lt;/step_eight&gt;<br />
				&lt;step_nine&gt; Loosen the chocolate nmixture with a spoonful of egg white, then fold in the <br />
				rest with a spatula or large spoon. &lt;/step_nine&gt;<br />
				&lt;step_ten&gt; Pour the batter into the prepared tin, level the top and bake for 30-35 minutes <br />
				&lt;/step_ten&gt;<br />
				&lt;step_eleven&gt; Leave the cake to cool in the tine, on a wire rack, for 15 minutes. <br />
				&lt;/step_eleven&gt;<br />
				&lt;step_twelve&gt; Remove the sides and leave to cool on the base of the tin. &lt;/step_twelve&gt;<br />
				&lt;step_thirteen&gt; Eat! &lt;/step_thirteen&gt;<br />
			<br />
	<br />
		<br />
	&lt;/method&gt;<br />
		<br />
		&lt;/recipetwo&gt;<br />
	<br />
	&lt;/body&gt;<br />
&lt;/cookbook&gt;</div>

 ]]></content:encoded>
			<category domain="http://www.webdeveloper.com/forum/forumdisplay.php?5-XML">XML</category>
			<dc:creator>alpal32</dc:creator>
			<guid isPermaLink="true">http://www.webdeveloper.com/forum/showthread.php?277119-End-tag-not-finished-XML-problem!</guid>
		</item>
		<item>
			<title>Page to show XML FEED on same page - PLEASE HELP</title>
			<link>http://www.webdeveloper.com/forum/showthread.php?277059-Page-to-show-XML-FEED-on-same-page-PLEASE-HELP&amp;goto=newpost</link>
			<pubDate>Sun, 28 Apr 2013 12:19:21 GMT</pubDate>
			<description><![CDATA[Hello all, 
 
I have tried so many things to get this to work but to no avail, can someon eplease help me out here with a simple script for n XML steam feed. 
 
http://api.steampowered.com/ISteamUserStats/GetGlobalAchievementPercentagesForApp/v0002/?gameid=221380&format=xml 
 
OK NOW THE ISSUE IS:...]]></description>
			<content:encoded><![CDATA[<div>Hello all,<br />
<br />
I have tried so many things to get this to work but to no avail, can someon eplease help me out here with a simple script for n XML steam feed.<br />
<br />
<a rel="nofollow" href="http://api.steampowered.com/ISteamUserStats/GetGlobalAchievementPercentagesForApp/v0002/?gameid=221380&amp;format=xml" target="_blank">http://api.steampowered.com/ISteamUs...380&amp;format=xml</a><br />
<br />
OK NOW THE ISSUE IS:<br />
<br />
I have a blank webpage which I have placed the above link into, I simply want the contents of the XML feed from the link to appear in my page.......<br />
<br />
How do I make the contents of that url appear on the same page??<br />
<br />
SO I NEED THE SMALL SCRIPT OR HTML CODE TO DO THIS<br />
<br />
Also I would like to have the background a certain colour and use a certain font like 12point arial with bold headings and lower case text.<br />
<br />
Can someone please provide me with the html to allow this XML feed to appear on my webpage with a different colour background, arial 12pt font in bold <br />
<br />
and lowercase<br />
<br />
Could someone pleasde please help me..........<br />
<br />
With regards<br />
<br />
Mathew</div>

 ]]></content:encoded>
			<category domain="http://www.webdeveloper.com/forum/forumdisplay.php?5-XML">XML</category>
			<dc:creator>mdexter</dc:creator>
			<guid isPermaLink="true">http://www.webdeveloper.com/forum/showthread.php?277059-Page-to-show-XML-FEED-on-same-page-PLEASE-HELP</guid>
		</item>
		<item>
			<title>XML Script for a WEBPAGE NEEDED for a STEAM API Module on Clan Website - PLEASE HELP!</title>
			<link>http://www.webdeveloper.com/forum/showthread.php?277021-XML-Script-for-a-WEBPAGE-NEEDED-for-a-STEAM-API-Module-on-Clan-Website-PLEASE-HELP!&amp;goto=newpost</link>
			<pubDate>Sat, 27 Apr 2013 13:22:19 GMT</pubDate>
			<description>Hello all, 
 
This is my first post here and I am after a script for a steam API .xml url tp go onto a custom HTML module for my Game Clan Website, ok I will give you some background information here. 
 
Ok I have a STEAM API KEY and I have a steam id etc, now the steam XML feed is the following: 
...</description>
			<content:encoded><![CDATA[<div>Hello all,<br />
<br />
This is my first post here and I am after a script for a steam API .xml url tp go onto a custom HTML module for my Game Clan Website, ok I will give you some background information here.<br />
<br />
Ok I have a STEAM API KEY and I have a steam id etc, now the steam XML feed is the following:<br />
<br />
I have tried so many scripts out there, done so much reading but I am just not a coder I cannot get this to work, can someone please give me the script I would need.<br />
<br />
Ok here is an example of a steam feed that I want to use:<br />
<br />
<a rel="nofollow" href="http://api.steampowered.com/ISteamUserStats/GetGlobalAchievementPercentagesForApp/v0002/?gameid=221380&amp;format=xml" target="_blank">http://api.steampowered.com/ISteamUs...380&amp;format=xml</a><br />
<br />
ok that will live on this page:<br />
<br />
<a rel="nofollow" href="http://www.mdexter.com/aoe2hdozclan.com/steam.htm" target="_blank">http://www.mdexter.com/aoe2hdozclan.com/steam.htm</a><br />
<br />
Now I have to link it to my website module which is on this page at the very bottom<br />
<br />
<a rel="nofollow" href="http://www.aoe2hdozclan.com" target="_blank">www.aoe2hdozclan.com</a> in the module at the very bottom with the name:<br />
<br />
STEAM AoE2 HD Global Achievements (testing)<br />
<br />
Ok so the HTML module needs to get the xml page as above ((PLEASE NOTE MY WEB HOST DOES NOT ALLOW XML ETC PAGES SO I HAVE TO DO THE XML PAGE OFFSITE WHICH IS OK))<br />
<br />
So the module you see at the bottom of the page at <a rel="nofollow" href="http://www.aoe2hdozclan.com" target="_blank">www.aoe2hdozclan.com</a> have a HTML module which has the following html code:<br />
<br />
OK NOW THE ISSUE IS:<br />
<br />
I cannot load the xml feed into the page above at:<br />
<br />
<a rel="nofollow" href="http://www.mdexter.com/aoe2hdozclan.com/steam.htm" target="_blank">http://www.mdexter.com/aoe2hdozclan.com/steam.htm</a><br />
<br />
it does not load into the above page, the url makes the page have the white background etc, I cannot get the contents of the feed to load into the above webpage....I have tried ending the page in .php etc.<br />
<br />
Can someone please help me get the script for the above page to load the xml feed into the page at:<br />
<br />
<a rel="nofollow" href="http://www.mdexter.com/aoe2hdozclan.com/steam.htm" target="_blank">http://www.mdexter.com/aoe2hdozclan.com/steam.htm</a> the &quot;steam..htm&quot; page with the background colour and fonts etc so it can load properly into the webpage module at <a rel="nofollow" href="http://www.aoe2hdozclan.com" target="_blank">www.aoe2hdozclan.com</a><br />
<br />
I have tried Steam forums, no replies, I have tried another two forums on the web and no replies, I am not a coder,, I am more of a designer of graphics etc and just cannot get my head around the xml feed...but I know the members of the clan we have will be very pleased as this information is really important.<br />
<br />
Please can someone help us out with the script for the webpage to make this load with the font type and colour etc, thanks so very much in advance..<br />
<br />
Cheers</div>

 ]]></content:encoded>
			<category domain="http://www.webdeveloper.com/forum/forumdisplay.php?5-XML">XML</category>
			<dc:creator>mdexter</dc:creator>
			<guid isPermaLink="true">http://www.webdeveloper.com/forum/showthread.php?277021-XML-Script-for-a-WEBPAGE-NEEDED-for-a-STEAM-API-Module-on-Clan-Website-PLEASE-HELP!</guid>
		</item>
		<item>
			<title><![CDATA[New to dtd & xml help]]></title>
			<link>http://www.webdeveloper.com/forum/showthread.php?276965-New-to-dtd-amp-xml-help&amp;goto=newpost</link>
			<pubDate>Fri, 26 Apr 2013 11:24:01 GMT</pubDate>
			<description><![CDATA[Hi there, 
 
I'm trying to code a cookbook, I've done the XML for a recipe but am really struggling to get the correct DTD valid. 
 
Any help would be MASSIVELY appreciated for a noob. Eventually the DTD and XML will have two recipes, hence why there is mention of recipetwo in the DTD. 
 
I keep...]]></description>
			<content:encoded><![CDATA[<div>Hi there,<br />
<br />
I'm trying to code a cookbook, I've done the XML for a recipe but am really struggling to get the correct DTD valid.<br />
<br />
Any help would be MASSIVELY appreciated for a noob. Eventually the DTD and XML will have two recipes, hence why there is mention of recipetwo in the DTD.<br />
<br />
I keep facing errors such as document element does not allow element 'ingredient' here.<br />
Also error element &quot;prep_ingredient&quot; undefined.<br />
<br />
Like I said, any help would be appreciated for a beginner. Thanks!!<br />
<br />
This is the DTD so far followed by the XML<br />
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br />
&lt;!DOCTYPE cookbook [ <br />
&lt;!ELEMENT cookbook (frontcover+,body+)&gt;<br />
&lt;!ELEMENT frontcover (title,byline,author)&gt;<br />
&lt;!ELEMENT title (#PCDATA)&gt;<br />
&lt;!ELEMENT byline (#PCDATA)&gt;<br />
&lt;!ELEMENT author (#PCDATA)&gt;<br />
&lt;!ELEMENT body (recipeone+,recipetwo+)&gt;<br />
&lt;!ENTITY PUBLISHER &quot;Quadrille Publishing&quot;&gt;<br />
&lt;!ENTITY COPYRIGHT &quot;Copyright 2010 Quadrille Publishing&quot;&gt;<br />
<br />
&lt;!ELEMENT recipeone (recipe_title,prep_time,cook_time,recipe_blurb,ingredients_list,ingredient*,quantity*,food_item*)&gt;<br />
&lt;!ELEMENT recipe_title (#PCDATA)&gt;<br />
&lt;!ELEMENT prep_time (#PCDATA)&gt;<br />
&lt;!ELEMENT cook_time (#PCDATA)&gt;<br />
&lt;!ELEMENT recipe_blurb (#PCDATA)&gt;<br />
&lt;!ELEMENT ingredients_list (#PCDATA)&gt;<br />
&lt;!ELEMENT ingredient (#PCDATA)&gt;<br />
&lt;!ELEMENT quantity (#PCDATA)&gt;<br />
&lt;!ELEMENT food_item (#PCDATA)&gt;<br />
&lt;!ELEMENT method (prep_ingredient,step_one,step_two,step_three,step_four,step_five,step_six)&gt;<br />
&lt;!ELEMENT step_one (#PCDATA)&gt;<br />
&lt;!ELEMENT step_two (#PCDATA)&gt;<br />
&lt;!ELEMENT step_three (#PCDATA)&gt;<br />
&lt;!ELEMENT step_four (#PCDATA)&gt;<br />
&lt;!ELEMENT step_five (#PCDATA)&gt;<br />
&lt;!ELEMENT step_six (#PCDATA)&gt;<br />
]&gt;<br />
	&lt;cookbook&gt;<br />
		<br />
		<br />
		&lt;frontcover&gt;<br />
			<br />
			&lt;title&gt; Alice's Cookbook &lt;/title&gt;<br />
			&lt;byline&gt; &quot;I love this book. I love everything about it: the recipes, the tone and, as importantly, Alice's warmth.&quot; &lt;/byline&gt;<br />
			&lt;author&gt; Alice Hart &lt;/author&gt;<br />
			<br />
		&lt;/frontcover&gt;<br />
		<br />
	&lt;body&gt; <br />
		&lt;recipeone&gt;<br />
				&lt;recipe_title&gt; Honey's Raspberry Turnover &lt;/recipe_title&gt;<br />
				&lt;prep_time&gt; Hands on Time: 15 mins &lt;/prep_time&gt;<br />
				&lt;cook_time&gt; 20 mins &lt;/cook_time&gt;<br />
				&lt;recipe_blurb&gt; Honey, my baker-extraordinaire, puff-pastry-making gradnmother, has been a  dab hand with a turnover for as long as I can remember, churning out batches of apple, apricot or raspberry from a handsome blue Aga. Make sure you use all-butter puff pastry; it tastes better and has a much more wholesome ingredient <br />
list. &lt;/recipe_blurb&gt;<br />
	<br />
			&lt;ingredients_list&gt;<br />
				&lt;ingredient&gt; flour, to dust &lt;/ingredient&gt;<br />
				&lt;ingredient&gt; &lt;quantity&gt; 500g &lt;/quantity&gt; of &lt;food_item&gt;  all-butter puff pastry &lt;/food_item&gt; &lt;/ingredient&gt;<br />
				&lt;ingredient&gt; &lt;quantity&gt; 500g &lt;/quantity&gt; of &lt;food_item&gt; fresh raspberries &lt;/food_item&gt; <br />
&lt;/ingredient&gt;<br />
				&lt;ingredient&gt; &lt;quantity&gt; 125g &lt;/quantity&gt; of &lt;food_item&gt; vanilla sugar or caster sugar<br />
&lt;/food_item&gt; &lt;/ingredient&gt;			 		<br />
				&lt;ingredient&gt; &lt;quantity&gt; 1 &lt;/quantity&gt; of &lt;food_item&gt; free-range egg yolk &lt;/food_item&gt; <br />
mixed with &lt;quantity&gt; 1 tbsp &lt;/quantity&gt; &lt;food_item&gt; milk &lt;/food_item&gt; &lt;/ingredient&gt;<br />
			&lt;/ingredients_list&gt;<br />
		<br />
		<br />
	&lt;method&gt;<br />
				&lt;prep_ingredient&gt; Pastry &lt;/prep_ingredient&gt;<br />
					&lt;step_one&gt; Flour surface. &lt;/step_one&gt;<br />
					&lt;step_two&gt; Roll out pastry to form a 1/2 thick rectangle. &lt;/step_two&gt;<br />
					&lt;step_three&gt; Straighten raggedy edges with a sharp knife. &lt;/step_three&gt;<br />
					&lt;step_four&gt; Cut pastry into eight even squares of 15x15cm. &lt;/step_four&gt;<br />
			<br />
				&lt;prep_ingredient&gt; Raspberries &lt;/prep_ingredient&gt;<br />
					&lt;step_one&gt; Place a pile of respberries in each square, slightly off centre. &lt;/step_one&gt;<br />
					&lt;step_two&gt; Add a heaped teaspoon of sugar. &lt;/step_two&gt;<br />
					&lt;step_three&gt; Using a pastrry brucsh, paint a little water around the edge and bring one <br />
corner to meet its diaganol opposite. &lt;/step_three&gt;<br />
					&lt;step_four&gt; Press the edges together firmly to seal using the tines of a fork. <br />
&lt;/step_four&gt;<br />
					&lt;step_five&gt; Repeat to make eight pastries. &lt;/step_five&gt;<br />
					&lt;step_six&gt; Place pastries on a baking tray. &lt;/step_six&gt;<br />
				<br />
				&lt;prep_ingredient&gt; oven time &lt;/prep_ingredient&gt;<br />
					&lt;step_one&gt; Preheat oven to 200 degrees/fan 190 degrees/gas mark 6. &lt;/step_one&gt;<br />
					&lt;step_two&gt; Brush pastry with egg wash (yolk and milk mixture). &lt;/step_two&gt;<br />
					&lt;step_three&gt; Sprinkle with a little more sugar. &lt;/step_three&gt;<br />
					&lt;step_four&gt; Cut a small vent in the top of each to let the steam out. &lt;/step_four&gt;<br />
					&lt;step_five&gt; Bake for 20 minutes, until exuberantly plump and golden. &lt;/step_five&gt;<br />
					&lt;step_six&gt; Cool on a wire rack and serve warm. &lt;/step_six&gt;<br />
				<br />
	&lt;/method&gt; <br />
		&lt;/recipeone&gt;<br />
		<br />
		<br />
		&lt;/body&gt;<br />
	<br />
	&lt;/cookbook&gt;</div>

 ]]></content:encoded>
			<category domain="http://www.webdeveloper.com/forum/forumdisplay.php?5-XML">XML</category>
			<dc:creator>alpal32</dc:creator>
			<guid isPermaLink="true">http://www.webdeveloper.com/forum/showthread.php?276965-New-to-dtd-amp-xml-help</guid>
		</item>
		<item>
			<title>How to insert an attachment via xml</title>
			<link>http://www.webdeveloper.com/forum/showthread.php?276961-How-to-insert-an-attachment-via-xml&amp;goto=newpost</link>
			<pubDate>Fri, 26 Apr 2013 09:00:28 GMT</pubDate>
			<description><![CDATA[What is the correct procedure tu send an attachment via XML? 
I know I have to insert the cid of file, but how can I do to know what is the cid?? 
I'm newbie and I hope you can help me. 
Thanks]]></description>
			<content:encoded><![CDATA[<div>What is the correct procedure tu send an attachment via XML?<br />
I know I have to insert the cid of file, but how can I do to know what is the cid??<br />
I'm newbie and I hope you can help me.<br />
Thanks</div>

 ]]></content:encoded>
			<category domain="http://www.webdeveloper.com/forum/forumdisplay.php?5-XML">XML</category>
			<dc:creator>Fab1313</dc:creator>
			<guid isPermaLink="true">http://www.webdeveloper.com/forum/showthread.php?276961-How-to-insert-an-attachment-via-xml</guid>
		</item>
		<item>
			<title>New to xml</title>
			<link>http://www.webdeveloper.com/forum/showthread.php?276951-New-to-xml&amp;goto=newpost</link>
			<pubDate>Fri, 26 Apr 2013 06:22:07 GMT</pubDate>
			<description><![CDATA[Hey guys I wondering i f anybody knew how to get the title attribute to be visible via HTML through CSS... is there even away? 
 
<section chapter="02" title="THIS PRINTS OUT IN HTML" id="some_id" numbered="false" level="1">]]></description>
			<content:encoded><![CDATA[<div>Hey guys I wondering i f anybody knew how to get the title attribute to be visible via HTML through CSS... is there even away?<br />
<br />
&lt;section chapter=&quot;02&quot; title=&quot;THIS PRINTS OUT IN HTML&quot; id=&quot;some_id&quot; numbered=&quot;false&quot; level=&quot;1&quot;&gt;</div>

 ]]></content:encoded>
			<category domain="http://www.webdeveloper.com/forum/forumdisplay.php?5-XML">XML</category>
			<dc:creator>Tryah85</dc:creator>
			<guid isPermaLink="true">http://www.webdeveloper.com/forum/showthread.php?276951-New-to-xml</guid>
		</item>
		<item>
			<title><![CDATA[<Document xmlns="urn:iso:std:iso:20022:tech:xsd:pain.008.001.03">]]></title>
			<link>http://www.webdeveloper.com/forum/showthread.php?276921-lt-Document-xmlns-quot-urn-iso-std-iso-20022-tech-xsd-pain.008.001.03-quot-gt&amp;goto=newpost</link>
			<pubDate>Thu, 25 Apr 2013 16:26:42 GMT</pubDate>
			<description>I am trying to upload this xml file to a bank for validation. It is a Direct Debit file. It came back from the bank with an error at the line in the title. As far as I can see the pain is correct for a direct debit file. So I cannot see why this has fallen over. If anyone can provide an insight...</description>
			<content:encoded><![CDATA[<div>I am trying to upload this xml file to a bank for validation. It is a Direct Debit file. It came back from the bank with an error at the line in the title. As far as I can see the pain is correct for a direct debit file. So I cannot see why this has fallen over. If anyone can provide an insight that would be helpful. Thank you.<br />
<br />
Error Description from xmldation below.<br />
<br />
&quot;Error description:<br />
Used root element is not the one specified in the schema. Could be caused by invalid namespace declaration, check for typing mistakes in root tag. For example &quot;xmlsn =&quot; instead of correct &quot;xmlns=&quot; or errors in namespace name. Other possibility is that you have validated file against wrong pipe or the file is based on different version of the schema than the pipe.<br />
Correct form for pain.001.001.02 payments is: xmlns= &quot;urn:iso:std:iso:20022:tech:xsd:pain.001.001.02&quot;.<br />
Correct form for pain.001.001.03 payments is: xmlns= &quot;urn:iso:std:iso:20022:tech:xsd:pain.001.001.03&quot;.<br />
Explanation of the error message given by the validator:<br />
Element 'Elem1': No matching global declaration available for the validation root. <br />
Where Elem1 is the root element found from the file and which differs from the one specified in schema.&quot;</div>

 ]]></content:encoded>
			<category domain="http://www.webdeveloper.com/forum/forumdisplay.php?5-XML">XML</category>
			<dc:creator>AoifeC22</dc:creator>
			<guid isPermaLink="true">http://www.webdeveloper.com/forum/showthread.php?276921-lt-Document-xmlns-quot-urn-iso-std-iso-20022-tech-xsd-pain.008.001.03-quot-gt</guid>
		</item>
		<item>
			<title>fn:contains()</title>
			<link>http://www.webdeveloper.com/forum/showthread.php?276791-fn-contains()&amp;goto=newpost</link>
			<pubDate>Wed, 24 Apr 2013 05:11:10 GMT</pubDate>
			<description><![CDATA[i need to test whether got value contains backslash character or not...like.....small example 
<c:choose> 
<c:when test="${fn:contains(xxxItem.attrvalue,'test')}"> 
<cut value="${filterItem.attribute}" /> 
</c:when> 
 
whwtever got value using xxxItem.attrvalue,if it contains "test" it will execute...]]></description>
			<content:encoded><![CDATA[<div>i need to test whether got value contains backslash character or not...like.....small example<br />
&lt;c:choose&gt;<br />
&lt;c:when test=&quot;${fn:contains(xxxItem.attrvalue,'test')}&quot;&gt;<br />
&lt;cut value=&quot;${filterItem.attribute}&quot; /&gt;<br />
&lt;/c:when&gt;<br />
<br />
whwtever got value using xxxItem.attrvalue,if it contains &quot;test&quot; it will execute the condition...!so insteadof test string i need to pass \ backslash character.....i'm unable to check whteher \ contains or not....but in java....String sample=&quot;\\&quot;; it will print \ character....?! :confused:</div>

 ]]></content:encoded>
			<category domain="http://www.webdeveloper.com/forum/forumdisplay.php?5-XML">XML</category>
			<dc:creator>shtalari</dc:creator>
			<guid isPermaLink="true">http://www.webdeveloper.com/forum/showthread.php?276791-fn-contains()</guid>
		</item>
	</channel>
</rss>
