well as im doing this in a script..how do i write this out...
#!/bin/sh
..
..
#i wrote this:
echo `sed -e '/filecopy/ !d' -e 's!<filecopy>\([^<]*\)</filecopy>!\1!' filereader.xml`
No need for the echo and backticks....
Just do
Then if that doesn't work check the path to the file.
well i have this xml file here: this file is called filereader.xml
<?xml version="1.0" encoding="UTF-8"?>
<file>
<file1>
<filecopy>/new/test/thefile.txt</filecopy>
<filecopy>/new/test/thefile2.ppt</filecopy>
</file1>
</file>
i need to write the script that search for the Bold text... (2 Replies)
Hey,
I need to parse the following XML to just grab the Customer ID.
Is there any RegEx that can achieve this ?
So in this example, the script just return 0000109654, as the output.
Even if it involves awk, sed please let me know.
************
<?xml version="1.0" encoding="UTF-8"?>... (1 Reply)
Hi all,
i have an xml file with this fomat(exactly) :
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE TestSuite SYSTEM "../../CallCrt.dtd">
<TestSuite description="Diameter">
<FileReference FileName="DMI_FC01.xml"/>
<!--<FileReference FileName="DMI_FC02.xml"/>
-->... (1 Reply)
Hi, I would need to read an xml element from an xml file to a local variable. Please could you help me with a shell script to get so? Considering that I have a file called file.xml like below:
<header>
<description>This is the description</description>
<content>This is the... (2 Replies)
Hi,
Iam new to shell scripting.I have below urgent requirement
I want to read attributes (transaction,documentmode) in xml tag with shell scripting and create a filename with these attribues
Xml :
<PURCHASE_10 partner="food" version="1.50" timestamp="2009-03-10T09:56:55"... (3 Replies)
I want to check if every <Part> element has corresponding <Description> in this sample XML.
....<Lot Of XML>
<Inv lineNumber="2">
<Item>
... (4 Replies)
Hi,
I have an XMl file, below is sample:
<TRANSFORMATION DESCRIPTION ="Created by:- " NAME ="LKP_FT_T_FILEK" OBJECTVERSION ="1" REUSABLE ="YES" TYPE ="Lookup Procedure" VERSIONNUMBER ="1">
</TRANSFORMATION>
I need to read the tag, and if the tag is TRANSORMATION, i want to check the Type... (6 Replies)
hi guys, i want help... Reding XML file and print the values into the text file using linux shell script file as per below xml file
<sequence>
<Filename>aldorzum.doc</Filename>
<DivisionCode>US</DivisionCode>
<ContentType>Template</ContentType>
<ProductCode>VIMZIM</ProductCode>
</sequence>... (1 Reply)
Hello Team,
I have 2 files.one contains english text and another contains Japanese. so i have to read english text and replace the text with Japanesh text in third file.
Basically, I need a help to write japanese language in text/xml file.I heard wstring does this.Not sure how do i write... (2 Replies)
Discussion started by: SA_Palani
2 Replies
LEARN ABOUT DEBIAN
html::widget::container
HTML::Widget::Container(3pm) User Contributed Perl Documentation HTML::Widget::Container(3pm)NAME
HTML::Widget::Container - Container
SYNOPSIS
my $container = $form->element('foo');
my $field = $container->field;
my $error = $container->error;
my $label = $container->label;
my $field_xml = $container->field_xml;
my $error_xml = $container->error_xml;
my $javascript_xml = $container->javascript_xml;
my $xml = $container->as_xml;
# $xml eq "$container"
my $javascript = $container->javascript;
DESCRIPTION
Container.
METHODS
as_xml
Return Value: $xml
_build_element
Arguments: $element
Return Value: @elements
Convert $element to HTML::Element object. Accepts arrayref.
If you wish to change the rendering behaviour of HTML::Widget; specifically, the handling of elements which are array-refs, you can specify
"container_class" in HTML::Widget::Element to a custom class which just overrides this function.
build_single_element
Arguments: $element
Return Value: $element
Convert $element to HTML::Element object.
Called by "_build_element".
If you wish to change the rendering behaviour of HTML::Widget; specifically, the handling of an individual element, you can override this
function.
build_element_error
Arguments: $element
Return Value: $element
Called by "build_single_element".
If you wish to change how an error is rendered, override this function.
build_element_label
Arguments: $element, $class
Return Value: $element
Called by "build_single_element".
If you wish to change how an element's label is rendered, override this function.
The $class argument is the original class of the element, before "build_element_error" was called.
as_list
Return Value: @elements
Returns a list of HTML::Element objects.
element
field
Arguments: $element
"field" is an alias for "element".
element_xml
field_xml
Return Value: $xml
"field_xml" is an alias for "element_xml".
error
Arguments: $error
Return Value: $error
error_xml
Return Value: $xml
javascript
js
Arguments: $javascript
Return Value: $javascript
"js" is an alias for "javascript".
javascript_element
Return Value: $javascript_element
Returns javascript in a script HTML::Element.
javascript_xml
js_xml
Return Value: $javascript_xml
Returns javascript in a script block.
"js_xml" is an alias for "javascript_xml".
AUTHOR
Sebastian Riedel, "sri@oook.de"
LICENSE
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.1 2007-03-01 HTML::Widget::Container(3pm)