|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XML Problem
"Sebastian A." <sebi@x...> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








