sitemule / noxDB

Not only XML. SQL,JSON and XML made easy for IBM i
MIT License
42 stars 20 forks source link

XML serializer prints from the selected element and rest of file #81

Closed NielsLiisberg closed 1 year ago

NielsLiisberg commented 1 year ago

Having a XML file:

        <a>                                    
            <l>1</l>                    
            <l>2</l>                            
            <k>3</k>                            
            <l>4</l>                            
        </a>                                   

and doing a

    pA = xml_locate(pXml : '/a/l');
    Result = xml_asXmlText (pA);

result will be

            <l>1</l>                    
            <l>2</l>                            
            <k>3</k>                            
            <l>4</l>                            

Where

            <l>1</l>                    

is the correct result

NielsLiisberg commented 1 year ago

Fixed: /test/issue81.rpgle is used for unit test