[jbosstools-issues] [JBoss JIRA] (JBIDE-18186) XMLMemento cannot parse a file where first node is a comment

Rob Stryker (JIRA) issues at jboss.org
Tue Sep 2 04:47:59 EDT 2014


    [ https://issues.jboss.org/browse/JBIDE-18186?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12997689#comment-12997689 ] 

Rob Stryker commented on JBIDE-18186:
-------------------------------------

{code}
String xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!-- some comment --> <module-alias></module-alias>";
XMLMemento memento = XMLMemento.createReadRoot(new ByteArrayInputStream(string.getBytes()));
assertNotNull(memento);
{code}

> XMLMemento cannot parse a file where first node is a comment
> ------------------------------------------------------------
>
>                 Key: JBIDE-18186
>                 URL: https://issues.jboss.org/browse/JBIDE-18186
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: common/jst/core
>    Affects Versions: 4.2.0.CR1
>            Reporter: Rob Stryker
>            Assignee: Rob Stryker
>             Fix For: 4.2.0.CR1
>
>
> The class XMLMemento, originally taken from upstream eclipse, is unable to parse a xml input stream if the first node is not an Element. This restriction should be worked around.  This is a patch needed by astools for solving /JBIDE-18130



--
This message was sent by Atlassian JIRA
(v6.3.1#6329)


More information about the jbosstools-issues mailing list