You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "elharo (via GitHub)" <gi...@apache.org> on 2023/07/18 13:20:33 UTC

[GitHub] [maven] elharo commented on a diff in pull request #1205: [MNG-5862] Support XML entities and XInclude

elharo commented on code in PR #1205:
URL: https://github.com/apache/maven/pull/1205#discussion_r1266762049


##########
maven-model-transform/src/main/java/org/apache/maven/model/transform/stax/XmlUtils.java:
##########
@@ -124,6 +122,38 @@ public static void copy(XMLStreamReader reader, XMLStreamWriter writer, boolean
                 case XMLStreamConstants.END_DOCUMENT:
                     writer.writeEndDocument();
                     return;
+                case XMLStreamConstants.ENTITY_REFERENCE:
+                    if (!((Boolean) reader.getProperty(XMLInputFactory.IS_REPLACING_ENTITY_REFERENCES))) {
+                        writer.writeEntityRef(reader.getLocalName());
+                    }
+                    break;
+                case XMLStreamConstants.ATTRIBUTE:
+                    throw new IllegalStateException();
+                case XMLStreamConstants.DTD:
+                    /*

Review Comment:
   delete or uncomment



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org