Backup and Restore XML

Could we get the backup XMLs generated on multiple lines with indentation?

I just downloaded one in order to add an external ID to a couple of lots, and working with it as one long line is murder on my text editor (Notepad++), not to mention my eyes.

Also, it didn't work. I couldn't restore from the XML file.

Enoch

Comments

  • 8 Comments sorted by Votes Date Added
  • edited July 2014 Vote Up0Vote Down
    Editors with XML support often have some "auto-indent" built-in function to make the stuff human-readable. I'm afraid I don't know Notepad++ though.
  • Hopefully an editor can help with the indentation. Could you expand on "it didn't work"?
  • I get an error message: Error Interpreting XML.

    When I tried to open it in oXygen, I get a little more information: Cannot parse document: The entity name must immediately follow the '&' in the entity reference.

    The line in question is: Panel 1 x 2 x 2 with Side Supports - Hollow Studs with 'DISCONNECT CAPACITOR DRIVE BEFORE OPENING' & 'SHEILD EYES FROM LIGHT' Pattern (early version)

    It's from BOID: 797863-64. I went out to update it, but the description on the site displays with "and" instead of "&".
  • Also, can someone suggest an editor with auto-indent?
  • So does the raw XML from Brick Owl contain an ampersand, despite the name on Brick Owl having no ampersand?
  • edited July 2014 Vote Up0Vote Down
    So I finally got a chance to test this today, and I can't replicate that. I added that as an item to my inventory, created a backup, downloaded the XML, and the name is as it appears on the website, with no ampersand. "LEGO Medium Stone Gray Panel 1 x 2 x 2 with 'DISCONNECT CAPACITOR DRIVE BEFORE OPENING' and 'SHEILD EYES FROM LIGHT' Pattern (First issue version) with Side Supports, Hollow Studs (15509 / 18510)"
This discussion has been closed.