Topic Options
#24734 - 04/17/10 02:09 PM XML file structure
ricks Offline
OL User

Registered: 04/17/10
Posts: 96
Loc: Seattle
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

Top
#24735 - 04/18/10 04:05 AM Re: XML file structure
Sander vd Berg Offline
OL Expert

Registered: 06/10/08
Posts: 197
Loc: Objectif Lune NL
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>

Top
#24736 - 04/19/10 09:18 AM Re: XML file structure
Raphael Lalonde Lefebvre Online   content
OL Expert

Registered: 10/14/05
Posts: 4953
Loc: Objectif Lune Montreal
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

Top
#24737 - 04/19/10 10:27 AM Re: XML file structure
Sander vd Berg Offline
OL Expert

Registered: 06/10/08
Posts: 197
Loc: Objectif Lune NL
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.

Top
#24738 - 04/19/10 12:03 PM Re: XML file structure
ricks Offline
OL User

Registered: 04/17/10
Posts: 96
Loc: Seattle
Thank you.

Top