Github user JohannesDaniel commented on the issue:

    https://github.com/apache/nifi/pull/2587
  
    Hi @pvillard31 
    
    thank you for your comments! I realized all your suggestions. I like your 
news regarding the performance :-) Which kind of transformation did you test? 
XML => Record or XML => JSON (e. g. with ConvertRecord)?
    
    For any reason some tests disappeared for a certain commit at my local git 
(probably, I wanted to reorder the tests,  but deleted them, omg ...). However, 
I inserted them again (this is why there are many more tests now). 
    
    In addition, I adjusted the definition about how namespaces shall be 
treated. 
    
    I implemented several tests for XMLReader to verify that the usage of 
expression language works as expected.
    
    However, I was not able to reproduce your observation regarding the empty 
record for the header 
    ```
    <?xml version="1.0" encoding="utf-8"?>
    ```
    
    I implemented the following tests:
    ```
    testSimpleRecordWithHeader()
    testSimpleRecordWithHeaderNoValidation()
    ```
    
    Actually, they work as expected. 


---

Reply via email to