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

Senior Lecturer at the Multimedia Design and Communication Programme at Aarhus Business College. I teach code and UX. Linux evangelist and WordPress expert. View more posts