Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
pml-haters [2007/05/28 16:59] pajas |
pml-haters [2007/06/05 06:35] (current) bojar jen formatovani |
||
---|---|---|---|
Line 14: | Line 14: | ||
Please strongly prefer SAX-based tools to DOM-based tools. | Please strongly prefer SAX-based tools to DOM-based tools. | ||
+ | |||
===== Validation ===== | ===== Validation ===== | ||
- | Given a PML file, how do I validate it? I always forget... Please provide me with the one-liner to do the validation. | + | Given a PML file, how do I validate it? |
For most purposes, a libxml2 (DOM) based validator | For most purposes, a libxml2 (DOM) based validator | ||
- | < | + | < |
+ | |||
+ | For huge files, use< | ||
Both scripts have decent user documentation. See inside the scripts if interested in the implementation details. | Both scripts have decent user documentation. See inside the scripts if interested in the implementation details. | ||
Line 102: | Line 105: | ||
How do I create a suite of files with just the problematic sentence 345, i.e. files test-w.xml, test-m.xml, test-a.xml and test-t.xml, all properly referenced? A XML-Reader based script by Petr Pajas demonstrates that: | How do I create a suite of files with just the problematic sentence 345, i.e. files test-w.xml, test-m.xml, test-a.xml and test-t.xml, all properly referenced? A XML-Reader based script by Petr Pajas demonstrates that: | ||
- | < | + | < |
</ | </ | ||