|
Example for parsing XML message This web example shows how to search books. When the user types into the category textbox,a list of book categories is received that have names near to value of the category textbox. If the value of the category textbox is found,the books textbox will display all books of this category The screen below shows:
· User types category: j2ee · He receives a suggestion: J2EE · J2EE exists,the books textbox displays all books of the category including:Jboss server application,Oracle J2EE,IBM Websphere
In this example, we used HTTP messages between the web browser and web server as XML messages
There are three key points in using with:
· In client-side,build and send XML message · In server-side,parse received XML message and build to respond a new XML message · In client-side,parse the response XML message and update to DOM
|