Raja,
In the
foo.dtd file shown below, the 0 to many occurrence operator _*_ is placed after
"bar" indicating its occurrence.
foo.xml
---------------
<?xml version="1.0"?>
<!DOCTYPE foo SYSTEM "foo.dtd">
<foo>
<bar>Some text</bar>
<bar>Some more text</bar>
</foo>
foo.dtd
--------------
<!ELEMENT foo (bar)*>
<!ELEMENT bar (#PCDATA)>
Prashanth Rao Instructor prao@vitria.com -
773-255-8743 Vitria - www.vitria.com
Hi,
I want to have an Array of #PCDATA
(ie An Element of type String Array). In the DTD, i have declared it as
<!ELEMENT name (#PCDATA)*>. But the parser throws error when
i declare it like this.
Also i am not very clear
that, How corresponding XML should look loke?. It would be more helpful,
if you can tell how the DTD and XMl should be?.
Regards
Raja
|