Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • You know, if the schema requires the element to be there, it means that "undef" is not a valid value for the internal representation of that element. If it were, the schema should have declared the element as optional :)

    It's like you put a "NOT NULL" on database column, and then complain you can't put a NULL in it... (OK, XML and RDBMS are not that similar, but it was the closest example I could come up with)
  • I agree, but I have a real world problem. The client has agreed to send data which passes the schema, but they often send a lot of junk. As a result, we frequently don't know if they forgot to send something or if the information just really isn't there :(