Any one can help
Example having an spml output as below (the complete one has more than 10000 tags):
=============
<ts11>
<msisdn>123</msisdn>
<bcieID>TELEPHON</bcieID>
</ts11>
<ts21>
<msisdn>987</msisdn>
</ts21>
... =======
I want to have every tag closed in one line
... (10 Replies)
Hi All,
I'm stuck with adding multiple lines(irrespective of line number) to a file before a particular xml tag. Please help me.
<A>testing_Location</A>
<value>LA</value>
<zone>US</zone>
<B>Region</B>
<value>Russia</value>
<zone>Washington</zone>
<C>Country</C>... (0 Replies)
Hello,
I have the following variables set in my env
echo $MY_XSD_FILE
/home/jak/sample.xsd
echo $MY_INTERVAL_VALUE
4
I want to insert them between the xml tags in my xml file
cat sample.xml
:::::::::::::::
:::::::::::::::
<property name="FILE"></property>
:::::::::::::::::::::::... (2 Replies)
Hi,
i have an xml file and i want to edit a new sub node in a file
like
val="<activity android:label="@string/app_name" android_name=".MainActivity1" android:launchMode="singleTask" android:screenOrientation="portrait"
... (1 Reply)
I've got two different files and want to compare them.
File 1 :
HTML Code:
<response ticketId="944" type="getQueryResults"><status>COMPLETE</status><description>Query results fetched successfully</description><recordSet totalCount="1" type="sms_records"><record... (1 Reply)
Hi ,
I have a below xml:
<ns:Body>
<ns:result>
<Date Month="June" Day="Monday:/>
</ns:result>
</ns:Body>
i have a lookup abc.txtt text file with below details
Month June July August
Day Monday Tuesday Wednesday
I need a output xml with below tags
<ns:Body>
<ns:result>... (2 Replies)
I have an xml like below and wanted to insert a new line between end of the tag and start of the new tag.
<partyaddress><addressline1>gandhi stree</addressline1><city>hyderbad</city><state>AP</state><addressline1>xyz stree</addressline1><city>bangalore</city><state>Karnataka</state>... (6 Replies)
I would like search and find a word (easily identified by 'key') from an xml file and then cut all of the tags out of the resulting line (anything between a < and a >) and display the remaining material. I am running Debian and mksh shell.
dictionary.sh:
#!/bin/sh
key='key="'$1'"><form'... (3 Replies)
I'm searching for the names of a TV show in the XML file I've attached at the end of this post. What I'm trying to do now is pull out/list the data from each of the <SeriesName> tags throughout the document. Currently, I'm only able to get data the first instance of that XML field using the... (9 Replies)
Discussion started by: hungryd
9 Replies
LEARN ABOUT DEBIAN
sru::response::searchretrieve
SRU::Response::SearchRetrieve(3pm) User Contributed Perl Documentation SRU::Response::SearchRetrieve(3pm)NAME
SRU::Response::SearchRetrieve - A class for representing SRU searchRetrieve responses
SYNOPSIS
## create response from the request object
my $response = SRU::Response::SearchRetrieve->new( $request );
## add records to the response
foreach my $record ( @records ) { $response->addRecord( $record ); }
## print out the response as XML
print $response->asXML();
DESCRIPTION
SRU::Response::SearchRetrieve provides a framework for bundling up the response to a searchRetrieve request. You are responsible for
generating the XML representation of the records, and the rest should be taken care of.
METHODS
new()
numberOfRecords()
Returns the number of results associated with the object.
addRecord()
Add a SRU::Response::Record object to the response.
$response->addRecord( $r );
If you don't pass in the right sort of object you'll get back undef and $SRU::Error will be populated appropriately.
records()
Gets or sets all the records associated with the object. Be careful with this one :) You must pass in an array ref, and expect an array ref
back.
resultSetId()
resultSetIdleTime()
nextRecordPosition()
diagnostics()
extraResponseData()
echoedSearchRetrieveRequest()
asXML()
asXML(encoding=>"ISO-8859-1")
Returns the object serialized as XML. UTF-8 and UTF-16 are default encodings if you don't pass the encoding parameter. You can define
different encoding in order to parse you XML document correctly.
perl v5.12.4 2009-11-20 SRU::Response::SearchRetrieve(3pm)