Re: How to check for null vaues in an XML String using java
praveen kumar <[email protected]> Thu, 9 Dec 2004 05:28:30 -0800
| Newsgroups | gmane.comp.java.sun.xml.general |
|---|---|
| Message-ID | <[email protected]> |
--0-2026895802-1102598910=:46174 Content-Type: text/plain; charset=us-ascii Hi Elliott, <Name>Ram</Name><Address>xyz</Address><MRN/> words in BOLD are Elements(Node Name) words in Italics and words are Element values(Node Values) Here Nodes (Name and Address) are having Values(Ram and xyz ) But MRN does not have a Nodevalue. How do I find whether MRN is having value or not. Regards Praveen Kumar Elliotte Harold <[email protected]> wrote: praveen kumar wrote: > Hi Elliott, > ok what ever u may call. > I meant an element having NO value. > I need to find the element having no value. First you have to define what you mean by the value of an element. Then you have to figure out which API you're using. There are many. -- Elliotte Rusty Harold [email protected] XML in a Nutshell 3rd Edition Just Published! http://www.cafeconleche.org/books/xian3/ http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim ----------------------------------------------------- xml-interest: A list for discussing XML technologies in the Java Platform. To post, mailto:[email protected] Archives at: http://archives.java.sun.com/xml-interest.html To unsubscribe, mailto:[email protected] the following message; signoff xml-interest. --------------------------------- Do you Yahoo!? The all-new My Yahoo! What will yours do? ----------------------------------------------------- xml-interest: A list for discussing XML technologies in the Java Platform. To post, mailto:[email protected] Archives at: http://archives.java.sun.com/xml-interest.html To unsubscribe, mailto:[email protected] the following message; signoff xml-interest. --0-2026895802-1102598910=:46174 Content-Type: text/html; charset=us-ascii <DIV>Hi Elliott,</DIV> <DIV> </DIV> <DIV><<STRONG>Name</STRONG>><EM><U>Ram</U></EM></<STRONG>Name</STRONG>><<STRONG>Address</STRONG>><EM><U>xyz</U></EM></<STRONG>Address</STRONG>><<STRONG>MRN</STRONG>/></DIV> <DIV> </DIV> <DIV>words in BOLD are <STRONG>Elements(Node Name)</STRONG></DIV> <DIV>words in Italics and words are <EM><U>Element values(Node Values)</U></EM></DIV> <DIV><EM><U></U></EM> </DIV> <DIV>Here Nodes (Name and Address) are having Values(Ram and xyz )</DIV> <DIV> </DIV> <DIV><STRONG>But MRN does not have a Nodevalue.</STRONG></DIV> <DIV><STRONG></STRONG> </DIV> <DIV><STRONG>How do I find whether MRN is having value or not.</STRONG></DIV> <DIV><STRONG></STRONG> </DIV> <DIV><STRONG></STRONG> </DIV> <DIV><STRONG>Regards</STRONG></DIV> <DIV><STRONG>Praveen Kumar</STRONG></DIV> <DIV><BR><BR><B><I>Elliotte Harold <[email protected]></I></B> wrote:</DIV> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">praveen kumar wrote:<BR><BR>> Hi Elliott,<BR>> ok what ever u may call.<BR>> I meant an element having NO value.<BR>> I need to find the element having no value.<BR><BR>First you have to define what you mean by the value of an element. Then<BR>you have to figure out which API you're using. There are many.<BR><BR>--<BR>Elliotte Rusty Harold [email protected]<BR>XML in a Nutshell 3rd Edition Just Published!<BR>http://www.cafeconleche.org/books/xian3/<BR>http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim<BR><BR>-----------------------------------------------------<BR>xml-interest: A list for discussing XML technologies in the Java Platform.<BR>To post, mailto:[email protected]<BR>Archives at: http://archives.java.sun.com/xml-interest.html<BR>To u nsubscribe, mailto:[email protected] the following message;<BR>signoff xml-interest.<BR></BLOCKQUOTE><p> <hr size=1>Do you Yahoo!?<br> The <a href="http://my.yahoo.com">all-new My Yahoo!</a> What will yours do? ----------------------------------------------------- xml-interest: A list for discussing XML technologies in the Java Platform. To post, mailto:[email protected] Archives at: http://archives.java.sun.com/xml-interest.html To unsubscribe, mailto:[email protected] the following message; signoff xml-interest. --0-2026895802-1102598910=:46174--