• gresy pritty 8
  • NEWBIE
  • -1 Points
  • Member since 2022

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
Hi,

How i can check on controller if page is opened using 'Salesforce Classic' or 'Salesforce lightning' UI(for winter 16 release).

Thanks,
Kanwalpreet Singh

I have Apex code in a controller class that uses the XMLStreamWriter to create an XML string and display the string on a Visualforce Page.  Everything is working fine except I can't find a graceful way to display the XML with indents (ie. pretty print) on the page.

 

Do I have to hard code the line breaks or is there a better solution I'm just not aware of?

 

Thanks in advance.