toralf wrote:
What are the benefits?
Interoperability and expansion I suppose. It would be slightly complex though, for every snippet you'll have to create and parse a complete RDF such as
Code:
<?xml version="1.0"?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xml:lang="en-GB">
<rdf:Description rdf:about="urn:ahk:examplescript.ahk#20070327">
<dc:title>Example</dc:title>
<dc:creator>Titan</dc:creator>
<dc:description>my gui routine</dc:description>
<dc:type>text/plain+ahk</dc:type>
<dc:relation rdf:parseType="Collection" xml:base="http://www.autohotkey.net/~Titan/">
<rdf:Description rdf:about="dl/Anchor.ahk" dc:title="Anchor" />
<rdf:Description rdf:about="dl/XPath.ahk" dc:title="XPath" />
</dc:relation>
<rdfs:Resource>
<![CDATA[
Gui, Add, Text, , label
Gui, Add, Button, gClose, Quit
Gui, Show
Return
GuiEscape:
GuiClose:
ExitApp
]]>
</rdfs:Resource>
</rdf:Description>
</rdf:RDF>
At the moment I don't think it's necessary. If you had a different idea Elevator_Hazard please post them. By the way, XMLReader/Writer have been replaced with
XPath.