Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Export Multiple Tables to XML

Featured Replies

I have seperate tables for each WBS level of a project (WBS Levels 4-8)

Each table will contain the same fields to be exported, and I need to create ONE XML file that contains all the records from all WBS levels.

What is the best way to get all these records into one XML file?

Thanks for any guidance!

There is a document(relative file path) function in xsl, which can be used in an xsl stylesheet to import data from another xml file, other than the one being currently exported. So you could use your last xml export to assemble, insert and manipulate the data from the previous xml exports.

  • Author

Hi Fenton. Thanks for the reply. I am currently using an XSL to transform the data and create the tags.

So if I am understanding you correctly, on the last export, WBS 8, (say ive already exported WBS 4-7)I would modify the XSL to reference/insert the other XML files as well as export the last WBS?

Sorry, i am fairly new to XML. Do you know the correct syntax for doing this?

Thanks!

I've not done it much myself, except just a quick experiment (a while ago), but from what I can tell, it is fairly simple. You can either use the document() function directly as the top of a node path, or you can set a variable to the document, then use that in node paths.

Say you have an xml file named "WBS_7.xml", in the same folder, whose root element is "widgets." In the WBS_4.xsl file (last export, top level?).

This would produce something like:

A widget name

You'll also want to look at the and elements also, which can bring in whole chunks of xml in one piece, with one command. Much easier than for-each, value-of. Copy-of is also known as "deep copy," and it gets pretty much everything, all children. Copy is known as "shallow copy," and just gets the element of the current node. And I just read that in a book :(-]

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.