Breaking News
Home / Tag Archives: XML

Tag Archives: XML

How to construct DOM and convert to XML?

¬† Constructing DOM (Document Object Model) to generate or represent XML is easy. The basic steps are as follows > Create the XML Document¬† object using the Document Builder Factory. >Build your model by adding nodes and attributes etc. in the hierarchical order > Once done, transform your XML Document …

Read More »

XML Parsing failing due Encoding not being UTF-8

Anyone who has works with XML a lot possibly would have encountered this XML parser error message such as “Invalid byte 2 of 2-byte UTF-8 sequence”. The main reason for this error is that, the XML Parser cannot parse the XML since it contains non UTF-8 encoded characters. The exception …

Read More »
Advertisment ad adsense adlogger