[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: New line in attribute
This is an XML feature called "attribute value normalization". You can't switch it off, it's built into the XML specification. Michael Kay http://www.saxonica.com/ > -----Original Message----- > From: Baisak, Ranjan [mailto:ranjan_baisak@m...] > Sent: 24 May 2005 15:15 > To: xml-dev@l... > Subject: New line in attribute > > > I am using Xerces for parsing. My xml has an attribute with new lines. > specification="This is a test. This is a test . > > This is a test . This is a test. > > This is a test. This is a test." > > On getAttribute() returns a string with new lines are stripped. How to > get the exact text with new lines? > > regards, > -Ranjan > > ----------------------------------------------------------------- > The xml-dev list is sponsored by XML.org <http://www.xml.org>, an > initiative of OASIS <http://www.oasis-open.org> > > The list archives are at http://lists.xml.org/archives/xml-dev/ > > To subscribe or unsubscribe from this list use the subscription > manager: <http://www.oasis-open.org/mlmanage/index.php> > >
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|