[Previous] [Contents] [Next]
Q&A
- Q I'm not sure if my code selects the right node. Is there a utility I can use?
- A On Microsoft's Web site you'll find in the Site Builder Workshop in the XML demos area the XML Tree viewer. This is a Web page for use with IE5 in which you can display a tree view of your XML files. An input field allows you to enter JavaScript code to select the node(s) you are after. The result of your input is shown in the tree view itself.
- Q I'm not succeeding in capturing the text content of a node.
- A Be sure to first capture the text node itself. If found, you'll use the nodeValue property of this text node to get at the content (text) itself.
- Q I have created a new element in my document but it doesn't appear.
- A Remember that in addition to creating a new element you have to add it to your document explicitly. Refer to the "insertBefore" or "appendChild" methods.
[Previous] [Contents] [Next]