What is the difference between the generated merged xml and the pretty.xml?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

What is the difference between the generated merged xml and the pretty.xml?

L1 Bithead

After merging a config in Expedition, when you generate the XML you get two files: projectname.xml and projectname.zip.  The ZIP contains a text doc with the set commands as well as the same projectname.xml and a larger projectname-pretty.xml.  What is the difference between the two xml files?

 

To further elaborate, here is a sanitized example:

I was pulling in some security and nat rules along with objects into a panorama config.  At the same time I wanted to do a little cleanup on duplicate address objects in Panorama.

So I pulled a fresh config from Panorama: PANOCONFIG.xml (size 18,697 KB)

After the work was performed and the merged output was generated I got these files:

MT-PANOCONFIG.xml (size 11,466 KB) and from the zip file after being extracted MT-PANOCONFIG-PRETTY.xml (size 19,448 KB)

 

The "pretty" one is what I would expect to see size wise as I added to the config so it is now bigger than the original exported config.  But ultimately both the 11KB xml and the 19KB xml work the same, so what is the difference between the two and which one should be used when importing back into Panorama?

1 accepted solution

Accepted Solutions

L5 Sessionator

The difference is on how the content is written.

 

The pretty XML maintains tabs and spaces to be able to read it easier (human readable).

While it is easier to read, it may actually become larger in size. To allow having smaller files and avoid possible limitations uploading them to devices, we have a smaller version, that only differs on those spaces and blanks. Therefore, content wise are exactly the same

View solution in original post

1 REPLY 1

L5 Sessionator

The difference is on how the content is written.

 

The pretty XML maintains tabs and spaces to be able to read it easier (human readable).

While it is easier to read, it may actually become larger in size. To allow having smaller files and avoid possible limitations uploading them to devices, we have a smaller version, that only differs on those spaces and blanks. Therefore, content wise are exactly the same

  • 1 accepted solution
  • 3028 Views
  • 1 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!