[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Rad XML in octave
From: |
Tatsuro MATSUOKA |
Subject: |
Re: Rad XML in octave |
Date: |
Wed, 22 Mar 2017 10:52:39 +0900 (JST) |
> And execute Demonstration 1 in
> https://octave.sourceforge.io/io/function/xmlread.htm,
> But I change graphics_toolkit fltk to qt because fltk causes error.
> ## Create an svg file, which is nothing but an xml tree tk = graphics_toolkit
> (); graphics_toolkit ("qt"); % change from fltk to qt hf = figure ();
> sombrero (); fname = [tempname(), ".svg"]; print (fname); close (hf)
> graphics_toolkit (tk); ## Read the svg file and check the root node is named
> "svg" dom = xmlread (fname); if (dom.hasChildNodes ()) root_node =
> dom.getChildNodes ().item (0); printf ("The name of the root node is
> \"%s\"\n", ... char (root_node.getNodeName ())) endif
Sorry I copied and pasted from web site to my yahoo mail but line feed seems to
be erased.
For octave-4.2.1, fltk does not work for me.
I used gt graphics_toolkit instead.
> I could see
> The name of the root node is "svg"
>
>
> as shown in Demonstration 1 on the we page.
>
> Tatsuro
>