[ https://issues.apache.org/jira/browse/CAMEL-12114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16348704#comment-16348704 ]
Aurelien Pupier commented on CAMEL-12114: ----------------------------------------- I'm trying to reuse as much as possible existing Camel stuff for writing a Camel Language Server [https://github.com/lhein/camel-language-server] i'm using it here https://github.com/lhein/camel-language-server/blob/fe907863203950a7f936f5e1740670069498722b/server/src/main/java/org/apache/camel/tools/lsp/internal/parser/ParserFileHelper.java#L79 > Have XmlLineNumberParser respecting namespace uri > ------------------------------------------------- > > Key: CAMEL-12114 > URL: https://issues.apache.org/jira/browse/CAMEL-12114 > Project: Camel > Issue Type: Improvement > Components: tooling > Affects Versions: 2.20.1 > Reporter: Aurelien Pupier > Priority: Minor > > when javax.xml.parsers.DocumentBuilderFactory.setNamespaceAware(boolean) is > [set to > true|https://github.com/apache/camel/blob/f980e6b3d88f5ebb9e604aabc44315fa01a9e486/tooling/camel-route-parser/src/main/java/org/apache/camel/parser/helper/XmlLineNumberParser.java#L87], > the namespace uris is supposed to be set on all nodes (when there is one) > i think that it should be done > [here|https://github.com/apache/camel/blob/f980e6b3d88f5ebb9e604aabc44315fa01a9e486/tooling/camel-route-parser/src/main/java/org/apache/camel/parser/helper/XmlLineNumberParser.java#L133]. > it will also avoid to have to "forcenameSpace" see > [here|https://github.com/apache/camel/blob/f980e6b3d88f5ebb9e604aabc44315fa01a9e486/tooling/camel-route-parser/src/main/java/org/apache/camel/parser/helper/XmlLineNumberParser.java#L79] -- This message was sent by Atlassian JIRA (v7.6.3#76005)