equal
deleted
inserted
replaced
44 |
44 |
45 http://www.ietf.org/rfc/rfc3023.txt |
45 http://www.ietf.org/rfc/rfc3023.txt |
46 XML Media Types |
46 XML Media Types |
47 http://www.xml.com/pub/a/2004/07/21/dive.html |
47 http://www.xml.com/pub/a/2004/07/21/dive.html |
48 XML on the Web Has Failed |
48 XML on the Web Has Failed |
|
49 |
|
50 * Validation of xml files. |
|
51 |
|
52 http://infohost.nmt.edu/tcc/help/xml/lint.html |
|
53 xmllint: A validator for XML files |
|
54 |
|
55 ** Validating using the DOCTYPE. |
|
56 |
|
57 $ xmllint --valid --noout file.xml |
|
58 |
|
59 ** Validating against a specific DTD. |
|
60 |
|
61 $ xmllint --noout --dtdvalid URL file.xml |
|
62 |
|
63 ** Validating against a Relax NG schema. |
|
64 |
|
65 $ xmllint --noout --relaxng schema.rng file.xml |
|
66 |
|
67 If your schema is in Compact Format, you can use the trang program to convert |
|
68 it to RNG format: |
|
69 |
|
70 $ trang file.rnc file.rng |
|
71 |
|
72 ** Validating against XSchema. |
|
73 |
|
74 $ xmllint --noout --schema schema.xsd file.xml |
|
75 |