I have an xml file with the structure:
where I want to parse each data pair in the this single file, so something like:
I don't know if I can make an awk loop with a FS of <>, or just use something like:
which works for an individual data pair, but I just don't know how to build the right loop.
Last edited by unclecameron; 12-21-2010 at 03:07 PM..
This User Gave Thanks to unclecameron For This Post:
I need to know the way. I have got parsing down some nodes. But I was unable to get the child node perfectly. If you have code please send it. It will be very useful for me. (0 Replies)
How can I parse file containing xml ?
I am sure that its best to use perl - but my perl is not very good - can someone help?
Example below contents of file containing the xml - I basically want to parse the file and have each field contained in a variable..
ie. I want to store the account... (14 Replies)
Hi,
I have the following file
Example.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<html><set label="09/07/29" value="1241.90"/>
</html>
Can any one help me in parsing this xml file
I want to retrive the attribute values of the tag set
Example I want to... (3 Replies)
Hello all,
Given the following extract from a xml file with multiple <JOB> .... </JOB> entries
<JOB
APPLICATION="APP"
APR="0"
AUG="0"
AUTHOR="AUT"
AUTOARCH="0"
CMDLINE="/tmp/test1 %%var"
CONFIRM="1"
CREATION_DATE="20100430"
CREATION_TIME="130739"
... (2 Replies)
INPUT SAMPLE
Symmetrix ID : 000192601507
Masking View Name : TS00P22_13E_1
Last updated at : 05:10:18 AM on Tue Mar 22,2011
Initiator Group Name : 10000000c960b9cd
Host Initiators
{
WWN : 10000000c960b9cd
}
Port Group Name :... (8 Replies)
we have a CSV which i need to convert to XML using Perl or Unix shell scripting.
I was able to build this XML in oracle database. However, SQL/XML query is running for long time. Hence, I'm considering to write a Perl or shell script to generate this XML file. Basically need to build this XML... (3 Replies)
We got data that was supposed to be CSV, but was sent in a huge XML file.
I've downloaded xmlstarlet, but I'm darned if I can get it to operate the "sel" feature to look down a path and get any sort of value. I see pieces of what should be paths, but they seem to have extraneous characters, and... (7 Replies)
HI
I want to split file base on tag name.
I have few header and footer on file
<?xml version="1.33" encing="UTF-8"?>
<bulkCmConfigDataFile"
<xn:SubNetwork id="ONRM_ROOT">
<xn:MeContext id="PPP04156">
... (4 Replies)
Discussion started by: pareshkp
4 Replies
LEARN ABOUT DEBIAN
m17ndatabase
Database(3m17n) The m17n Library Database(3m17n)NAME
Database - The m17n database and API for it.
Typedefs
typedef struct MDatabase MDatabase
Type of database.
Functions
MDatabase * mdatabase_find (MSymbol tag0, MSymbol tag1, MSymbol tag2, MSymbol tag3)
Look for a data in the database.
MPlist * mdatabase_list (MSymbol tag0, MSymbol tag1, MSymbol tag2, MSymbol tag3)
Return a data list of the m17n database.
MDatabase * mdatabase_define (MSymbol tag0, MSymbol tag1, MSymbol tag2, MSymbol tag3, void *(*loader)(MSymbol *, void *), void *extra_info)
Define a data of the m17n database.
void * mdatabase_load (MDatabase *mdb)
Load a data from the database.
MSymbol * mdatabase_tag (MDatabase *mdb)
Get tags of a data.
Variables
char * mdatabase_dir
Directory for application specific data.
Detailed Description
The m17n database and API for it.
The m17n library acquires various kinds of information from data in the m17n database on demand. Application programs can also add/load
their original data to/from the m17n database by setting the variable mdatabase_dir to an application-specific directory and storing data
in it. Users can overwrite those data by storing preferable data in the directory specified by the environment variable 'M17NDIR', or if it
is not set, in the directory '~/.m17n.d'.
The m17n database contains multiple heterogeneous data, and each data is identified by four tags; TAG0, TAG1, TAG2, TAG3. Each tag must be
a symbol.
TAG0 specifies the type of data stored in the database as below.
o If TAG0 is Mchar_table, the data is of the chartable type and provides information about each character. In this case, TAG1 specifies the
type of the information and must be Msymbol, Minteger, Mstring, Mtext, or Mplist. TAG2 and TAG3 can be any symbols.
o If TAG0 is Mcharset, the data is of the charset type and provides a decode/encode mapping table for a charset. In this case, TAG1 must be
a symbol representing a charset. TAG2 and TAG3 can be any symbols.
o If TAG0 is neither Mchar_table nor Mcharset, the data is of the plist type. See the documentation of the mdatabase_load() function for
the details. In this case, TAG1, TAG2, and TAG3 can be any symbols.
The notation <TAG0, TAG1, TAG2, TAG3> means a data with those tags.
Application programs first calls the mdatabase_find() function to get a pointer to an object of the type MDatabase. That object holds
information about the specified data. When it is successfully returned, the mdatabase_load() function loads the data. The implementation of
the structure MDatabase is concealed from application programs.
Typedef Documentation
typedef struct MDatabase MDatabase
Type of database. The type MDatabase is for a database object. Its internal structure is concealed from an application program.
Variable Documentation
char* mdatabase_dir
Directory for application specific data. If an application program wants to provide a data specific to the program or a data overriding
what supplied by the m17n database, it must set this variable to a name of directory that contains the data files before it calls the macro
M17N_INIT(). The directory may contain a file 'mdb.dir' which contains a list of data definitions in the format described in mdbDir(5).
The default value is NULL.
Author
Generated automatically by Doxygen for The m17n Library from the source code.
COPYRIGHT
Copyright (C) 2001 Information-technology Promotion Agency (IPA)
Copyright (C) 2001-2011 National Institute of Advanced Industrial Science and Technology (AIST)
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License
<http://www.gnu.org/licenses/fdl.html>.
Version 1.6.2 12 Jan 2011 Database(3m17n)