Attachment 'xml.py'
Download 1 # -*- coding: iso-8859-1 -*-
2 """
3 MoinMoin - XML Source Parser
4
5 @copyright: 2005 by Davin Dubeau <davin.dubeau@gmail.com>
6 @license: GNU GPL, see COPYING for details.
7
8 """
9
10 from MoinMoin.util.ParserBase import ParserBase
11
12 Dependencies = []
13
14 class Parser(ParserBase):
15
16 parsername = "ColorizedXML"
17 extensions = ['.xml']
18 Dependencies = []
19
20 def setupRules(self):
21 ParserBase.setupRules(self)
22
23 self.addRulePair("Comment","<!--","-->")
24 self.addRule("Number",r"[0-9]+")
25 self.addRule("SPChar","[=<>/\"]")
26 self.addRule("ResWord","(?!<)[\w\s]*(?![\w=\"])?(?![\w\s\.<])+(?!>)*")
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.