' . $thisnonattrib . '
', $ohtml);
$thisattrib="";
$thisnonattrib="";
//$lastkey=$tlist[0];
break;
case strtoupper($tlist[$j]): //"NOTE":
if (1 == 1) {
$xone=strpos(strtolower($data), "<" . strtolower($tlist[$j]) . " ");
$one=strpos(strtolower($data), "<" . strtolower($tlist[$j]) . ">");
$two=strpos(strtolower($data), "" . strtolower($tlist[$j]) . ">");
if ($one !== false && $two !== false) {
$one++;
$two--;
if (strpos(substr($data, $one, ($two - $one)), "<") !== false && ($thisattrib != "" || $thisnonattrib != "")) {
$ohtml=str_replace('', ' ' . $firstset . ' ' . $thisnonattrib . '
', $ohtml);
$thisattrib="";
$thisnonattrib="";
//$lastkey=$tlist[$j];
}
} else if ($xone !== false && $two !== false) {
$xone++;
$two--;
if (strpos(substr($data, $xone, ($two - $xone)), "<") !== false && ($thisattrib != "" || $thisnonattrib != "")) {
$ohtml=str_replace('', ' ' . $firstset . ' ' . $thisnonattrib . '
', $ohtml);
$thisattrib="";
$thisnonattrib="";
//$lastkey=$tlist[$j];
}
}
}
if (1 == 2) $ohtml.="';
$eattribbit='$attribbit = ' . "'';";
$xeattribbit='$attribbit .= ' . "'';";
$attribbit="";
$enonattribbit='$nonattribbit = ' . "'';";
$xenonattribbit='$nonattribbit .= ' . "'';";
$nonattribbit="";
$trythese=false;
$firstone="";
$firstset="";
$typeslist=",";
$attribslist=",";
$xbits=explode(" 1) {
$prexbits=explode("?>", $xbits[1]);
$ixml=str_replace("", "", $ixml);
}
$parts=explode("<", $ixml);
for ($i=1; $i
", " ", $parts[$i]));
if (strpos($typeslist, "," . $subpart[0] . ",") === false) {
if ($trythese) {
if (strpos($ixml, "<" . $subpart[0] . ">") !== false && strpos($ixml, "" . $subpart[0] . ">") !== false) {
$one=strpos($ixml, "<" . $subpart[0] . ">");
$one++;
$two=strpos($ixml, "" . $subpart[0] . ">");
$two--;
if (strpos(substr($ixml, $one, ($two - $one)), "<") !== false) {
$firstset .= "/" . $subpart[0];
$nextbit=str_replace('">', $subpart[0] . '">', $nextbit);
} else {
$trythese=false;
}
} else if (strpos($ixml, "<" . $subpart[0] . " ") !== false && strpos($ixml, "" . $subpart[0] . ">") !== false) {
$one=strpos($ixml, "<" . $subpart[0] . " ");
$one++;
$two=strpos($ixml, "" . $subpart[0] . ">");
$two--;
if (strpos(substr($ixml, $one, ($two - $one)), "<") !== false) {
$firstset .= "/" . $subpart[0];
$nextbit=str_replace('">', $subpart[0] . '">', $nextbit);
} else {
$trythese=false;
}
}
}
if ($firstone == "") {
$firstone=$subpart[0];
$firstset=$firstone;
$trythese=true;
} else if ($trythese == false && strpos($subpart[0], "/") === false) {
//if (strpos($enonattribbit, $subpart[0]) === false) $enonattribbit=str_replace(" = ", " = ' data-" . $subpart[0] . '="' . "'" . ' . $concept->' . $subpart[0] . " . " . "'" . '"' . "'" . ' . ', $enonattribbit);
if (strpos($enonattribbit, $subpart[0]) === false) $enonattribbit=str_replace(";", " . ' data-" . $subpart[0] . '="' . "'" . ' . $concept->' . $subpart[0] . " . " . "'" . '"' . "'" . ' . ' . "'';", $enonattribbit);
if (strpos($eattribbit, $subpart[0]) === false && strpos($attribbit, $subpart[0]) === false) {
if ($attribbit == "") {
$eattribbit='$attribbit = ' . "'>';";
$xeattribbit='$attribbit .= ' . "'>';";
$attribbit=">";
}
$eattribbit=str_replace("= ", "= ' data-" . $subpart[0] . '="' . "'" . ' . $concept->' . $subpart[0] . " . " . "'" . '"' . "'" . ' . ', $eattribbit);
}
//if (strpos($xenonattribbit, $subpart[0]) === false) $xenonattribbit=str_replace(";", " . ' data-" . $subpart[0] . '="' . "'" . ' . $concept->' . $subpart[0] . " . " . "'" . '"' . "'" . ' . ' . "'';", $xenonattribbit);
}
$typeslist .= $subpart[0] . ",";
}
$ok=true;
for ($j=0; $jgetAttribute(' . "'" . $pep[0] . "')" . " . " . "'" . '"' . "'" . ' . ' . "'';", $xenonattribbit);
} else {
if ($attribbit == "") {
$eattribbit='$attribbit = ' . "'>';";
$xeattribbit='$attribbit .= ' . "'>';";
$attribbit=">";
}
$eattribbit=str_replace("= ", "= '" . $pep[0] . '="' . "'" . ' . $concept[' . "'" . $pep[0] . "']" . " . " . "'" . '"' . "'" . ' . ', $eattribbit);
$xeattribbit=str_replace("= ", "= '" . $pep[0] . '="' . "'" . ' . $concept->getAttribute(' . "'" . $pep[0] . "')" . " . " . "'" . '"' . "'" . ' . ', $xeattribbit);
if (strpos($nextbit, '"' . $subpart[0] . '"') !== false) $nextbit=str_replace('">', '" ', $nextbit);
}
}
}
}
if (strpos($presubparts[$j], ">") !== false) {
$ok=false;
}
}
}
}
if (!$just) { // SimpleXML method
file_put_contents($firstone . ".xml", str_replace("<", "<", str_replace(">", ">", $ixml)));
$xml=simplexml_load_file($firstone . ".xml") or die("Error: Cannot create object");
$outhtml='';
foreach($xml->children() as $concept) {
eval($eattribbit);
eval($enonattribbit);
$outhtml=str_replace(' ', ' ' . $firstset . ' ' . $nextbit . $attribbit . $nonattribbit . ' ', $outhtml);
}
$outhtml=str_replace("DIV", "div", $outhtml);
} else {
$outhtml=' data-to="' . $note->to . '" data-from="' . $note->from . '" data-heading="' . $note->heading . '" data-body="' . $note->body . '"
', $outhtml);
}
$outhtml=str_replace("DIV", "div", $outhtml);
} else if (strpos(strtolower($thismode), "expat") !== false) {
$outhtml=do_expat($inxml);
} else if (strpos(strtolower($thismode), "dom") !== false) {
$outhtml=do_dom($inxml);
}
}
$thehtml="