Uploaded image for project: 'Axiom'
  1. Axiom
  2. AXIOM-514

< issue in AXIOM parser

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Duplicate
    • 1.3.0
    • None
    • API
    • None

    Description

      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> < test1 </A>
          case 2: <A> test <B>ear</B> < test1 </A>

      XML Output:

          case 1: <A> test <B/> < test1 </A> [Incorrect]
          case 2: <A> test <B>ear</B> < test1 </A> [Correct]
       

      Axiom Code:

          InputStream ina = new FileInputStream(fileName);
          OMElement root = OMXMLBuilderFactory.createOMBuilder(ina).getDocumentElement();

      Is there any way to handle this scenario ?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              VelmuruganMuthu Velmurugan Muthu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: