https://bz.apache.org/bugzilla/show_bug.cgi?id=64851
Bug ID: 64851 Summary: ctr.getTArray() returns empty array Product: POI Version: unspecified Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P2 Component: XWPF Assignee: [hidden email] Reporter: [hidden email] Target Milestone: --- ctr.getTArray() yields empty array when running these two lines: CTR ctr = CTR.Factory.parse("<w:r xmlns:w=\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\"><w:t>primary </w:t></w:r>"); CTText[] cttexts = ctr.getTArray(); -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
https://bz.apache.org/bugzilla/show_bug.cgi?id=64851
--- Comment #1 from Sayi <[hidden email]> --- (In reply to NadavB from comment #0) > ctr.getTArray() yields empty array when running these two lines: > > CTR ctr = CTR.Factory.parse("<w:r > xmlns:w=\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\"><w: > t>primary </w:t></w:r>"); > > CTText[] cttexts = ctr.getTArray(); Use this way: CTR ctr = CTR.Factory.parse("<w:t xmlns:w=\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\">primary</w:t>"); -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=64851
--- Comment #2 from NadavB <[hidden email]> --- Thanks, it works, but how can it be? Shouldn't a CTR parse get a valid CTR xml section, represented by <w:r> ? -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=64851
Dominik Stadler <[hidden email]> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INFORMATIONPROVIDED Status|NEW |RESOLVED --- Comment #3 from Dominik Stadler <[hidden email]> --- I am not an expert on the underlying XML, but I think oyu only provide the inner XML here, and the "w:r" is actually provided via the CTR.Factory anyway. Anyway I don't think there is anything for Apache POI to fix, so closing this for now. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] |
Free forum by Nabble | Edit this page |