speaker Multimusen

Phpscaffold laver ikke “well formed” XML

February 16th, 2013 by

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.