xml query..

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dattathreya
    New Member
    • Sep 2008
    • 6

    xml query..

    Q1). class>
    <attributes>
    <attr type='static' name='max num' default=0>
    <attr type='inst' name='num = 0'\>
    </attributes>
    <methods>
    <meth type='macro' code='x < y & y > z'\>
    <meth name='getMax'>
    <!CDATA[[
    if (num > max num) then max num = num
    ]]>
    </meth>
    </methods>
    </class>

    Referring to the XML data above, how many well-formedness errors does a JAXP processor find?

    a) Zero
    b) Two
    c) Three
    d) Five
    e) Six
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    f) more than six
    (I don't know if the processor will find all errors, tho...)

    but the easiest way to answer this question is to ask the processor itself.

    regards

    Comment

    • jkmyoung
      Recognized Expert Top Contributor
      • Mar 2006
      • 2057

      #3
      Code to set up jaxp parser:
      See example 9.5:
      The complete text of Elliotte Rusty Harold's book Processing XML with Java. published by Addison-Wesley, November 2002

      Comment

      Working...