You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ws.apache.org by "Andreas Veithen (Jira)" <ji...@apache.org> on 2022/04/23 12:02:00 UTC

[jira] [Resolved] (AXIOM-514) < issue in AXIOM parser

     [ https://issues.apache.org/jira/browse/AXIOM-514?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Veithen resolved AXIOM-514.
-----------------------------------
    Resolution: Duplicate

> &lt; issue in AXIOM parser
> --------------------------
>
>                 Key: AXIOM-514
>                 URL: https://issues.apache.org/jira/browse/AXIOM-514
>             Project: Axiom
>          Issue Type: Bug
>          Components: API
>    Affects Versions: 1.3.0
>            Reporter: Velmurugan Muthu
>            Priority: Blocker
>
> Axiom parser converts "&lt ;" to "<" if it is followed by empty node.This makes the xml content invalid.
> XML Input:
>     case 1: <A> test <B></B> &lt; test1 </A>
>     case 2: <A> test <B>ear</B> &lt; test1 </A>
> XML Output:
>     case 1: <A> test <B/> < test1 </A> [Incorrect]
>     case 2: <A> test <B>ear</B> &lt; test1 </A> [Correct]
>  
> Axiom Code:
>     InputStream ina = new FileInputStream(fileName);
>     OMElement root = OMXMLBuilderFactory.createOMBuilder(ina).getDocumentElement();
> Is there any way to handle this scenario ?



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org