Login +

Documentation

The class SLS_XMLToolbox

Since SillySmart1.0

Introduction

Tool SLS_XMLToolbox - XML Treatment

Synopsis

class SLS_XMLToolbox extends extends {
  • public addFullTag ( string $tag, string $content, [ bool $cdata ] , [ array $attributes ] );
  • public addValue ( string $value, [ bool $cdata ] );
  • public appendXML ( string $tag, string $content );
  • public appendXMLNode ( string $xPathTag, string $content, [ int $nb ] , [ string $insertMode ] );
  • public int countChilds ( string $xpath );
  • public int countTag ( string $tag );
  • public string deleteContentTag ( string $tag, [ string $xml ] );
  • public bool deleteTagAttribute ( string $xpath, string $attributeName );
  • public string deleteTags ( string $xPathTag );
  • public endTag ( string $tag );
  • public array getChilds ( string $xpath, [ bool $justNames ] );
  • public string getNode ( string $xpath );
  • public int getParentTagIndex ( string $child, int $index );
  • public string getParentTagName ( string $child, int $index );
  • public mixed getTag ( string $xpath );
  • public array getTags ( string $path );
  • public array getTagsAssoc ( string $path );
  • public array getTagsAttribute ( string $path, string $attributeName );
  • public array getTagsAttributes ( string $path, array $attributeNames );
  • public string getTagsByAttribute ( string $path, string $attributeName, [ string $attributeValue ] );
  • public string getTagsByAttributes ( string $path, [ string $attributeName ] , [ string $attributeValue ] );
  • public string getXML ( [ string $type ] );
  • private DOMDocument loadXML ( DOMDocument $dom, string $xml );
  • public overwriteTags ( string $xpath, string $newXml );
  • public refresh ( );
  • public replace ( string $oldPart, string $newPart );
  • public mixed returnXpathQuery ( string $xpathQuery );
  • public saveXML ( string $path, [ string $xml ] );
  • public setTag ( string $xPathTag, mixed $value, [ bool $cdata ] );
  • public setTagAttributes ( string $xPathTag, array $attributeName );
  • public startTag ( string $tag, [ array $attributes ] );
  • public bool validate ( );
  • public __construct ( [ mixed $xml ] );
}

Comments

No comment on this object, be the first !

Add your comment

You must login/register to post a reply.