URL:
  <http://savannah.gnu.org/bugs/?36976>

                 Summary: NSXML : trailing newlines in elements
                 Project: GNUstep
            Submitted by: rmottola
            Submitted on: Fri 27 Jul 2012 12:41:59 PM GMT
                Category: Base/Foundation
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Given the XML having:
<?xml version="1.0" encoding="utf-8"?><env:Envelope
xmlns:env="http://italcogim/stampatore/envelope";>

the corresponding namespace extracted with:
  NSLog(@"namespace |%@|", [[rootElement namespaces] objectAtIndex:0]);

Will print:
2012-07-27 12:21:25.139 GDFTester[18875] namespace |<NSXMLNode env
4>xmlns:env="http://italcogim/stampatore/envelope";
|

showing a trailing new line. This affects also node names and other elements.
For example, the printout of the children yields:

"<NSXMLElement Priorita 2><Priorita>Normale</Priorita>
", 

Tthere is an extra newline after the </Priorita> tag




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?36976>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/


_______________________________________________
Bug-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to