Commit 1a6ff399 authored by ZZZ[GONE] Lequeux Olivier's avatar ZZZ[GONE] Lequeux Olivier
Browse files

as code2

parent 4a62de0e
......@@ -14,7 +14,8 @@ Some basics hydrators are provided, but you will easily create your own.
### Hydrate with SimpleXMLHydrator
``` $lquery = new \Lavoisier\Query('localhost','example');
```
$lquery = new \Lavoisier\Query('localhost','example');
$lquery->setPath("/data/products[@month='January']");
$lquery->setHydrator(new \Lavoisier\Hydrators\SimpleXMLHydrator());
$result = $lquery->execute();
......@@ -35,4 +36,4 @@ object(SimpleXMLElement)#2 (1) {
["average"]=>
string(6) "5394.5"
}
}```
\ No newline at end of file
}```
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment