xml.rst
changeset 2230 9e6ad6607a9e
parent 1912 8b81a8f0f692
equal deleted inserted replaced
2229:1a0b6597e594 2230:9e6ad6607a9e
     7    :local:
     7    :local:
     8 
     8 
     9 About XML.
     9 About XML.
    10 ==========
    10 ==========
    11 
    11 
    12  * http://xmlhack.ru
    12 * http://xmlhack.ru
    13  * http://microformats.org/wiki/namespaces-considered-harmful
    13 * http://microformats.org/wiki/namespaces-considered-harmful
    14 
    14 
    15 Converting between schema formants.
    15 Converting between schema formants.
    16 ===================================
    16 ===================================
    17 ::
    17 ::
    18 
    18 
    19   $ man trang
    19   $ man trang
    20   trang [-I rng|rnc|dtd|xml] [-O rng|rnc|dtd|xsd] $input $output
    20   trang [-I rng|rnc|dtd|xml] [-O rng|rnc|dtd|xsd] $input $output
    21 
    21 
    22 See:
    22 See:
    23 
    23 
    24   http://code.google.com/p/xsdtorngconverter/
    24 http://code.google.com/p/xsdtorngconverter/
    25                 That XSLT transformation converts a XSD schema to RelaxNG.
    25   That XSLT transformation converts a XSD schema to RelaxNG.
    26 
    26 
    27 relaxng-mode.
    27 relaxng-mode.
    28 =============
    28 =============
    29 
    29 
    30   http://www.pantor.com/download.html
    30 http://www.pantor.com/download.html
    31                 RNC Emacs Mode (home page)
    31   RNC Emacs Mode (home page)
    32   http://www.emacswiki.org/emacs/RELAX_NG
    32 http://www.emacswiki.org/emacs/RELAX_NG
    33                 Emacs wili.
    33   Emacs wili.
    34   http://www.relaxng.org/compact-tutorial-20030326.html
    34 http://www.relaxng.org/compact-tutorial-20030326.html
    35                 relaxng compact syntax tutorial
    35   relaxng compact syntax tutorial
    36 
    36 
    37 utilities for processing xml.
    37 utilities for processing xml.
    38 =============================
    38 =============================
    39 
    39 
    40 xmlstar.
    40 xmlstar.
    43 XMLStarlet is a set of command line utilities (tools) which can be used to transform,
    43 XMLStarlet is a set of command line utilities (tools) which can be used to transform,
    44 query, validate, and edit XML documents and files using simple set of shell commands in
    44 query, validate, and edit XML documents and files using simple set of shell commands in
    45 similar way it is done for plain text files using UNIX grep, sed, awk, diff, patch, join,
    45 similar way it is done for plain text files using UNIX grep, sed, awk, diff, patch, join,
    46 etc.
    46 etc.
    47 
    47 
    48   http://xmlstar.sourceforge.net/overview.php
    48 http://xmlstar.sourceforge.net/overview.php
    49                 home page
    49   home page
    50 
    50 
    51 Cygwin.
    51 Cygwin.
    52 -------
    52 -------
    53 ::
    53 ::
    54 
    54 
    64   $ xmllint --xpath $XPATH file.xml
    64   $ xmllint --xpath $XPATH file.xml
    65 
    65 
    66 Microformats.
    66 Microformats.
    67 =============
    67 =============
    68 
    68 
    69   http://microformats.org/about
    69 http://microformats.org/about
    70 
    70 
    71 XML encoding.
    71 XML encoding.
    72 =============
    72 =============
    73 
    73 
    74   http://www.ietf.org/rfc/rfc3023.txt
    74 http://www.ietf.org/rfc/rfc3023.txt
    75                 XML Media Types
    75   XML Media Types
    76   http://www.xml.com/pub/a/2004/07/21/dive.html
    76 http://www.xml.com/pub/a/2004/07/21/dive.html
    77                 XML on the Web Has Failed
    77   XML on the Web Has Failed
    78 
    78 
    79 Validation of xml files.
    79 Validation of xml files.
    80 ========================
    80 ========================
    81 ::
    81 ::
    82 
    82 
    83   $ jing schema.rng in.xml
    83   $ jing schema.rng in.xml
    84   $ xmllint --relaxng schema.rng in.xml
    84   $ xmllint --relaxng schema.rng in.xml
    85 
    85 
    86 See:
    86 See:
    87 
    87 
    88   http://infohost.nmt.edu/tcc/help/xml/lint.html
    88 http://infohost.nmt.edu/tcc/help/xml/lint.html
    89                 xmllint: A validator for XML files
    89   xmllint: A validator for XML files
    90   http://www.cogsci.ed.ac.uk/~richard/rxp.html
    90 http://www.cogsci.ed.ac.uk/~richard/rxp.html
    91                 RXP - an XML parser available under the GPL
    91   RXP - an XML parser available under the GPL
    92 
    92 
    93 Validating using the DOCTYPE.
    93 Validating using the DOCTYPE.
    94 -----------------------------
    94 -----------------------------
    95 ::
    95 ::
    96 
    96