About XML Node Attribute

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fxtao
    New Member
    • Jan 2008
    • 5

    About XML Node Attribute

    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!
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by fxtao
    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!
    Have a read at the example in the specs

    Comment

    Working...