OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] XML Problem

[ Lists Home | Date Index | Thread Index ]

"Sebastian A." <sebi@xinium.com> writes:

> 	function charcterPro($parser, $data)
> 	{
> 		global $TAG;
> 
> 		switch ($currentTag)
> 	{
> 	case "TAG1":
> 	$TAG  =  $data;
> 	break;
> 
> 	default:
> 	break;
> 	}
> }

Where should $currentTag come from? It's not passed to charcterPro and
it's not global. 

So I guess it's never "TAG1" etc. Try turning on all warnings for
developing, dereferencing uninitialized variables will then be
reported by PHP.

hth
Henrik





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS