Dr. Arne Jachens

Arnes Skriptbibliothek

XML_extractElement

Wird verwendet von:

Keine Erläuterungen gefunden.

<?php
function XML_extractElement($xml,$element){
  /* STRPOS gives first occurence of substring */
  $startElement="<".$element;
  $endElement="</".$element.">";
  $elementLen=strlen($endElement);
  $endPos=strpos($xml,$endElement);
  $i=-1;
  while ($endPos){
    $save++;if($save>1e3){echo "To many elements!";exit(1);}
    $startPos=strpos($xml,$startElement);
    if ($startPos>$endPos){
      echo "<".$element.">\nXML is corrupted!";break;
    }
    $i++;
    $preString=substr($xml,0,$startPos);
    $elementsFound[$i]=substr($xml,$startPos,$endPos-$startPos+$elementLen);
    $postString=substr($xml,$endPos+$elementLen);
    $xml=$preString.$postString;
    $endPos=strpos($xml,$endElement);
  }
  $NoElements=$i+1;

  return array($elementsFound,$NoElements);
}
?>
1fraktal.php
2VereinsverwaltungKartei.php
3VereinsverwaltungKarteikarte.php
4VereinsverwaltungKonto.php
5VereinsverwaltungLastschriften.php
6VereinsverwaltungMenue.php
7whichLengthDoWeHaveInXfigFile.php
8XML_extractAttribute.php
9XML_extractElement.php
10XML_extractTag.php
11XML_findAllElements.php
12XML_readFile.php
13writeNamedData.php
14menu.php
15content.php
16cms.php
17indexCms.php
18areaOfPolygon.php
19areaOfTriangle.php
20calculateAreasOfPolygonsInXfig.php
21calculateMeanStd.php
22checkChanges.php
23closeFigures.php
24db.php
25distanceOfPoints.php
26dtaus.php
27enumerateFiles.php
28fileGrep.php
29fitData.php
30fotoalbum.php
31genAlbum.php
32genDTAUS.php
33genFotoalbum.php
34genThumbnails.php
35globals.php
36hex2dec.php
37LaTeXbrief.php
38norm.php
39pdf.php
40plotResult.php
41pointsOfPolygon.php
42polynominalFit.php
43readData.php
44readDymolaOuput.php
45readFilenames.php
46readFromStdIn.php
47readNamedData.php
48readXmlFile.php
49searchMedian.php
50sortIEindex.php
51sortIntoBins.php
52sortPDF.php
53synchronise.php
54synchroniseDirectories.php
55Vereinsverwaltung.php
56writeData.php

 

gnuplot

gnuplot is used to visualise the results - via script you can do infinite diagrams in 1 second.
Run 'test' in gnuplot to get an owerview of the available line- and symbolstyles.