xpath("//item[@showcase='yes']"); #$xpresult = $sxml->xpath( "//item[@showcase='yes']"); #$xpresult = $sxml->xpath("//item/code[text()='$key']"); #if (!$xpresult) { # include("badcat.php"); #} #$new = $node->get_attribute('new'); //$xpresult = $sxml->xpath( "//item/code[text()='$key']/"); //$itemmain = $xpresult->nodeset[0]->get_content(); $sresult = $sxml->xpath( "//item/code[text()='$key']/.."); $showcase =$sresult[0]['showcase']; $sale=$sresult[0]->sale; /* $xpresult = $sxml->xpath( "//item/code[text()='$key']"); $itemmain = $xpresult->nodeset[0]; $showcase = $itemmain->get_attribute('showcase'); $kk= $itemmain->get_attribute('key'); */ $xpresult = $sxml->xpath( "//item/code[text()='$key']"); #$xpresult = $sxml->xpath( "//item[@key='$key']/name"); $itemtitle = $xpresult[0]->name; $itemcode = $xpresult[0]->code; $itemprice = $xpresult[0]->price; $itemdesc = $xpresult[0]->description; $itemtitle = str_replace("Marie Antoinette Number", "N°",$itemtitle); #$xpresult = $sxml->xpath( "//item/code[text()='$key']/../code"); #$xpresult = $sxml->xpath( "//item[@key='$key']/code"); #$itemcode = $xpresult->nodeset[0]->get_content(); #$xpresult = $sxml->xpath( "//item/code[text()='$key']/../price"); #$itemprice = $xpresult->nodeset[0]->get_content(); #$xpresult = $sxml->xpath( "//item/code[text()='$key']/../description"); #$xpresult = $sxml->xpath( "//item[@key='$key']/description"); #$itemdesc = $xpresult->nodeset[0]->get_content(); $xcat = $xpresult[0]->xpath("parent::*"); $cat = $xcat[0]; $xcat2 = $cat->xpath("parent::*"); $cat2 = $xcat2[0]; $xcat3 = $cat2->xpath("parent::*"); $cat3 = $xcat3[0]; #$cat = $xpresult->nodeset[0]->parent(); //echo $cat2->getAttribute('key'); #$cat2 = $cat->parent_node(); #$cat3 = $cat2->parent_node(); //print_r($cat2->getAttribute('key')); $catname = $cat3['name']; $xpresult = $sxml->xpath( "//category[@name='$catname']/title"); $cattitle = $xpresult[0]; $xpresult = $sxml->xpath( "//item/code[text()='$key']/.."); $item = $xpresult[0]; if($xpresult[0]) { $exp = $item->exp; $pic2 = $item->pic2; $pic3 = $item->pic3; $itemdesc = $item->description; } // catname is the code of the parent category // cattitle is what we display... $xpresult = $sxml->xpath( "//item/code[text()='$key']/../pic2"); if(count($xpresult)>0) { $pic2 = $xpresult[0]; } $xpresult = $sxml->xpath( "//item/code[text()='$key']/../pic3"); if($xpresult) { if(count($xpresult)>0) { $pic3 = $xpresult[0]; } } if($showcase!='yes') { $sale=''; } ?>

Price: $0.00

This item is currently only available at shows

This item is temporarily unavailable

Expected in stock