Ignore tags in an attribute
Hi!
How can I ignore XML tags in an attribute in an XML file? For example, if I have a XML file like this:
Code:
<sample>
<sampletag id="my id" description="description cannot contain tags like <tag>" />
</sample>
When I access the presented XML file from my application, an error is being raised, because of the enclosed tag in the description attribute. I tried using ![CDATA[ but seems like it is not working for attributes. How can I accomplish the task?
Thank you!
Re: Ignore tags in an attribute
Smple...Dont heve invalid XML :eek:
Code:
<sample>
<sampletag id="my id" description="description cannot contain tags like <tag>" />
</sample>
Re: Ignore tags in an attribute
Thank you! That worked perfectly.