[Home] [By Thread] [By Date] [Recent Entries]

  • From: David Carlisle <davidc@n...>
  • To: stephengreenubl@g...
  • Date: Sun, 17 Jul 2011 22:26:27 +0100

On 17/07/2011 22:13, Stephen D Green wrote:
> I don't buy that. And not so easy to replace '<' with
> '&lt;' in just the element content and not the tags.
> ----

I thought you indicated that you were taking strings from user supplied 
form data and adding it to xml, in which case you need to escape the xml 
syntax characters before you add it to the xml so there is no element 
content and no tags to worry about. You don't want to add it then try to 
parse to find element content afterwards as if adding the content has 
made the xml non well formed you've already lost.

David



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member