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

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

Velmurugan Muthu created AXIOM-514:
--------------------------------------

             Summary: &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


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