Hi,
I want to define that of a group of elements at least one is required. my current method was working in PHP 4 but now I've got a problem with PHP 5 DOMDocument::va lidate().
DTD snippet
(<datei> may have up to 4 child elements of what either <file> or <xsl> must be present)
in PHP 5 I get the warning:
is there any way I can define this DTD part differently?
thanks
PS: file codes see http://bytes.com/answers/xml/857093-...validating-dtd
I want to define that of a group of elements at least one is required. my current method was working in PHP 4 but now I've got a problem with PHP 5 DOMDocument::va lidate().
DTD snippet
Code:
<!ELEMENT datei (file | (file?, xsl, xml?, par?))>
in PHP 5 I get the warning:
Code:
Warning: DOMDocument::load() [domdocument.load]: Content model of datei is not determinist: (file | (file? , xsl , xml? , par?)) in /Users/Alexander/Sites/kbl5/system/xml/main.struktur.xml, line: 18 in /Users/Alexander/Sites/kbl5/test.php on line 3
thanks
PS: file codes see http://bytes.com/answers/xml/857093-...validating-dtd
Comment