Java Reference
In-Depth Information
<wx:wind units="MPH">
<wx:direction units="compass">ENE</wx:direction>
<wx:speed>5</wx:speed></wx:wind>
<wx:precipitation/>
<wx:text>
<wx:when time="today">
Mostly cloudy in the morning then becoming mostly sunny.
Patchy fog in the morning. Highs in the 70s to lower 80s.
Afternoon seabreeze 10 to 20 mph.
</wx:when>
<wx:when time="tonight">
Mostly clear except areas of low clouds and fog developing
overnight. Lows in the mid to upper 50s. Evening seabreeze
10 to 20 mph.
</wx:when>
</wx:text>
</wx:weather>
XML documents provide levels of validity; well-formed documents are those that
meet the syntactic requirements of XML itself, while valid documents meet additional
semantic constraints imposed by either users or another XML representation of a docu-
ment's semantics, such as an XML schema or XML Document Type Definition (DTD). In
practice, when using XML for the lightweight clients running on Java ME-enabled
devices, you will create and manipulate well-formed XML content while leaving true vali-
dation to the server and how you parse the XML itself.
Note In recent years, XML has been largely adopted as a panacea for data representation challenges,
with YAML and JSON as its close compatriots for web-based programming. There's still room, however, for
binary-based protocols such as Wireless Application Protocol (WAP) Binary XML (WBXML, the binary version
of XML the W3C details at http://www.w3.org/TR/wbxml/ ) and tag-based representations that provide
more compact representation of data, especially for applications running over slower networks or applica-
tions that charge a premium for data delivery.
Exploring XML Support for Web Services in Java ME
Using a web service from your Java ME application typically involves the following steps:
1. Your application presents a user interface.
2. As a result of some action that the user or application takes, the application must
make a web service request to a remote web service.
 
Search WWH ::




Custom Search