             }
 
             it("should be able to correctly parse CDATA sections *with* whitespace") {
-                expect(xml["niotemplate"]["other"].element?.text).to(equal("this\n  has\n  white\n  space"))
+                expect(xml["niotemplate"]["other"].element?.text).to(equal("\n        \n  this\n  has\n  white\n  space\n        \n    "))
             }
         }
 

            }

            it("should be able to correctly parse CDATA sections *with* whitespace") {
                expect(xml["niotemplate"]["other"].element?.text).to(equal("this\n  has\n  white\n  space"))
            }
        }


                expect(count).to(equal(3))
            }

            it("should be able to enumerate children") {
                expect(", ".join(xml["root"]["catalog"]["book"][0].children.map{ $0.element?.name ?? "" })).to(equal("author, title, genre, price, publish_date, description"))
            }
