Test results for Solaris x86 |
Test for correct functionality of the examples used in the xmlfy documentation.
Pass
cat _INPUT_DATA_ ¦ xmlfy -S schema.dtd
UID PID PPID C STIME TTY TIME CMD
root 683 680 0 11:41:26 pts/4 0:00 bash
root 763 683 0 12:00:54 pts/4 0:00 ps -f
<!ELEMENT ps (heading), (process*)> <!ELEMENT heading (uid, pid, ppid, c, stime, tty, time, command)> <!ELEMENT process (uid, pid, ppid, c, stime, tty, time, command, arg*)> <!ELEMENT uid (#PCDATA)> <!ELEMENT pid (#PCDATA)> <!ELEMENT ppid (#PCDATA)> <!ELEMENT c (#PCDATA)> <!ELEMENT stime (#PCDATA)> <!ELEMENT tty (#PCDATA)> <!ELEMENT time (#PCDATA)> <!ELEMENT command (#PCDATA)> <!ELEMENT arg (#PCDATA)>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ps SYSTEM "schema.dtd">
<ps>
<heading>
<uid>UID</uid>
<pid>PID</pid>
<ppid>PPID</ppid>
<c>C</c>
<stime>STIME</stime>
<tty>TTY</tty>
<time>TIME</time>
<command>CMD</command>
</heading>
<process>
<uid>root</uid>
<pid>683</pid>
<ppid>680</ppid>
<c>0</c>
<stime>11:41:26</stime>
<tty>pts/4</tty>
<time>0:00</time>
<command>bash</command>
</process>
<process>
<uid>root</uid>
<pid>763</pid>
<ppid>683</ppid>
<c>0</c>
<stime>12:00:54</stime>
<tty>pts/4</tty>
<time>0:00</time>
<command>ps</command>
<arg>-f</arg>
</process>
</ps>