Hi Everyone,
I have a file with the below content:
File1.txt
======
###
###==> the below table was created for testing1 purpose;
###
create table 123
(
field1 date,
field2 char(10)
primary key(field1)
);
###
###==> the below table was created... (5 Replies)
Please help me on this.....
i have a file which has following content:
<IPCoreProducerConfig>
<Producer>
<config>
<key>machineId</key>
<value>machine1</value>
</config>
<config>
... (4 Replies)
Hi,
My requirement is to find a text and replace it with another in a XML file.
I am new to Unix,Please provide some suggestion to achieve.
Find:
<Style ss:ID="ColumnHeader1">
Replace with:
<Style ss:ID="ColumnHeader1">
<Borders>
<Border ss:Position="Bottom"... (4 Replies)
I'm using Mail::Internet module, which will basically filter through email content and extract the body of the message
my perl script to extract the body of the email
#!/usr/bin/perl -w
use Mail::Internet;
@lines = <STDIN>;
$mi_obj = new Mail::Internet();
... (2 Replies)
I have an input file with contents like:
./prbru6/12030613.LOG:24514|APPL|prbru6.8269.RTUDaemon.1|?|13:49:56|12/03/06|GMT+3|?|RTUServer Error:Count of Internal Error Qty (-1) < 0, for Audit group id - 1L5XVJ6DQE36AXL, after record number,1, File: EventAuditor.cc, Line: 394|? ... (5 Replies)
I need to create a xml file(master.xml) with contents from another xml files(children). I have below list of xml files in a temporary location (C:/temp/xmls)
1. child1.xml
2. child2.xml
Below is the content of the child1.xml & child2.xml files,
child1.xml
<root>
<emp>
... (3 Replies)
Hello All,
Hope you are doing well!!!!!
I have a small code in the below format in xml file:
<UML:ModelElement.taggedValue>
<UML:TaggedValue tag="documentation" value="This sequence

HLD_EA_0001X
HLD_DOORS_002X"/>
<UML:TaggedValue tag="documentation" value="This... (11 Replies)
I have an xml file with header as below.
<Provider xmlns="http://www.xyzx.gov/xyz" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.xyzx.gov/xyz xyz.xsd" SCHEMA_VERSION="2.5" PROVIDER="5">
I want to get the schema version here that is 2.5 and put in a... (7 Replies)
Discussion started by: Ariean
7 Replies
LEARN ABOUT LINUX
xmerl
xmerl(3erl) Erlang Module Definition xmerl(3erl)NAME
xmerl - Functions for exporting XML data to an external format.
DESCRIPTION
Functions for exporting XML data to an external format.
EXPORTS
callbacks(Module) -> Result
Types Module = atom()
Result = [atom()]
Find the list of inherited callback modules for a given module.
export(Content, Callback) -> ExportedFormat
Equivalent to export(Data, Callback, []) .
export(Content, Callback, RootAttributes) -> ExportedFormat
Types Content = [Element]
Callback = atom()
RootAttributes = [XmlAttributes]
Exports normal, well-formed XML content, using the specified callback-module.
Element is any of:
* #xmlText{}
* #xmlElement{}
* #xmlPI{}
* #xmlComment{}
* #xmlDecl{}
(See xmerl.hrl for the record definitions.) Text in #xmlText{} elements can be deep lists of characters and/or binaries.
RootAttributes is a list of #xmlAttribute{} attributes for the #root# element, which implicitly becomes the parent of the given Con-
tent . The tag-handler function for #root# is thus called with the complete exported data of Content . Root attributes can be used
to specify e.g. encoding or other metadata of an XML or HTML document.
The Callback module should contain hook functions for all tags present in the data structure. A hook function must have the follow-
ing format:
Tag(Data, Attributes, Parents, E)
where E is the corresponding #xmlElement{} , Data is the already-exported contents of E and Attributes is the list of #xmlAt-
tribute{} records of E . Finally, Parents is the list of parent nodes of E , on the form [{ParentTag::atom(), ParentPosition::inte-
ger()}] .
The hook function should return either the data to be exported, or a tuple {'#xml-alias#', NewTag::atom()} , or a tuple {'#xml-rede-
fine#', Content} , where Content is a content list (which can be on simple-form; see export_simple/2 for details).
A callback module can inherit definitions from other callback modules, through the required function '#xml-interitance#() -> [Modu-
leName::atom()] .
See also: export/2 , export_simple/3 .
export_content(Es::Content, Callbacks) -> term()
Types Content = [Element]
Callback = [atom()]
Exports normal XML content directly, without further context.
export_element(E, CB) -> term()
Exports a normal XML element directly, without further context.
export_element(E, CallbackModule, CallbackState) -> ExportedFormat
For on-the-fly exporting during parsing (SAX style) of the XML document.
export_simple(Content, Callback) -> ExportedFormat
Equivalent to export_simple(Content, Callback, []) .
export_simple(Content, Callback, RootAttrs::RootAttributes) -> ExportedFormat
Types Content = [Element]
Callback = atom()
RootAttributes = [XmlAttributes]
Exports "simple-form" XML content, using the specified callback-module.
Element is any of:
* {Tag, Attributes, Content}
* {Tag, Content}
* Tag
* IOString
* #xmlText{}
* #xmlElement{}
* #xmlPI{}
* #xmlComment{}
* #xmlDecl{}
where
* Tag = atom()
* Attributes = [{Name, Value}]
* Name = atom()
* Value = IOString | atom() | integer()
Normal-form XML elements can thus be included in the simple-form representation. Note that content lists must be flat. An IOString
is a (possibly deep) list of characters and/or binaries.
RootAttributes is a list of:
* XmlAttributes = #xmlAttribute{}
See export/3 for details on the callback module and the root attributes. The XML-data is always converted to normal form before
being passed to the callback module.
See also: export/3 , export_simple/2 .
export_simple_content(Content, Callback) -> term()
Exports simple XML content directly, without further context.
export_simple_element(Content, Callback) -> term()
Exports a simple XML element directly, without further context.
AUTHORS
<>
xmerl 1.2.8 xmerl(3erl)