Menu

XML files presentation

igal
2010-08-14
2012-11-13
  • igal

    igal - 2010-08-14

    Hey, I've a problem to see XML files.

    the representation of the file is not from up to button (as a tree) but from left to right, as regular text, like this

    <?xml version="1.0"?><!-First Comment XmlTextWriter Sample Example-><!-myXmlFile.xml in root dir-><Student><r:RECORD xmlns:r="urn:record"><Name>Student</Name><Address>Colony</Address><Char>arc</Char></r:RECORD></Student>

    and not like this

      <?xml version="1.0" ?>
    - <!- First Comment XmlTextWriter Sample Example
      ->
    - <!- myXmlFile.xml in root dir
      ->
    - <Student>
             - <r:RECORD xmlns:r="urn:record">
            <Name>Student</Name>
            <Address>Colony</Address>
            <Char>arc</Char>
            </r:RECORD>
      </Student>

    what may be the problem ?

     
  • cchris

    cchris - 2010-08-14

    Line endings. In Edit -> EOL Conversions, change the file mode to Unix - unless you found the file on an old Mac -.

    CChris

     
MongoDB Logo MongoDB