Petals CDK

method createStringFromDOMNode in XMLUtil doesn't work well

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 5.1.2
  • Fix Version/s: 5.1.2
  • Component/s: Utils
  • Security Level: Public
  • Description:
    Hide

    The method createStringFromDOMNode(Node node, boolean omitDeclaration) in XMLUtil doesn't work well.
    In the first loading of the transformer, if omitDeclaration is true, the string result doesn't contains xml declaration (expected behaviour). At the second call of the method, string result contains xml declaration (non expected behaviour).

    At each transformer.reset() call, the properties of the transformer are reset.
    So, the three following Transformers methods are useless:

    public final static Transformer getXmlWithDeclarationTransformer()

    public final static Transformer getXmlWithoutDeclarationTransformer()

    public final static Transformer getWithoutDeclarationTransformer()

    Show
    The method createStringFromDOMNode(Node node, boolean omitDeclaration) in XMLUtil doesn't work well. In the first loading of the transformer, if omitDeclaration is true, the string result doesn't contains xml declaration (expected behaviour). At the second call of the method, string result contains xml declaration (non expected behaviour). At each transformer.reset() call, the properties of the transformer are reset. So, the three following Transformers methods are useless:
    public final static Transformer getXmlWithDeclarationTransformer() public final static Transformer getXmlWithoutDeclarationTransformer() public final static Transformer getWithoutDeclarationTransformer()
  • Environment:
    NA

Activity

Mathieu Carrolle made changes - Tue, 4 Jan 2011 - 16:14:21 +0100
Field Original Value New Value
Status New [ 10000 ] Open [ 10002 ]
Priority Major [ 3 ]
Mathieu Carrolle made changes - Tue, 4 Jan 2011 - 16:14:25 +0100
Status Open [ 10002 ] In Progress [ 10003 ]
Mathieu Carrolle made changes - Tue, 4 Jan 2011 - 16:21:53 +0100
Original Estimate 0 minutes [ 0 ]
Remaining Estimate 0 minutes [ 0 ]
Mathieu Carrolle made changes - Tue, 4 Jan 2011 - 16:21:54 +0100
Status In Progress [ 10003 ] Resolved [ 10004 ]
Resolution Fixed [ 1 ]
Mathieu Carrolle made changes - Thu, 6 Jan 2011 - 09:47:06 +0100
Fix Version/s 5.1.2 [ 10180 ]
Transition Status Change Time Execution Times Last Executer Last Execution Date
New New Open Open
29s
1
Mathieu Carrolle
Tue, 4 Jan 2011 - 16:14:21 +0100
Open Open In Progress In Progress
4s
1
Mathieu Carrolle
Tue, 4 Jan 2011 - 16:14:25 +0100
In Progress In Progress Resolved Resolved
7m 29s
1
Mathieu Carrolle
Tue, 4 Jan 2011 - 16:21:54 +0100

People

Dates

  • Created:
    Tue, 4 Jan 2011 - 16:13:52 +0100
    Updated:
    Thu, 6 Jan 2011 - 09:47:06 +0100
    Resolved:
    Tue, 4 Jan 2011 - 16:21:54 +0100