How to specify metadata of XML file in PROFILING

This forum contains ProfileStage posts and now focuses at newer versions Infosphere Information Analyzer.

Moderators: chulett, rschirm

Post Reply
venki
Participant
Posts: 35
Joined: Wed Feb 28, 2007 5:09 am
Location: mumbai,

How to specify metadata of XML file in PROFILING

Post by venki »

--------------------------------------------------------------------------------




Hi,

I have another reqirement. Now Source file is XML.
How to read XML metadata into PROFILING.

I have an idea of reading flat files, for this we have created .txt and QETXT.INI files in particular folder.
Like that how to read XML metadta.

Can some one help me....


Thanks in advance.
venki
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

When you say "profiling," do you mean using "Information Analyzer?" ...if so, IA uses ODBC, so you would need a method to read XML via ODBC.......I've seen a few interesting methods here, including Federation Server, Data Direct and a few others........ however, if you have DS, I would expect you to be most successful by reading the xml structure with DS, picking out the specific bits that you want to profile, adjusting things manually as necessary (because XML comes in many flavors and is not conducive to ODBC), and putting them into a structure that you can more easily profile....

...if you are not talking about Information Analyzer, please be more specific.

Ernie
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
venki
Participant
Posts: 35
Joined: Wed Feb 28, 2007 5:09 am
Location: mumbai,

Post by venki »

I am using Information Analyzer (V8.0) only.

Can you please explain how to specify XML metadata into QETXT.INI file.

I have knowledge to specify fixed width files metadata (fileds) into QETXT.INI and import same into IA.

Can any one please assist me on this?

Thanks in advance


Regards,

Venkat.
venki
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

I'm not exactly sure what this .ini is, but I suspect that it is part of perhaps the DataDirect ODBC driver set? I have not personally used the DataDirect ODBC Driver for XML.....but have discussed it with others who have had difficulty using it. I'm sure it works, but it will probably require that you normalize the XML document, so pick and choose for simplicity only a single repeating node that will give you a set of rows. A complex document will probably need "many" tables to be defined.

At quick glance with a search engine, there are lots of resources on the web that talk about DataDirect's ODBC driver for XML. Let us know how it goes. In the meantime, if you decide to read it first with DataStage, or to define it with Federation Server, we'll be here. :)

Ernie
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
vmcburney
Participant
Posts: 3593
Joined: Thu Jan 23, 2003 5:25 pm
Location: Australia, Melbourne
Contact:

Post by vmcburney »

Do not try to define an XML file using QETXT as it's for delimited text files. You are much better off flattening the XML structure with DataStage into a database table. Info Analyser profiling works by looking at data as tables and columns - it will not handle the heirarchy of an XML file.
Post Reply