Posted By:
Alan_Fong
Posted On:
Tuesday, November 23, 2004 03:49 PM
Has anyone come across this issue before or can help out, please? I have a DTD (WvSsp.dtd) that contains:
<!ELEMENT PresenceValue (PresenceSubList, Version? )> <!ATTLIST PresenceValue userID CDATA #REQUIRED> <!ELEMENT AttributeList (PresenceSubList)> <!ELEMENT PresenceSubList (#PCDATA)> <!ATTLIST PresenceSubList xmlns CDATA #REQUIRED>
It basically says that any elements declared within PresenceSubList belongs to the defined namespace, so I can potentially have an XML document that has:
T
More>>
Has anyone come across this issue before or can help out, please?
I have a DTD (WvSsp.dtd) that contains:
<!ELEMENT PresenceValue (PresenceSubList, Version? )>
<!ATTLIST PresenceValue userID CDATA #REQUIRED>
<!ELEMENT AttributeList (PresenceSubList)>
<!ELEMENT PresenceSubList (#PCDATA)>
<!ATTLIST PresenceSubList xmlns CDATA #REQUIRED>
It basically says that any elements declared within PresenceSubList belongs to the defined namespace, so I can potentially have an XML document that has:
T
T
Where the elements
,
and
are defined in a separate DTD (WvPA.dtd), as such:
<!ELEMENT PresenceSubList (OnlineStatus?)>
<!ELEMENT OnlineStatus (Qualifier?, PresenceValue?)>
<!ELEMENT Qualifier (#PCDATA)>
<!ELEMENT PresenceValue (#PCDATA)>
Currently, the XML document has header information that defines the main DTD:
<?xml version="1.0" encoding="UTF-8"?>
What would the complete XML document look like so that references to both DTDs are specified, so it can pass a validating parser?
We cant combine the DTDs because there are element declarations that use the same name, as shown above with the
element.
Any help would be greatly appreciated!
Thanks much,
<<Less