Tag Archives: XML

Streaming XML content parsing with StAX

Today, one of our community members posted a deviously simply XML format on the forum that needed to be parsed.  The format looks like this: <RESPONSE> <EXPR>USD</EXPR> <EXCH>GBP</EXCH> <AMOUNT>1</AMOUNT> <NPRICES>1</NPRICES> <CONVERSION> <DATE>Fri, 01 Jun 2001 22:50:00 GMT</DATE> <ASK>1.4181</ASK> <BID>1.4177</BID> </CONVERSION> <EXPR>USD</EXPR> <EXCH>JPY</EXCH> <AMOUNT>1</AMOUNT> <NPRICES>1</NPRICES> <CONVERSION> <DATE>Fri, 01 Jun 2001 22:50:02

E4X : XML tweaking

One of the lesser known features of Pentaho Data Integration 3.1 was the inclusion of E4X a.k.a EMCAScript for XML.  Up until recently I didn’t really have time to look more closely to the details behind it.  Today someone asked how to set an attribute in an XML string using