IMPORTANT ANNOUNCEMENT

These forums were permanently set to read-only mode on July 20, 2022. From that day onwards, no new posting or comment is allowed on the site, but the historical content remains intact and searchable.

A new location for posting questions about PlanetPress Suite is now available:

OL Learn - PlanetPress Classic (opens in new tab)

Topic Options
#33356 - 09/18/10 01:06 PM Create XML from a Design Document
Steve Kent - DFS Offline
OL User

Registered: 04/16/07
Posts: 61
Loc: West Sacramento, CA
I have a design document that creates a report with 10 fields on it. Is it possible to create and XML file with those same fields using the XML 'Index' option in the PlanetPress Image Properties?

Top
#33374 - 09/21/10 05:40 PM Re: Create XML from a Design Document [Re: Steve Kent - DFS]
-nth- Offline
OL Expert

Registered: 04/01/03
Posts: 236
Loc: Lincoln, NE
Steve,

I'm a bit rusty using this feature, but as I recall here's what you'll need to do...

In the design document make sure each field is a separate data selection. In the properties of each data selection, go to the "Archive/Email/Fax" section and check the Index box. Then type in the name of the index field you want for the data selection. Finally, select that XML index option in the Image task. When you test it, you should now get a separate XML file containing the index values.


Hope this helps,
-nth-

Top
#33398 - 09/23/10 02:52 PM Re: Create XML from a Design Document [Re: -nth-]
Steve Kent - DFS Offline
OL User

Registered: 04/16/07
Posts: 61
Loc: West Sacramento, CA
Thanks for the info - that got me most of the way there!

The 'top' part of the XML has the 'field definitions' like:
<Fields>
<Field>
<Name>File Name</Name>
<Size>255</Size>
</Field>
.
.
.
Then it actually lists the 'Page' information that I want:
<Pages>
<Page>
<File_Name>V3_09202010</File_Name>
<ProcessDate>09-22-2010</ProcessDate>
.
.
.

How do I get rid of the 'field definition' information @ the top of the XML?

Top
#33402 - 09/23/10 06:01 PM Re: Create XML from a Design Document [Re: Steve Kent - DFS]
-nth- Offline
OL Expert

Registered: 04/01/03
Posts: 236
Loc: Lincoln, NE
I don't think its' possible to modify the xml structure Image produces... is it possible to just work around the additional structure in whatever downstream system needs the xml?

Otherwise I think there are a couple other ways...

- For the brave of heart (or the already initiated) you may be able to feed that xml file back into a new process and use an "open XSLT" task to modify it... BUT I say "brave of heart" because XSLT doesn't appear very intuitive to figure out. (At least it's successfully frustrated most of my attempts at learning it) smile

- Or you may be able to feed the xml back into a new process and use a "xml splitter" task. In the properties of the splitter, have it split on the Page node and then "add new root node". This should get rid of the additional structure. I'm just thinking out loud on this one (I've never actually tried it), so I may be off base...

- Or I've successfully used the "Create File" task to build simple xml files. If the data selections are consistent, this may be the best way to go.


Hope this helps,
-nth-

Top
#33569 - 10/12/10 08:15 PM Re: Create XML from a Design Document [Re: -nth-]
Steve Kent - DFS Offline
OL User

Registered: 04/16/07
Posts: 61
Loc: West Sacramento, CA
got it - Thanks!

Top