Phpscaffold laver ikke “well formed” XML

Phpscaffold producerer kun skitsen til en *ML. Koden er ikke “well formed”:

<p><b>Id:</b><br /><input type='text' name='Id'/>

Hvis koden skal validere bør dem se sådan ud:

<p><b>Id:</b><br /><input type='text' name='Id'/> </p>

W3Schools defineres “well formed” xml sådan:

Well Formed XML Documents

A “Well Formed” XML document has correct XML syntax.

The syntax rules were described in the previous chapters:

  • XML documents must have a root element
  • XML elements must have a closing tag
  • XML tags are case sensitive
  • XML elements must be properly nested
  • XML attribute values must be quoted

Output fra phpscaffold skal redigeres, hvis koden skal validere.

Published by

Per Thykjaer Jensen

- Code is the heart of all multimedia productions. Code can animate your creative visions.
Per Thykjaer Jensen teaches multimedia programming at Aarhus Buisiness Academy. He is MA it, interaction design and multimedia, MA literature history and BA art history.