Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
18
Task/XML-Output/Vedit-macro-language/xml-output.vedit
Normal file
18
Task/XML-Output/Vedit-macro-language/xml-output.vedit
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
// Replace special characters with entities:
|
||||
Replace("&", "&", BEGIN+ALL+NOERR) // this must be the first replace!
|
||||
Replace("<", "<", BEGIN+ALL+NOERR)
|
||||
Replace(">", ">", BEGIN+ALL+NOERR)
|
||||
Replace("'", "'", BEGIN+ALL+NOERR)
|
||||
Replace('"', """, BEGIN+ALL+NOERR)
|
||||
|
||||
// Insert XML marking
|
||||
BOF
|
||||
IT("<CharacterRemarks>") IN
|
||||
Repeat(ALL) {
|
||||
Search("^.", REGEXP+ERRBREAK)
|
||||
IT(' <Character name="')
|
||||
Replace('|T', '">')
|
||||
EOL IT('</Character>')
|
||||
}
|
||||
EOF
|
||||
IT("</CharacterRemarks>") IN
|
||||
Loading…
Add table
Add a link
Reference in a new issue