how to judge a node doesn't contain one attribute
like
<?xml version="1.0" encoding="GB231 2" ?>
<AutoUpdater>
<folder>
<file name="a.txt" date="2007-12-21 12:37" size="16K" />
<file name="b.rar" date="2008-1-12 20:30" />
<file name="c.doc" date="2004-7-5 19:10" size="245K" />
</folder>
</AutoUpdater>
how to know in " <file name="b.rar" date="2008-1-12 20:30" />"
there is no "size" attribute?
Please help me! Thank you very much!
like
<?xml version="1.0" encoding="GB231 2" ?>
<AutoUpdater>
<folder>
<file name="a.txt" date="2007-12-21 12:37" size="16K" />
<file name="b.rar" date="2008-1-12 20:30" />
<file name="c.doc" date="2004-7-5 19:10" size="245K" />
</folder>
</AutoUpdater>
how to know in " <file name="b.rar" date="2008-1-12 20:30" />"
there is no "size" attribute?
Please help me! Thank you very much!
Comment