Optional Element type DTD

onet kaljupri

New Member
i have an XML doc like this:\[code\]<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE school SYSTEM ""> <school> <data> <id> <uid>1</uid> </id> <information> <name>Michael</name> <surename>Julius</surename> </information> <note> <test>hans</test> </note> </data> </school> \[/code\]and a DTD File\[code\]<!ELEMENT school (data)> <!ELEMENT data (id,information,note)> <!ELEMENT id (uid)> <!ELEMENT uid (#PCDATA)><!ELEMENT information (name,surename?)> <!ELEMENT name (#PCDATA)> <!ELEMENT surename (#PCDATA)> <!ELEMENT note (#PCDATA)> <--- unknown element type\[/code\]I want to define the \[code\]<note>\[/code\] element with optional element types like\[code\]<note> <test2>test2</test2></note>\[/code\]or\[code\]<note> <unknown name></unknown name></note>\[/code\]any help?thankz
 
Back
Top