Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Oct 28, 2025

This PR contains the following updates:

Package Change Age Confidence
io.github.pdvrieze.xmlutil:serialization 0.91.2 -> 0.91.3 age confidence

Release Notes

pdvrieze/xmlutil (io.github.pdvrieze.xmlutil:serialization)

v0.91.3

(Oct 28, 2025)

Changes:

  • Change the behaviour of defaultPolicy to inherit the settings of
    a previous policy even if it does not inherit DefaultXmlSerializationPolicy.
    In rare cases this changes the behaviour (where a custom policy was
    originally set (with different defaults), it didn't inherit the
    default policy, and it is now replaced by a default policy).
  • In XmlWriter introduce a safeCdsect function that will handle embedded end
    of cdata sequences by splitting the CDATA section into two sections. This is
    now used in serialization to avoid serialization errors if the value contains
    ]]>.

Fixes:

  • Fix serialization of cdata in the generic (and Android) xml writer. The writer
    incorrectly escaped entities in cdata (#​304), and did not correctly deal with
    ]]> in the cdata content (this is resolved by writing as two separate cdata
    sections).
  • Make the default instance encodeToString (XML.encodeToString) use the
    regular behaviour for handling null prefixes. This fixes the default empty
    prefix being used if none is manually set (rather than the annotated prefix).
  • Fix attributes not being prefixed with a namespace if their namespace prefix
    is the default prefix for that namespace. As a workaround leave the prefix
    different from its containers.
  • In pedantic mode, allow an XmlSerialName to use the xml prefix as long as
    its namespace is left default or maps to the xml namespace. Also force the
    prefix used to be the standard prefix (although, depending on the xml writer
    this may already be the case effectively).
  • For the generic parser / serializer make handling of newline/tabs in attribute
    values standard compliant (#​300). This means that when writing all will be
    written as character entities to allow for preservation of the values. For
    reading the entities are just resolved. Actual newline/tab content in
    attribute values is normalized as space characters (where CRLF is still
    replaced by a single space). As attribute values can be differen types than
    CData this does not further normalize the value by collapsing whitespace
    sequences.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/io.github.pdvrieze.xmlutil-serialization-0.x branch from 864a837 to 15da117 Compare October 29, 2025 09:18
@egorikftp egorikftp merged commit 5b180b0 into main Oct 29, 2025
4 checks passed
@egorikftp egorikftp deleted the renovate/io.github.pdvrieze.xmlutil-serialization-0.x branch October 29, 2025 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants