~tomdroid-dev/tomdroid/shortcuts

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
XML schema for Tomboy notes README
==================================

Copyright 2008, 2011 Olivier Bilodeau <olivier@bottomlesspit.org>
Created as part of Tomdroid, http://launchpad.net/tomdroid
Under LPGL 2.1 or later

WHAT
====

This folder holds an attempt at creating an XML schema for Tomboy. This 
validator currently targets Tomboy XML notes format version 0.3.

The original schema is the RELAX-NG Compact (.rnc) form and converted to 
RELAX-NG XML using http://www.thaiopensource.com/relaxng/trang.html.

HOW TO TEST
===========

- (Optional) Convert to RELAX-NG XML using:
Not required unless you made changes to the RELAX-NG Compact format (.rnc)
If you are using the java version: 
$ java -jar trang.jar xml-schema/tomboy-notes-0.3.rnc xml-schema/tomboy-notes-0.3.rng
If you have trang installed:
$ trang xml-schema/tomboy-notes-0.3.rnc xml-schema/tomboy-notes-0.3.rng

- Simple test case
$ xmllint xml-schema/simple-testcase-v.0.3.note --relaxng xml-schema/tomboy-notes-0.3.rng --noout

- Complete test case
$ xmllint xml-schema/complete-testcase/*.note --relaxng xml-schema/tomboy-notes-0.3.rng --noout

- Against regression test notes
$ xmllint xml-schema/complete-testcase/bug*/*.note --relaxng xml-schema/tomboy-notes-0.3.rng --noout

- Against your own notes
Don't worry it cannot harm your notes!
$ xmllint ~/.local/share/tomboy/*.note --relaxng xml-schema/tomboy-notes-0.3.rng --noout