Test results for Win32 Console |
Test for correct functionality of the examples used in the xmlfy documentation.
Pass
cat _INPUT_DATA_ ¦ xmlfy -S schema.dtd
PING rh4as.a.com (127.0.0.1) 56(84) bytes of data. 64 bytes from rh4as.a.com (127.0.0.1): icmp_seq=0 ttl=64 time=0.151 ms 64 bytes from rh4as.a.com (127.0.0.1): icmp_seq=1 ttl=64 time=0.039 ms 64 bytes from rh4as.a.com (127.0.0.1): icmp_seq=2 ttl=64 time=0.044 ms 64 bytes from rh4as.a.com (127.0.0.1): icmp_seq=3 ttl=64 time=0.037 ms --- rh4as.a.com ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 2999ms rtt min/avg/max/mdev = 0.037/0.067/0.151/0.049 ms, pipe 2
<!ELEMENT netstat (info), (ping+), (summary_title), (summary_packets), (summary_times)> <!ELEMENT info (p, host, ip, size, size_unit, p*)> <!ELEMENT ping (size, size_unit, p, host, ip, seq, ttl, time, time_unit)> <!ELEMENT summary_title (p, host, p+)> <!ELEMENT summary_packets (transmitted, p, p, received, p, loss, p+, time)> <!ELEMENT summary_times (type, titles, p, values, p+)> <!ELEMENT p (#PCDATA)> <!ELEMENT host (#PCDATA)> <!ELEMENT ip (#PCDATA)> <!ELEMENT size (#PCDATA)> <!ELEMENT size_unit (#PCDATA)> <!ELEMENT seq (#PCDATA)> <!ELEMENT ttl (#PCDATA)> <!ELEMENT time (#PCDATA)> <!ELEMENT time_unit (#PCDATA)> <!ELEMENT transmitted (#PCDATA)> <!ELEMENT received (#PCDATA)> <!ELEMENT loss (#PCDATA)> <!ELEMENT type (#PCDATA)> <!ELEMENT titles (#PCDATA)> <!ELEMENT values (#PCDATA)>
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE netstat SYSTEM "schema.dtd"> <netstat> <info> <p>PING</p> <host>rh4as.a.com</host> <ip>(127.0.0.1)</ip> <size>56(84)</size> <size_unit>bytes</size_unit> <p>of</p> <p>data.</p> </info> <ping> <size>64</size> <size_unit>bytes</size_unit> <p>from</p> <host>rh4as.a.com</host> <ip>(127.0.0.1):</ip> <seq>icmp_seq=0</seq> <ttl>ttl=64</ttl> <time>time=0.151</time> <time_unit>ms</time_unit> </ping> <ping> <size>64</size> <size_unit>bytes</size_unit> <p>from</p> <host>rh4as.a.com</host> <ip>(127.0.0.1):</ip> <seq>icmp_seq=1</seq> <ttl>ttl=64</ttl> <time>time=0.039</time> <time_unit>ms</time_unit> </ping> <ping> <size>64</size> <size_unit>bytes</size_unit> <p>from</p> <host>rh4as.a.com</host> <ip>(127.0.0.1):</ip> <seq>icmp_seq=2</seq> <ttl>ttl=64</ttl> <time>time=0.044</time> <time_unit>ms</time_unit> </ping> <ping> <size>64</size> <size_unit>bytes</size_unit> <p>from</p> <host>rh4as.a.com</host> <ip>(127.0.0.1):</ip> <seq>icmp_seq=3</seq> <ttl>ttl=64</ttl> <time>time=0.037</time> <time_unit>ms</time_unit> </ping> <summary_title> <p>---</p> <host>rh4as.a.com</host> <p>ping</p> <p>statistics</p> <p>---</p> </summary_title> <summary_packets> <transmitted>4</transmitted> <p>packets</p> <p>transmitted,</p> <received>4</received> <p>received,</p> <loss>0%</loss> <p>packet</p> <p>loss,</p> <p>time</p> <time>2999ms</time> </summary_packets> <summary_times> <type>rtt</type> <titles>min/avg/max/mdev</titles> <p>=</p> <values>0.037/0.067/0.151/0.049</values> <p>ms,</p> <p>pipe</p> <p>2</p> </summary_times> </netstat>