Sign In/My Account | View Cart  
advertisement

Article:
 Non-Extractive Parsing for XML
Subject: not new... or usable
Date: 2004-05-20 14:09:14
From: jimmy_z
Response to: not new... or usable

Thanks for the question.


For a network device, loading XML in a byte array is usually needed for store and forward applications, and is less CPU-intensive than parsing in general.


Decoding on the fly is usually pretty simple, partly because most characters are ASCII ( I could be wrong, but that is my experience thus far)


To test equality of two UCS2 characters
String s1;
String s2;
if (s1.charAt(i) == s2.charAt(k))
{}


the code for testing the equality in "non-extractive" parsing is
String s1;
byte[] xml;
if (s1.charAt(i) == xml[k])
{
}


No Previous Message Previous Message Move up to Parent Message Up Next Message No Next Message


Titles Only Full Threads Newest First
  • not new... or usable
    2004-05-21 02:41:48 Brian Ewins [Reply]

    I'll bet you €1 that doesn't work. Nah, I'm feeling flush, lets make it £1.


Sponsored By: