Highlighted
Super Contributor.. Per Bejder Super Contributor..
Super Contributor..
258 views

XML Flexconnector parsing problemes.

Hi 

 

I am developing a flexconnector for HMC console and in the logs there are multible lines with the same name <value>

It is always the first line that are being picked up. Is there a way to pick them all up? 

<event>
	<timestamp>2017-03-27T10:55:00+02:00</timestamp>
	<message id="673">
		<subvars>
			<value>HMCOper(192.168.119.10)</value>
			<value>2017-03-27 10:55:00 AM</value>
			<value>RSF Config Update</value>
		</subvars>
	<text>Starting remote support call 2017-03-27 10:55:00 AM for console HMCOper(192.168.119.10). Type: RSF Config Update.</text>
	</message>
</event>
<event>

 My properties file

hop.node.count=1
hop.node[0].name=auditlog
hop.node[0].expression=//console/auditdata/auditlog/event

trigger.node.expression=$auditlog/*[name()=("message","text","userId","sessionId")]
token.count=6
token[0].name=msgid
token[0].expression=$auditlog/message/@id
token[1].name=text
token[1].expression=$auditlog/message/text
token[2].name=userId
token[2].expression=$auditlog/authData/userId
token[3].name=sessionId
token[3].type=Long
token[3].expression=$auditlog/authData/sessionId
token[4].name=userUUId
token[4].expression=$auditlog/authData/userUUID
token[4].name=value1
token[4].expression=$auditlog/message/subvars/value

regards 

Per

 

Tags (2)
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.