RE: How to have an attribute which contains XML

2009-11-17 Thread Jesse Pelton
Are you saying that the document may be serialized with an element like the following? If so, the serialization is invalid. See http://www.w3.org/TR/2006/REC-xml-20060816/#syntax. '<' must be represented as a numeric character reference or '<' when it's not used as a markup delimiter. I

RE: How to have an attribute which contains XML

2009-11-18 Thread Leif Goodwin
Yes, that is exactly what we do. I use the setAttribute method on DOMElement instance passing name as "formula" and value as ".//activity/@status". Then I serialise the DOMDocument to a string. When I examine the string, I see that Xerces has replaced each '<' with "<" which is correct. But it lea

RE: How to have an attribute which contains XML

2009-11-18 Thread Jesse Pelton
c-dev@xerces.apache.org Subject: RE: How to have an attribute which contains XML Yes, that is exactly what we do. I use the setAttribute method on DOMElement instance passing name as "formula" and value as ".//activity/@status". Then I serialise the DOMDocument to a string. When I