Project

Profile

Help

Bug #4081

closed

XdmNode.toString() output changes between 9.8.0.14 to 9.9.0.2

Added by Philippe Mouawad over 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Serialization
Sprint/Milestone:
Start date:
2018-12-23
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.9
Fix Committed on Branch:
9.9
Fixed in Maintenance Release:
Platforms:

Description

With following document:

<?xml version="1.0" encoding="UTF-8"?>
<Employees>
    <Employee id="1">
        <age:ag xmlns:age="http://www.w3.org/2003/01/geo/wgs84_pos#">29</age:ag>
        <name>Pankaj</name>
        <gender>Male</gender>
        <role>Java Developer</role>
    </Employee>
    <Employee id="2">
        <age:ag xmlns:age="http://www.w3.org/2003/01/geo/wgs84_pos#">35</age:ag>
        <name>Lisa</name>
        <gender>Female</gender>
        <role>CEO</role>
    </Employee>
    <Employee id="3">
        <age:ag xmlns:age="http://www.w3.org/2003/01/geo/wgs84_pos#">45</age:ag>
        <name>Tom</name>
        <gender>Male</gender>
        <role>Manager</role>
    </Employee>
    <Employee id="4">
        <age:ag xmlns:age="http://www.w3.org/2003/01/geo/wgs84_pos#">55</age:ag>
        <name>Meghan</name>
        <gender>Female</gender>
        <role>Manager</role>
    </Employee>
</Employees>

Using XPath selector (with XPathExecutable):

"//Employees/Employee[1]/age:ag"

With 9.8.0-14: "<age:ag xmlns:age="http://www.w3.org/2003/01/geo/wgs84_pos#\">29</age:ag>"

But with 9.9.0-2: "<age:ag xmlns:age="http://www.w3.org/2003/01/geo/wgs84_pos#\">29</age:ag>\n"

A newline is added.

I didn't see any mention of this in release notes or maybe I didn't understand.

Regards

Please register to edit this issue

Also available in: Atom PDF