XML file structure

Posted by: ricks

XML file structure - 04/17/10 02:09 PM

We use PSM6.0 now. We are exploring Planet Press 7 for other formatting. Using the PSM feature in Watch is of interest to us. The only common "database" we wish to work with for these two formatting tools in Production Watch is XML.

I have XML files that work well in PP7.1. I can't figure out why my simple XML structure for PSM type jobs will not work.

Can someone provide a quick exmaple XML file that I can try loading. If I can find something that works, I can adjust our XML formatting library to produce this format from our native pre-processing databases.

rs
Posted by: Sander vd Berg

Re: XML file structure - 04/18/10 04:05 AM

PSM7 has better support for XML than PSM6. It will accept more, and it has improved error handling. I would invite you to try PSM7 and see if it can handle your current XML files.

This should work in PSM6:
Code:
  
<Table>
  <Record>
    <F1>1</F1>
    <F2>2</F2>
  </Record>
  <Record>
    <F1>3</F1>
    <F2>4</F2>
  </Record>
</Table>
Posted by: Raphael Lalonde Lefebvre

Re: XML file structure - 04/19/10 09:18 AM

ricks,

PSM only handles very simple XML files. What Sander posted will work fine, but something like this will NOT work:
Code:
<Table>
  <Records>
    <Record>
      <F1>1</F1>
      <F2>2</F2>
    </Record>
    <Record>
      <F1>3</F1>
      <F2>4</F2>
    </Record>
  </Records>
  <Books>
    <Book>
      <Name>Classic Litterature</Name>
    </Book>
    <Book>
      <Name>Horror Novel</Name>
    </Book>
  </Books>
</Table>
To handle a file like this one, or any XML files that would be even more complex, PlanetPress 7 is much more desirable, as the support for XML files is much greater.

Regards,
Rapha
Posted by: Sander vd Berg

Re: XML file structure - 04/19/10 10:27 AM

Right, PSM6 would generate an error.

You can open it just fine in PSM7 without loss of data, but since XML support in PSM7 is currently limited to a single table the resulting dataset (combining Records and Books) is not particularly useful.
Posted by: ricks

Re: XML file structure - 04/19/10 12:03 PM

Thank you.