From e5cc26f7ebdf1d713120e1f409a11e7c219ca464 Mon Sep 17 00:00:00 2001 From: Antonio Date: Sun, 12 May 2024 00:28:39 +0200 Subject: [PATCH] improving Atom10Generator as #689 requested Signed-off-by: Antonio --- .../java/com/rometools/rome/io/impl/Atom10Generator.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rome/src/main/java/com/rometools/rome/io/impl/Atom10Generator.java b/rome/src/main/java/com/rometools/rome/io/impl/Atom10Generator.java index f8db783fe..d53c46bd1 100644 --- a/rome/src/main/java/com/rometools/rome/io/impl/Atom10Generator.java +++ b/rome/src/main/java/com/rometools/rome/io/impl/Atom10Generator.java @@ -502,6 +502,12 @@ protected void fillContentElement(final Element contentElement, final Content co } } + + final String xmlBase = content.getXmlBase(); + if (xmlBase != null) { + final Attribute xmlBaseAttribute = new Attribute("base", xmlBase, Namespace.XML_NAMESPACE); + contentElement.setAttribute(xmlBaseAttribute); + } } protected Element generateGeneratorElement(final Generator generator) {