What is the type of the content attribute?

________________________________

From: Xing, Charlie [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 08, 2008 1:58 AM
To: user@xmlbeans.apache.org
Subject: How to keep line feeds with XmlOptions?



Hi: 
I have string like: 

        String demoString  = "<Demo content="first line 
                                second line 
                                third line" 
                        type="user"/>"; 
        When I'd like to parse it to xml object: 
                XmlObject demoObj = XmlObject.Factory.parse(demoString); 
                DemoDocument d = (DemoDocument)demoObj; 

        Then I lose line feeds when get content from the demo: 
                String demoContent = d.getDemo().getContent(); 

                demoContent : ""<Demo content="first line  second line  third 
line" type="user"/>";" 

        How can I keep line feeds with XmlOptions? 

Thanks 
Xing yun 

Reply via email to