The content of the documentation node is stored as node value in a text node child. The debugger does not tell you the truth if you use the Xerces in the (default) deferred mode. Only if you retrieve the children, the debugger will show the link.
regards, Harald -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Freitag, 19. April 2002 10:49 To: [EMAIL PROTECTED] Subject: How to get the value of xs:documentation schema Hi all, I've been using Xerces 1.4 and parsing and manipulating DOM without much trouble. I am bit lost when I tried to get value ("Comment describing your top element" as in the following schema) out of a <documentation> schema element. While examining the DOM Node interface for the xsd:documentation node using the debugger I found NamedNodeMap and ChildNode are null. Node.getNodeValue() also returns null. Following is a sample schema I'm trying to deal with. Any help will be very useful. Regards, Sheen <?xml version="1.0" encoding="UTF-8"?> <xsd:schema xmlns:xsd="http://www.w3.org/2000/10/XMLSchema" elementFormDefault="qualified"> <xsd:element name="TopElement"> <xsd:annotation> <xsd:documentation>Comment describing your top element</xsd:documentation> </xsd:annotation> <xsd:complexType> <xsd:sequence> <xsd:element name="Child1" type="xsd:string" /> <xsd:element name="Child2" type="xsd:string" /> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:schema> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
