
import sys
import os

name = sys.argv[1]

status = sys.stdin.readline()
status = status.rstrip(os.linesep)

print("<%s>" % name)
print("\t<status=\"%s\" />" % status)

if status != "SKIP":
  print("\t<outcome>")
  for line in sys.stdin:
      # Escaping, ... !
      print(line.rstrip(os.linesep))
  print("\t</outcome>")

print("</%s>" % name)


import sys
import os

name = sys.argv[1]

status = sys.stdin.readline()
status = status.rstrip(os.linesep)

print("<%s status=\"%s\">" % (name, status))

print("\t<outcome>")
for line in sys.stdin:
    # Escaping, ... !
    print(line.rstrip(os.linesep))
print("\t</outcome>")

print("</%s>" % name)

Fix the XML format produced
Fix the XML format produced

  
  import sys
  import os
  
  name = sys.argv[1]
  
  status = sys.stdin.readline()
  status = status.rstrip(os.linesep)
  
- print("<%s>" % name)
- print("\t<status=\"%s\" />" % status)
+ print("<%s status=\"%s\">" % (name, status))
  
- if status != "SKIP":
-   print("\t<outcome>")
+ print("\t<outcome>")
-   for line in sys.stdin:
+ for line in sys.stdin:
-       # Escaping, ... !
+     # Escaping, ... !
-       print(line.rstrip(os.linesep))
+     print(line.rstrip(os.linesep))
-   print("\t</outcome>")
+ print("\t</outcome>")
  
  print("</%s>" % name)
  
Fix the XML format produced
## Code Before:

import sys
import os

name = sys.argv[1]

status = sys.stdin.readline()
status = status.rstrip(os.linesep)

print("<%s>" % name)
print("\t<status=\"%s\" />" % status)

if status != "SKIP":
  print("\t<outcome>")
  for line in sys.stdin:
      # Escaping, ... !
      print(line.rstrip(os.linesep))
  print("\t</outcome>")

print("</%s>" % name)

## Instruction:
Fix the XML format produced
## Code After:

import sys
import os

name = sys.argv[1]

status = sys.stdin.readline()
status = status.rstrip(os.linesep)

print("<%s status=\"%s\">" % (name, status))

print("\t<outcome>")
for line in sys.stdin:
    # Escaping, ... !
    print(line.rstrip(os.linesep))
print("\t</outcome>")

print("</%s>" % name)
