Hey guys,
I have this file generated by me... i want to create some HTML output from it.
The problem is that i am really confused about how do I go about reading the file.
The file is in the following format:
TID1 Name1 ATime=xx AResult=yyy AExpected=yyy BTime=xx BResult=yyy... (8 Replies)
Hi All,
Find the following code:
<Universal>D38x82j1JJ
</Universal>
I want to retrieve the value of <Universal> tag as below:
Please help me. (3 Replies)
I want to print from <fruits> to </fruits> tag which have <fruit> as mango. Also i want both <fruits> and </fruits> in output. Please help
eg.
<fruits>
<fruit id="111">mango<fruit>
.
another 20 lines
.
</fruits> (3 Replies)
Hi Guys
Here is my Input :
<?xml version="1.0" encoding="UTF-8"?>
<xn:MeContext id="01736">
<xn:VsDataContainer id="01736">
<xn:attributes>
<xn:vsDataType>vsDataMeContext</xn:vsDataType>
... (12 Replies)
I want to basically do the below thing. Suppose there is a tag called object1. I want to display an output for all similar tag values under heading of Object 1 and the count of the xmls. Please help
File:
<xml><object1>house</object1><object2>child</object2>... (9 Replies)
It's been a few years since this topic was last asked and answered.. curious whether anyone knows if the landscape has improved?
looking for a more modern release of OpenOffice / LibreOffice / etc than the OOo-3.3 version mentioned in earlier posts from 2012. Would prefer not to compile from... (1 Reply)
We have had a script here for years used to send files to other computers or to rcmd a command entered thru a prompt. A file we are looking for on the other computers will start with the same characters followed by -nnnnnn.txt. I can log into another computer and find (or not) that file, but not... (4 Replies)
Hi Forum.
I have an XML file with the following requirement to move the <AdditionalAccountHolders> tag and its content right after the <accountHolderName> tag within the same file but I'm not sure how to accomplish this through a Unix script.
Any feedback will be greatly appreciated.
... (19 Replies)
Discussion started by: pchang
19 Replies
LEARN ABOUT HPUX
xmstringunparse
XmStringUnparse(library call) XmStringUnparse(library call)
NAME
XmStringUnparse -- A compound string function that unparses text
SYNOPSIS
#include <Xm/Xm.h>
XtPointer XmStringUnparse(
XmString string,
XmStringTag tag,
XmTextType tag_type,
XmTextType output_type,
XmParseTable parse_table,
Cardinal parse_count,
XmParseModel parse_model);
DESCRIPTION
XmStringUnparse looks in the input string for text segments that are tagged with locale or charset tags that match tag. The tag_type param-
eter specifies whether the tag is a locale or charset type. If tag has a value of NULL, all the segments are matched. When a text segment
is found with a matching tag, it is added to the end of a resulting string. The characters in the resulting string are of type output_type.
XmStringUnparse also checks string for components that match components in parse_table, and also to see if the component matches the condi-
tion specified by parse_model. If the string component matches in both checks, then the associated character is added to the end of the
resulting string.
string Specifies the XmString to be converted.
tag Specifies the tag to be used in matching with text segments. Only text segments that match tag will be included in the resulting
string. If tag has a value of NULL, all segments are considered as matches, and tag_type is ignored.
tag_type Specifies the type of tag to be searched for, including XmMULTIBYTE_TEXT, XmWIDECHAR_TEXT, and XmCHARSET_TEXT.
output_type
Specifies the type of text to be returned in the string, including XmMULTIBYTE_TEXT, XmWIDECHAR_TEXT, and XmCHARSET_TEXT.
parse_table
Specifies the parse table to be used in scanning for compound string components to be converted to other characters.
parse_count
Specifies how many entries are in parse_table.
parse_model
Specifies which non-text components to be considered in matching in parse_table. These include:
XmOUTPUT_ALL
Puts out all matching components.
XmOUTPUT_BETWEEN
Puts out only those matching components that are between two matching text components.
XmOUTPUT_BEGINNING
Puts out only those matching components that are at the beginning of a matching text component.
XmOUTPUT_END
Puts out only those matching components that are at the end of a matching text component.
XmOUTPUT_BOTH
Puts out only those matching components that are at the beginning or end of a matching text component.
RETURN
Returns a newly allocated string containing characters of a type determined by output_type. The application is responsible for managing
this allocated space. The application can recover this allocated space by calling XtFree.
RELATED XmString(3), XmParseTable(3), XmParseMapping(3).
XmStringUnparse(library call)