Hello together,

i have a problem with parsing a xml-file and perhaps someone know's my fault 
and has time to answer.

hint: the xml-file-content is just as smal for demonstration my problem.

I have a xml-file with the following content:
    
    
    <TEST LONG-NAME="this / that">my inner text</TEST>
    
    
    Run

If i read in this file with the code as follows, the value of the attribute 
"LONG-NAME" is: `this/ that` My code:
    
    
    import std/[xmlparser,xmltree]
    
    var rn = loadXml("in.xml")
    writeFile("out.xml", $rn)
    
    
    
    Run

My code writes the file, and the value of "LONG-NAME" is as i said above: the 
"space" before the "slash" is missing. I found out, this happens during 
"loadXml" and has nothing to do with the "write"-part.

I have a big file with many of those values with an "space" followed by a 
"slash".

What i'm doing wrong?

Can anyone help me please?

Bests Beckx 

Reply via email to