# Manually update pages within the Xway project package - don't do it?!?

**URL:** <https://discourse.softpress.com/t/manually-update-pages-within-the-xway-project-package-dont-do-it/26407>\
**Category:** Xway\
**Created:** [October 19, 2026, 2:41am UTC](https://discourse.softpress.com/t/manually-update-pages-within-the-xway-project-package-dont-do-it/26407 "2026-10-19T02:41:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Noob](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/n/5e9695/32.png) [@Noob](https://discourse.softpress.com/u/Noob)\
**Post date:** [October 19, 2026, 2:41am UTC](https://discourse.softpress.com/t/manually-update-pages-within-the-xway-project-package-dont-do-it/26407/1 "2026-10-19T02:41:34Z")

</div>

We can “see inside” an Xway project by inspecting the Package Contents on a Mac. It’s really just like any other Mac folder, and the `Resources` and `Site` pages are all in here and are what is actually published.

For my particular site, there are a few pages which are dynamically rewritten by a cron job on the host server. I have very good reasons for wanting to do this. Those particular pages contain statistics that are periodically updated (some daily, others as infrequently as quarterly) but are otherwise completely static between updates.

That minimises server loads - those particular pages are not dynamically updated or re-created every single time someone views them.

I used Xway to create the initial format for those pages and get them looking nice, but all subsequent updates to the actual statistics content is done by the host server’s cron job.

But of course that breaks the link between Xway and what is on my site. I can individually mark those pages in Xway to **not** be published to the hosting server and hence not overwrite updated files there - that is easy.

But my question is - is it safe to go back the other way, i.e. periodically update the versions of those webpages **within** the Xway project (`Site` folder) by copying in the relevant HTML files from the server? Or will that break something in Xway?

I note the `document.plist` file contains references to those pages, but I don’t know if it contains metadata like the page length in bytes or other data that, if the page within the `Site` folder was externally changed outside of Xway, would break Xway’s knowledge of the site and cause a world or pain or unpredictable behaviour.

---

<div class="post-metadata">

**Author:** ![waltd](https://discourse.softpress.com/user_avatar/discourse.softpress.com/waltd/32/2720_2.png) [@waltd](https://discourse.softpress.com/u/waltd)\
**Post date:** [October 19, 2026, 3:33am UTC](https://discourse.softpress.com/t/manually-update-pages-within-the-xway-project-package-dont-do-it/26407/2 "2026-10-19T03:33:53Z")

</div>

I am pretty sure that the HTML files in the bundle are generated by Xway after each publish, and thus represent a one-way transformation of the internal document format into HTML. Think of them as a kind of cache of the publishing process, more like a print out of your laser printer to proof a desktop-publishing document before sending it off to the lithographers.

Any subsequent changes to those files would be akin to damage or data corruption, from Xway’s perspective. Not that it would necessarily care. I believe it generates those files and then immediately considers them no further.

If you update or edit those files inside the bundle, and then open the site document and look at the relevant pages inside Xway, you would see the original, not-updated content there, just as you left it after you saved following your last edit within Xway. If you were to publish or preview in Xway, you would revert those updated files in the bundle to match the design view as it appears in Xway.

Let me ask you a question: what kind of data appears on these pages? The parts that change – are they tabular data like a spreadsheet, or more richly formatted than that?

I wonder if there is a way to use Xway’s markup items and external markup tools to separate the content from the presentation somehow, and thus let your server updates be much lower-level and not impact the Xway design – to the point that you could then change the design later without breaking that link.

---

<div class="post-metadata">

**Author:** ![Noob](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/n/5e9695/32.png) [@Noob](https://discourse.softpress.com/u/Noob)\
**Post date:** [October 19, 2026, 3:51am UTC](https://discourse.softpress.com/t/manually-update-pages-within-the-xway-project-package-dont-do-it/26407/3 "2026-10-19T03:51:23Z")

</div>

> [@waltd](#):
>
> I am pretty sure that the HTML files in the bundle are generated by Xway after each publish,

@Jeremy should be able to advise exactly, but the HTML files in the `Site` folder inside the Xway project package don’t look to me to be special in any way and are exactly what is published. They’re not binary files. I’ve noticed though that the files themselves are only updated there if one does a “Web Preview” in Xway (which I suspect is akin to “Publishing” the page).

Merely saving an XWay project is not enough to update the `Site` files.

> [@waltd](#):
>
> what kind of data appears on these pages? The parts that change – are they tabular data like a spreadsheet, or more richly formatted than that?

It is more richly formatted than that. I wrote a Python script to take the nicely formatted Xway HTML page, treat it as a template, and insert the requisite new data values in the correct spots.

If I do a major redesign (which I’ve done once) I do have to then correspondingly update my Python code. Mainly because it wasn’t just a reformatting of what was already there, but introducing new data items.

It wasn’t too difficult to update the code, but I suspect my approach might cause some purists to wince. There may well be a better way to do what I’m doing, but it works.

---

<div class="post-metadata">

**Author:** ![Jeremy](https://discourse.softpress.com/user_avatar/discourse.softpress.com/jeremy/32/2740_2.png) [@Jeremy](https://discourse.softpress.com/u/Jeremy)\
**Post date:** [October 19, 2026, 11:47am UTC](https://discourse.softpress.com/t/manually-update-pages-within-the-xway-project-package-dont-do-it/26407/4 "2026-10-19T11:47:40Z")

</div>

“Don’t do it.” is the answer.

It’s a bad idea to change anything that is within an Xway document package. Changing the contents of the Site folder is harmless in itself (you can empty this folder from within Xway by choosing **Empty Site Folder** from the **File** menu), but it won’t achieve what you want because Xway will overwrite the changes before it uploads. Changing anything else could damage the document.

If you want to process HTML files after they have been generated, one way to do this is to export the Site (choose **Export** from the **File** menu) and change the files there before uploading them with a third-party upload program (e.g. Cyberduck). Note that **Export** will also overwrite changes, so don’t re-export before you’ve uploaded the changed files.

If there is a way to separate out the data from the styling (as Walter suggested), one option might be to put it in a file that provides data for a markup item. You can choose a file from the **File** popup in the **Insert Markup** dialog, or in the **Box Inspector**. If this file changes, Xway will update the markup item’s content next time it publishes that page.

---

<div class="post-metadata">

**Author:** ![Noob](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/n/5e9695/32.png) [@Noob](https://discourse.softpress.com/u/Noob)\
**Post date:** [October 20, 2026, 12:16am UTC](https://discourse.softpress.com/t/manually-update-pages-within-the-xway-project-package-dont-do-it/26407/5 "2026-10-20T00:16:43Z")

</div>

> [@Jeremy](#):
>
> because Xway will overwrite the changes before it uploads

That implies that Xway keeps all of a website’s content somewhere else other than the `Site` folder, and that intrigues me… it implies hidden files/folders somewhere else that Xway uses as its “source of truth” for all content.

So dare I ask where that is?

---

<div class="post-metadata">

**Author:** ![Jeremy](https://discourse.softpress.com/user_avatar/discourse.softpress.com/jeremy/32/2740_2.png) [@Jeremy](https://discourse.softpress.com/u/Jeremy)\
**Post date:** [October 20, 2026, 11:18am UTC](https://discourse.softpress.com/t/manually-update-pages-within-the-xway-project-package-dont-do-it/26407/6 "2026-10-20T11:18:33Z")

</div>

There aren’t any hidden files.

Xway stores information about a website within a binary file (document.plist) that is in the document package, and it uses this information to generate the actual website files. The binary document file contains an element tree (folders, pages, elements, text) that is output as HTML, along with style information that is output as CSS.

What this means is that Xway, like its predecessor (Freeway), is an HTML generator rather than an HTML editor. One way to think about it is that an Xway document is similar to a Pages (or other page-layout) document: page-layout applications are PostScript generators rather than PostScript editors. Publishing a page-layout document generates PostScript, which is then sent to a printer (perhaps via an intermediate format) or output as a PDF. Publishing an Xway document generates HTML.

The document package also contains two folders: a Resources folder and a Site folder. The Site folder is comparatively unimportant, since it can be recreated at any time, but the Resources folder is important: if you remove resources, Xway might be able to replace them (if there is an external file from which the resource was imported), but this isn’t always the case. If you remove the Resources folder or change its contents, you are likely to end up with missing resources.

We don’t recommend that people look inside Xway documents, because accidental changes could damage the document, but Xway provides a way to empty the document’s Site folder ( **Empty Site Folder** in the **File** menu). If you’re sharing a document with someone else, emptying the site folder can reduce the size of the document. One downside to doing this with an original document (as opposed to a copy) is that it will increase the time it takes to upload the site (Xway has to republish and re-upload everything).
