Patent ID: 8336037

Claim:
A method for Client Native method Interface (CNI) minimizing eXtensible Mark up Language (XML) parsing of an XML document by a client code and an engine executed by a computing device, wherein the CNI comprises a Java Native method Interface, wherein the client code comprises Java code, comprising: (a) passing, by the computing device, the XML document and an empty array pair from the client code to the engine by making a CNI call; (b) parsing the XML document, and filling the empty array pair with fixed width elements resulting from the parsing, by the engine of the computing device; and (c) returning, by the computing device, the filled array pair from the engine to the client code, wherein the filled array pair comprises: a first array of elements comprising 16-bit Java characters; and a second array of elements comprising 32-bit XML token descriptors corresponding to the 16-bit Java characters in the first array.