While opening my xml file for editting using notepad++,all the fields are coming in a single line.

Please help me in making the correct format.

<?xml version="1.0" encoding="utf-8"?><clsUserConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><PrjDescValues><string>PrjName</string><string>8</string><string>Project Name</string><string>Creator Name</string><string>Department Name</string><string>xxxxxxxxxxxx</string><string /><string> .</string><string> / /</string><string>CSConfigurator</string><string>ESP9</string></PrjDescValues><HarnessValues><string>HarnessTab</string><string>2</string><string>1044-02-00</string><string>00</string></HarnessValues><MRVRValues><string>MRVRTab</string><string>2</string><string>MR in CSIM</string><string>VR in CSIM</string></MRVRValues><ValvesValues><string>ValvesTab</string><string>13</string><string>LC06</string><string>EvFL</string><string>EvFR</string><string>EvRL</string><string>EvRR</string><string>AvFL</string><string>AvFR</string><string>AvRL</string><string>AvRR</string><string>USV1</string><string>USV2</string><string>HSV1</string><string>HSV2</string></ValvesValues><WssFLValues><string>DF11s</string><string>3</string><string>48</string><string>0.322447</string><string>50</string></WssFLValues><WssFRValues><string>DF11s</string><string>3</string><string>48</string><string>0.322447</string><string>50</string></WssFRValues><WssRLValues><string>DF11s</string><string>3</string><string>48</string><string>0.322447</string><string>50</string></WssRLValues><WssRRValues><string>DF11s</string><string>3</string><string>48</string><string>0.322447</string><string>50</string></WssRRValues><LampsValues><string>LampsTab</string><string>38</string><string>80.0</string><string>20.0</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>Active</string><string>1</string><string>2</string><string>3</string><string>4</string><string>5</string><string>6</string><string>1</string><string>2</string><string>3</string><string>4</string><string>5</string><string>6</string><string>TCS</string><string>ABS</string><string>INFO</string><string>ESP</string><string>EBD</string><string>PALA</string><string>MFL</string><string>L1</string><string>L2</string><string>L3</string><string>L4</string><string>L5</string></LampsValues><SwitchesValues><string>SwitchesTab</string><string>30</string><string>Ubatt_R</string><string>Ubatt_R</string><string>Ubatt_R</string><string>Ubatt_R</string><string>Ubatt_R</string><string>Ubatt_R</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>GND</string><string>Switch 1</string><string>Switch 2</string><string>Switch 3</string><string>Switch 4</string><string>Switch 5</string><string>Switch 6</string><string>True</string><string>True</string><string>True</string><string>True</string><string>True</string><string>True</string></SwitchesValues><PressureSensorFLValues><string>Not Used</string><string>0</string></PressureSensorFLValues><PressureSensorFRValues><string>Not Used</string><string>0</string></PressureSensorFRValues><PressureSensorRLValues><string>Not Used</string><string>0</string></PressureSensorRLValues><PressureSensorRRValues><string>Not Used</string><string>0</string></PressureSensorRRValues><PressureSensorMBCValues><string>Not Used</string><string>0</string></PressureSensorMBCValues><PressureSensorBC1Values><string>Not Used</string><string>0</string></PressureSensorBC1Values><PressureSensorBC2Values><string>Not Used</string><string>0</string></PressureSensorBC2Values><VacuumSensorValues><string>Not Used</string><string>0</string></VacuumSensorValues><Node_YRSSensor><YRSPrjInfo>Chery M12 ESP8</YRSPrjInfo><InitialisationTime>150</InitialisationTime><ListOfMessages><clsCANMessage><CANDefaultValues><string>ID1</string><string>Tx</string><string>0x130</string><string>20</string><string>True</string><string>True</string><string>8</string><string>False</string><string>True</string><string>1</string><string>1</string><string>0x00</string><string>0x01</string><string>0x02</string><string>0x03</string><string>0x04</string><string>0x05</string><string>0x06</string><string>0x07</string><string>0.0</string><string>0</string><string>0</string><string>0.0</string><string>0</string></CANDefaultValues></clsCANMessage><clsCANMessage><CANDefaultValues><string>ID7</string><string>Tx</string><string>0x140</string><string>20</string><string>True</string><string>True</string><string>8</string><string>False</string><string>True</string><string>1</string><string>2</string><string>0x00</string><string>0x01</string><string>0x02</string><string>0x03</string><string>0x04</string><string>0x05</string><string>0x06</string><string>0x07</string><string>8</string><string>8</string><string>3636051B010000</string><string>02S5005870</string><string>S11</string><string>S232</string><string>W112</string><string>Q12</string><string>90\01\19</string><string>Q12</string><string>ROBERT_BOSCH_GMBH</string><string>A234</string><string>0S3</string><string>0</string></CANDefaultValues></clsCANMessage><clsCANMessage><CANDefaultValues><string>ID0</string><string>Tx</string><string>0x002</string><string>20</string><string>True</string><string>True</string><string>8</string><string>False</string><string>True</string><string>1</string><string>0</string><string>0x00</string><string>0x01</string><string>0x02</string><string>0x03</string><string>0x04</string><string>0x05</string><string>0x06</string><string>0x07</string><string>0</string><string>0</string><string>0</string><string>0</string><string>0</string></CANDefaultValues></clsCANMessage></ListOfMessages></Node_YRSSensor></clsUserConfiguration>

Edited 4 Years Ago by rexdon

You need to install XML Tools if not installed yet:

  1. Go to Plugins -> Plugin Manager -> Show Plugin Manager and then look for XML Tools and install it.
  2. Once installed, then you can either hold clt+alt+shift+b together OR go to Plugins -> XML Tools -> Pretty Print.

There is another Plugin TextFX but I have not used it yet, If this doesn't help try that out too.

  1. After installing it go to TextFX -> TextFX Html Tidy -> Tidy: reindent XML

Hope this helps :)

Edited 4 Years Ago by amy2389

This article has been dead for over six months. Start a new discussion instead.