You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2020/10/21 11:58:33 UTC
[Bug 64837] New: In POI 3.17 xmlText prints the inner string of the
CTText element (as fragment) instead of the whole xml node with
https://bz.apache.org/bugzilla/show_bug.cgi?id=64837
Bug ID: 64837
Summary: In POI 3.17 xmlText prints the inner string of the
CTText element (as fragment) instead of the whole xml
node with <w:t>
Product: POI
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: XWPF
Assignee: dev@poi.apache.org
Reporter: nadavbenedek@gmail.com
Target Milestone: ---
// Why print fragment instead of <w:t>?
CTText tmpTextNode = CTText.Factory.newInstance();
tmpTextNode.setStringValue("A");
XmlOptions opts = new XmlOptions();
opts.setSaveOuter();
opts.setSaveNoXmlDecl();
System.out.println(tmpTextNode.xmlText(opts));
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 64837] In POI 3.17 xmlText prints the inner string of the
CTText element (as fragment) instead of the whole xml node with
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64837
--- Comment #4 from NadavB <na...@gmail.com> ---
Hi Sayi,
If I'm not wrong, CTText is an XML-bean represenation of a <w:t> xml node,
isn't it?
If so, I'm just trying to print out the node, as xml-string representation of
the CTText element.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 64837] In POI 3.17 xmlText prints the inner string of the
CTText element (as fragment) instead of the whole xml node with
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64837
Nick Burch <ap...@gagravarr.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
--- Comment #1 from Nick Burch <ap...@gagravarr.org> ---
Apache POI 3.17 is over 3 years old now -
http://poi.apache.org/devel/history/changes-3x.html#3.17 . A large number of
fixes have been done since then, see
http://poi.apache.org/changes.html
Can you please try again with a recent supported version, and see if the bug
still remains?
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 64837] In POI 3.17 xmlText prints the inner string of the
CTText element (as fragment) instead of the whole xml node with
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64837
PJ Fanning <fa...@yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |RESOLVED
Resolution|--- |CLOSED
--- Comment #5 from PJ Fanning <fa...@yahoo.com> ---
xmlText is a generated method - we use XMLBeans to generate CTText.
xmlText has behaved this way for years - so there is no recent regression.
XMLBeans 2.6.0 has this behaviour (released 2012) - as does recent XMLBeans
releases.
I moved this to https://issues.apache.org/jira/browse/XMLBEANS-573
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 64837] In POI 3.17 xmlText prints the inner string of the
CTText element (as fragment) instead of the whole xml node with
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64837
--- Comment #3 from Sayi <sa...@163.com> ---
Hi, NadavB
I am not sure if it can be done: output <w:t>?
But you can contact xml String by yourself and pay attention the "xmlns"
attribute.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 64837] In POI 3.17 xmlText prints the inner string of the
CTText element (as fragment) instead of the whole xml node with
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64837
--- Comment #2 from NadavB <na...@gmail.com> ---
Hi Nick,
Before I invest a lot of time in upgrading, can you tell me what's the desried
behaviour? Should it print <w:t>... or <xml-fragment>... ?
Can you tell me what these 6 lines print in your updated POI?
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org