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

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