bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #36976] NSXML : trailing newlines in elements


From: Riccardo mottola
Subject: [bug #36976] NSXML : trailing newlines in elements
Date: Fri, 27 Jul 2012 12:42:00 +0000
User-agent: Opera/9.80 (Windows NT 6.1; WOW64; U; en) Presto/2.10.289 Version/12.00

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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]