Focal Point
[SOLVED]Generate an output in XML format

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/1687056516

January 20, 2012, 11:01 AM
arsagg
[SOLVED]Generate an output in XML format
Hi all,

I did an exhaustive search in the forum but couldn't find a way out on how to generate an output in FOCUS in XML format. Sounds easy but I have messed up my concepts.

Any suggestions?

Thanks

This message has been edited. Last edited by: arsagg,


FOCUS 7.6.11
Windows, Excel, LOTUS, ALPHA
January 20, 2012, 12:18 PM
Dan Satchell
Maybe this? ON TABLE PCHOLD/HOLD/SAVE FORMAT XML

This message has been edited. Last edited by: Dan Satchell,
January 20, 2012, 01:11 PM
ABT
I suspect if you have found the 'ON TABLE HOLD FORMAT XML' command and decided it does not satisfy your needs, your real question is how to generate custom XML output. If so, you have to manually massage your output. See this thread (https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/7237006016) particularly the link at the bottom.

+1 Dan. A rudimentary Google search (https://www.google.com/search?channel=fs&q=webfocus+xml+output&ie=utf-8&oe=utf-8) pulls up this link (https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/5051016752) as the first result.

Also, I know the Forum search sucks (it's really no secret), but searching for 'XML output' also brings this thread (https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/3821008331?r=1281046832) up on the first page. Both threads confirm what Dan and I are again writing here.


------------------------------------
WF Environment:
------------------------------------
Server/Client, ReportCaster, Dev Studio: 7.6.11
Resource Analyzer, Resource Governor, Library, Maintain, InfoAssist
OS: Windows Server 2003
Application/Web Server: Tomcat 5.5.25
Java: JDK 1.6.0_03
Authentication: LDAP, MRREALM Driver
Output: PDF, EXL2K, HTM

------------------------------------
Databases:
------------------------------------
Oracle 10g
DB2 (AS/400)
MSSQL Server 2005
Access/FoxPro
January 22, 2012, 08:18 AM
arsagg
Dear Dan and ABT,

I accompplished my objective. Thanks for your replies.

Regards.


FOCUS 7.6.11
Windows, Excel, LOTUS, ALPHA
January 23, 2012, 10:31 AM
Clif
There's more than one way to represent the same data in XML.

While HOLD FORMAT XML creates an XML document of the FOCUS report with DataMigrator you can create XML with name/value pairs which may be more useful.

<record>
 <column name="COUNTRY">ENGLAND</column>
 <column name="CAR">JAGUAR</column>
 <column name="MODEL">V12XKE AUTO</column>
</record> 


However it's been my experience that when XML output is needed it's in a specific pre-defined format. From the DMC or WC you can create a synonym for an xsd (XML Schema Definition), a DTD or an XML document. Then with DataMigrator you can map to that structure to create XML as required.


N/A