in reply to Re^3: aXML vs TT2
in thread aXML vs TT2
...It requires that I know every element name that can be found in an XML document...
Ok then, we add a new sub called something like <no_parse> which takes a path to the XML to be included in the output. The file is loaded and stored in memory and inserted after the parser has exited. That way it doesn't matter if the file to be included contains tags which match the plugins because it wont be seen by the parser. The original version has something similar to that called <ignore>, but I haven't got round to creating that functionality in the new one yet.
Oh and regarding shortend tags like <inc name="header"/> I like that, however supporting those sort of tags as well as the standard ones will require extra compute time under the current methodology. It's perfectly possible to do, but I'm not sure the gain would be worth the overhead.
That's not to say that the current methodology is the be all and end all, Corion once suggested writing a compiler for aXML which would solve that problem and further improve overall performance, however such a solution is currently over my head and given how blazing fast the current version is I just can't feel the desire to try and implement it (again).
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: aXML vs TT2
by ikegami (Patriarch) on Oct 21, 2011 at 21:13 UTC | |
by Logicus (Initiate) on Oct 21, 2011 at 23:52 UTC | |
by ikegami (Patriarch) on Oct 22, 2011 at 01:08 UTC | |
by Logicus (Initiate) on Oct 22, 2011 at 03:48 UTC | |
by ikegami (Patriarch) on Oct 22, 2011 at 04:58 UTC | |
| |
Re^5: aXML vs TT2
by anneli (Pilgrim) on Oct 22, 2011 at 02:43 UTC | |
by Logicus (Initiate) on Oct 22, 2011 at 03:05 UTC | |
by anneli (Pilgrim) on Oct 22, 2011 at 05:39 UTC | |
by Logicus (Initiate) on Oct 22, 2011 at 07:58 UTC | |
by anneli (Pilgrim) on Oct 22, 2011 at 09:16 UTC | |
|