-
SAX - missing element in XML document
Hello,
I have a question. Here is simple SAX Java example: http://www.roseindia.net/xml/sax/EmployeeDetails.shtml
The XML file contains Employees (with Emp_Id, Emp_Name and Emp_E-mail). I have situation when for example Emp_Name element is missing. Is it possible find out in Java console please?
I tried this:
Code:
if (name){
System.out.println("Name: " + str);
name = false;
}
else
{
System.out.println("Name is missing");
}
But this solution writes "Name is missing" every time. Thank you very much, best regards Tomas
-
If the element is missing, isn't is supposed to print that out?
-
Hi Hack,
I need save the XML data to CSV file and missing element = null value
Similar Threads
-
By irenesoundarya in forum XML
Replies: 1
Last Post: 09-08-2008, 11:53 AM
-
By river22_34 in forum XML
Replies: 3
Last Post: 02-03-2008, 06:12 AM
-
By HSIN NING in forum Web
Replies: 0
Last Post: 08-21-2000, 12:21 AM
-
By HSIN NING in forum XML
Replies: 0
Last Post: 08-21-2000, 12:17 AM
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|