Figure 4. Display XML Documents Inside a Browser. This article shows you how to build a pair of XML viewers: a local version for the desktop and an Internet version (the latter is shown here). You must take slightly different approaches when serving up XML documents over the Internet or through a local, desktop client. For example, the desktop version takes two parameters: one to represent the XML element to be added and another to represent the parent node ID. However, you can't use the second parameter in the Web version because the items you add are stored sequentially in the order you add them. You cannot tell the viewer to add an item and make it a child of the parent. |