UNIX script to validate the export of a XML-formatted mapping


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting UNIX script to validate the export of a XML-formatted mapping
# 1  
Old 03-27-2013
UNIX script to validate the export of a XML-formatted mapping

Can any one please share a unix script for validating the export of a mapping which is in XML format

Any help would be great for me.

Thanks

Last edited by fpmurphy; 03-27-2013 at 10:18 PM..
# 2  
Old 03-27-2013
XML parse and validation is not a shell task, probably not even awk but PERL, C++, JAVA. Look for a bland xml validator first. Then write a simple (sed or awk) reformatter if the data does not have a handy line orientation. I assume the content is a roughly rectangular matrix. Finally, what constitutes a valid mapping?
# 3  
Old 03-28-2013
Yes, the mapping should be a valid one and the naming conventions should should be as per the standard codes. That is basically the script should check the XML file and validate the naming conventions of all the objects in the mapping.
# 4  
Old 03-28-2013
Quote:
Originally Posted by sampoorna
Yes, the mapping should be a valid one and the naming conventions should should be as per the standard codes. That is basically the script should check the XML file and validate the naming conventions of all the objects in the mapping.
Where are these "naming conventions" defined? Where are "the standard codes" defined?

It is simple enough to check that the XML file is well-formed and valid. It is far more difficult to check that the XML conforms to some schema, i.e. the permitted content of the XML file. For that you need an XML schema, a RelaxNG schema or any other of the various XML schema languages that are available.
# 5  
Old 03-28-2013
Yes, for schema type checking, you need a tool that is XSD capable, and the XSD of the file. JAVA and C++ parsers can take the XSD optionally and check XML streams as they flow and xml complete object once they arrive, but it slows processing, so we didn't! Smilie We did our own, limited checking, enough to ensure things were stable.

XSD just says the container and payload are legal, but to validate it against most business data rules is outside that: uniqueness, external relational and cross field edits, inter-record dependencies, etc.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Data export UNIX shell script

Hi, I want to write a shell script which connect to my database with the following credentials : User name : user PWD : rap_user_1 Hostname : app.Unix.Gsm1900.Org Port : 7862 SID : PTNC1 Once connected to DB i want to fetch data with the help of a SQL statement and expoet... (4 Replies)
Discussion started by: neeraj617
4 Replies

2. Shell Programming and Scripting

Validate xml agaist xsd is ksh

how do i validate xml agaist xsd is ksh? (1 Reply)
Discussion started by: LiorAmitai
1 Replies

3. Shell Programming and Scripting

XMLLINT COMMAND IN UNIX TO VALIDATE XML AGAINST XSD

Hi i am baby to unix shell script. how do i validate xml agaist xsd and transforms xml using xslt. Thanks Mohan (2 Replies)
Discussion started by: mohan.cheepu
2 Replies

4. Shell Programming and Scripting

I need script to get xml access export from source server

Hi, I need a shell script to create to get XML access export from the source server. Thanks in Advance (3 Replies)
Discussion started by: bcb
3 Replies

5. Shell Programming and Scripting

Mapping name into unix script

Hi, How do i call a mapping name and workflow name of an informatica tool in the unix script inorder to execute the mapping. It would be great if any one of u help me in getting a mapping name in a unix script. Thanks in advance (0 Replies)
Discussion started by: raji35
0 Replies

6. Shell Programming and Scripting

Can any one share a unix script for validating the export of a mapping which is in XM

Hi, Can any one share a unix script for validating the export of a mapping which is in XML format. like my requirment is that when ever we are migrating the mappings or wokflows from development to QA we will take the export of that mapping into an XML file.Insted of reviewing the mapping... (1 Reply)
Discussion started by: perlamohan
1 Replies

7. UNIX for Advanced & Expert Users

Can any one share a unix script for validating the export of a mapping which is in XM

Hi, Can any one share a unix script for validating the export of a mapping which is in XML format. like my requirment is that when ever we are migrating the mappings or wokflows from development to QA we will take the export of that mapping into an XML file.Insted of reviewing the mapping... (1 Reply)
Discussion started by: perlamohan
1 Replies

8. UNIX for Dummies Questions & Answers

Call unix script through informatica mapping

hi, i want to call unix script from transformations used in informatica mapping? can we do it in any way? Please reply ASAP. We cant use Storep procedure transformation Thanks in Advance nishith (0 Replies)
Discussion started by: Nishithinfy
0 Replies

9. UNIX for Dummies Questions & Answers

Export xml to windows machine

Hi, i am a real dummy about unix. i need your suggestions about an issue. my problem is that i have a oracle db on unix machine. i will create a procedure on that database which will produce an xml file. however, i need to place this xml to a windows machine and want to make it with pl/sql... (1 Reply)
Discussion started by: merope
1 Replies

10. Shell Programming and Scripting

unix script to export data from csv file to oracle database

Hello people, Need favour. The problem I have is that, I need to develop a unix shell script that performs recurring exports of data from a csv file to an oracle database. Basically, the csv file contains just the first name and last name will be dumped to an Unix server. The data from these... (3 Replies)
Discussion started by: vinayagan
3 Replies
Login or Register to Ask a Question