details: https://code.openbravo.com/erp/devel/pi/rev/345f70ecc833 changeset: 35463:345f70ecc833 user: Carlos Aristu <carlos.aristu <at> openbravo.com> date: Wed Feb 20 18:22:12 2019 +0100 summary: related to issue 40246: update comment
diffstat: src/org/openbravo/dal/xml/StaxXMLEntityConverter.java | 16 ++++++---------- 1 files changed, 6 insertions(+), 10 deletions(-) diffs (34 lines): diff -r 8286df3adce0 -r 345f70ecc833 src/org/openbravo/dal/xml/StaxXMLEntityConverter.java --- a/src/org/openbravo/dal/xml/StaxXMLEntityConverter.java Wed Feb 20 17:39:31 2019 +0100 +++ b/src/org/openbravo/dal/xml/StaxXMLEntityConverter.java Wed Feb 20 18:22:12 2019 +0100 @@ -11,7 +11,7 @@ * under the License. * The Original Code is Openbravo ERP. * The Initial Developer of the Original Code is Openbravo SLU - * All portions are Copyright (C) 2009-2013 Openbravo SLU + * All portions are Copyright (C) 2009-2019 Openbravo SLU * All Rights Reserved. * Contributor(s): ______________________________________. ************************************************************************ @@ -249,16 +249,12 @@ // do the primitive values if (p.isPrimitive()) { - // NOTE: I noticed a difference between running from Eclipse and from the commandline - // after some searching, there is a jar file wstx-asl-3.0.2.jar used in - // src-db/database/lib - // which provides the woodstox XMLStreamReader. From the commandline the xerces - // XMLStreamReader - // is used. They differ in the handling of the getText method in handling entities. For + // NOTE: Depending on the XMLStreamReader implementation received as parameter, the + // behavior of the getText method when handling entities can be different. For // example the following text: <text>Tom&Jerry</text> now assume that the pointer is - // at the content of the text tag, and you do getText, then woodstox will return Tom&Jerry - // while xerces will return Tom, this because the & is an entity which is a separate - // event. + // at the content of the text tag, and you do getText, then woodstox reader will return + // Tom&Jerry while xerces reader will return Tom, this is because the & is an entity + // which is a separate event. // below we use the getElementText which works correctly in both cases apparently // element value, note that getElementText means that it is not required anymore _______________________________________________ Openbravo-commits mailing list Openbravo-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbravo-commits