Команды SFK


    1        2        3        4        5        6        7        8        9        10    

Раздел 9. Diverse - Разное
ascii | ascii -dos | calc | cmd | data | env | fromclip | jsonform | license | number | prompt | random | ruler | spell | status | toclip | update | version | video | view | xmlform |

Help:   Рус   |   Eng        Refer:   Рус   |   Eng  

Команда: xmlform
sfk ... +xmlform[3]
sfk xmlform in.xml

   simple XML text reformatter to allow easy reading
   and searching of XML data.

   this command is experimental and may not be suitable
   to reformat XML data intended for further processing,
   as lines longer than 3900 characters may be hard wrapped!
   furthermore output of multi line tags may contain
   wrong indentation in some cases.

   options
     -i         read text from stdin.
     -indent=3  or typing "sfk xmlform3" selects an
                indent of 3 instead of the default 2.

   aliases
     sfk xf        same as xmlform

   see also
     sfk jsonform  reformat JSON data

   web reference
      http://stahlworks.com/sfk-xmlform

   examples
     sfk xmlform in.xml
       read the file in.xml and print it reformatted

     sfk xmlform in.xml +view
       display in.xml reformatted in Depeche View
       to allow easy browsing and searching

     sfk filter in.xml +xmlform
       reformat output of a previous sfk command

     type in.xml | sfk xmlform -i
       reformat output of a non-sfk command

     sfk xex in.xml "x**x[part2]x"
      +xmlform +view
       extract a web_info multi line text block,
       reformat and display it in Depeche View. [22]
       this uses 'x' as a separator character as '/'
       and '_' are already part of the search text.

     sfk web http://myserver/getxml.php +xf
       call a web URL that sends an xml reply
       and reformat output for easy reading.