Description:
When xml Doctype node is present in a xml template in the ballerina code, currently the compiler gives a parser error. Is this a valid scenario to have DocType node in an xml template. If it is a valid scenario, how are we going to model it in the implementation
Example code,
public function main() {
xml _ = xml `<!DOCTYPE note [
<!ELEMENT note (to,from,heading,body)>
<!ELEMENT to (#PCDATA)>
<!ELEMENT from (#PCDATA)>
<!ELEMENT heading (#PCDATA)>
<!ELEMENT body (#PCDATA)>
]>
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend</body>
</note>`;
}
Description: When xml
Doctype
node is present in a xml template in the ballerina code, currently the compiler gives a parser error. Is this a valid scenario to have DocType node in an xml template. If it is a valid scenario, how are we going to model it in the implementationExample code,