|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
Session.importXml problemSession.importXml fails on a simple document like this:
With: Basically, it won't load two text nodes in the same element. It also incorrectly imports this: As: The text node within the <b> tag gets concatenated onto the text node in the <body> tag and put after the <b> tag. The <b> tag thus loses its content. |
|
|
Re: Session.importXml problemThanks for your response.
I tried to format my message to look good for Nabble. It looks like that was a mistake. Using square brackets instead of angle brackets, the html was supposed to be: [html][body]a[b]b[/b]c[/body][/html] Don't know if this makes a difference in your response. Maybe I'm missing something, but I don't see anything in the spec that says you can't do this. In 7.3.2, I see this regarding text nodes: Text within an XML element E becomes a STRING property called jcr:xmlcharacters of a node called jcr:xmltext, which itself becomes a child node of the node E. And that's about it. I don't see anything saying you can't have text and an element within another element. In fact 6.4.2.3, regarding export, says adjacent text nodes will be concatenated, which seems to imply that you could import multiple text nodes in an element. Such a restriction would make it impossible to import most xhtml documents. Thanks again. On 8/24/07, HooMan <justin.deal@...> wrote:
-- You receive this message as a subscriber of the exoplatform@... mailing list. To unsubscribe: mailto:exoplatform-unsubscribe@... For general help: mailto:sympa@...?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
| Free embeddable forum powered by Nabble | Forum Help |