XML

XML is a markup language that enables you to create your own tags to describe your data. XML is a popular way to share data between applications.CLICK HERE To solve more code-related solutions you face every day.

Sort XML child nodes by date field in Groovy Script

def body=”’ <PerPerson> <employmentNav> <EmpEmployment> <jobInfoNav> <EmpJob> <event>10206</event> <userId>abc123</userId> <eventReason>RH</eventReason> <startDate>2020-10-05T00:00:00.000</startDate> </EmpJob> <EmpJob> <event>10186</event> <userId>abc123</userId> <eventReason>RL</eventReason> <startDate>2020-03-11T00:00:00.000</startDate> </EmpJob> <EmpJob> <event>10203</event> <userId>abc123</userId> <eventReason>HN</eventReason> <startDate>2019-12-16T00:00:00.000</startDate> </EmpJob> <EmpJob> <event>10190</event> <userId>abc123</userId> <eventReason>Z1</eventReason> <startDate>2020-06-13T00:00:00.000</startDate> </EmpJob> …

Sort XML child nodes by date field in Groovy Script Read More »

is it possible to change class on p or div with xslt?

You could do it simply like this : <?xml version=”1.0″ encoding=”UTF-8″?> <xsl:stylesheet xmlns:xsl=”http://www.w3.org/1999/XSL/Transform” version=”1.0″> <xsl:output method=”xml” indent=”yes”/> <xsl:template match=”@*|node()”> <xsl:copy> <xsl:apply-templates select=”@*|node()”/> </xsl:copy> </xsl:template> <xsl:template match=”@class[.=’brodtext’ and parent::P]”> <xsl:attribute name=”class”>normal</xsl:attribute> …

is it possible to change class on p or div with xslt? Read More »

Scroll to Top