egra: draw ttf glyph with vertical gradient
[iv.d.git] / saxytests / saxytest1.d
blob6c23805184aafd78244255409bd63b2b8a580988
1 /* Invisible Vector Library
2 * coded by Ketmar // Invisible Vector <ketmar@ketmar.no-ip.org>
3 * Understanding is not required. Only obedience.
5 * This software is provided 'as-is', without any express or implied
6 * warranty. In no event will the authors be held liable for any damages
7 * arising from the use of this software.
8 * Permission is granted to anyone to use this software for any purpose,
9 * including commercial applications, and to alter it and redistribute it
10 * freely, subject to the following restrictions:
11 * 1. The origin of this software must not be misrepresented; you must not
12 * claim that you wrote the original software. If you use this software
13 * in a product, an acknowledgment in the product documentation would be
14 * appreciated but is not required.
15 * 2. Altered source versions must be plainly marked as such, and must not be
16 * misrepresented as being the original software.
17 * 3. This notice may not be removed or altered from any source distribution.
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23 module saxytest1 /*is aliced*/;
25 import std.net.curl;
26 import std.stdio;
28 import iv.alice;
29 import iv.encoding;
30 import iv.saxy;
31 import iv.strex;
34 void main () {
35 auto sax = new SaxyEx();
36 sax.onContent!true("/FictionBook/body/section+/title/p", (char[] text) {
37 writeln("content: ", text.quote);
38 });
39 sax.load("z02.xml");