Hi,
I've a standard XML parser written in C++. But this parser doesn't take care of escape characters like &,<,>,', etc.
I have a DTD which I want to modify to take care of the escape characters. Can someone help me?
My DTD is as follows
<!ELEMENT media (objectURI|type|size|name|NotifyURI)*>
<!ELEMENT NotifyURI (#PCDATA)>
<!ELEMENT size (#PCDATA)>
<!ELEMENT type (#PCDATA)>
<!ELEMENT name (#PCDATA)>
The XML document that I'm parsing is as follows
<media>
<name>ABC</name>
<type>audio/mp3</type>
<size>12345</size>
<NotifyURI><description>DESC</description>
</media>
My parser does not escape "&" within <NotifyURI> and it no londer parses the document.
Can someone suggest me what changes should I make to my DTD so that my parser recognizes the URI as is without treating "&" as escape charcter?
Thanks,
VW
I've a standard XML parser written in C++. But this parser doesn't take care of escape characters like &,<,>,', etc.
I have a DTD which I want to modify to take care of the escape characters. Can someone help me?
My DTD is as follows
<!ELEMENT media (objectURI|type|size|name|NotifyURI)*>
<!ELEMENT NotifyURI (#PCDATA)>
<!ELEMENT size (#PCDATA)>
<!ELEMENT type (#PCDATA)>
<!ELEMENT name (#PCDATA)>
The XML document that I'm parsing is as follows
<media>
<name>ABC</name>
<type>audio/mp3</type>
<size>12345</size>
<NotifyURI><description>DESC</description>
</media>
My parser does not escape "&" within <NotifyURI> and it no londer parses the document.
Can someone suggest me what changes should I make to my DTD so that my parser recognizes the URI as is without treating "&" as escape charcter?
Thanks,
VW