W
Will
I have an XML document that I am parsing with JAXP.
The XML document has a segment:
<heading class="heading 1" ... ... ...
If i parse this attribute and put the string value into a variable, say
named value. If i then System.out.println(value) i will see
heading 1
This is fine, but if i were to do the following:
if (value.equals("heading 1")) {
code
}
The code will not execute. Why is this, and how can i remedy the
problem?
The XML document has a segment:
<heading class="heading 1" ... ... ...
If i parse this attribute and put the string value into a variable, say
named value. If i then System.out.println(value) i will see
heading 1
This is fine, but if i were to do the following:
if (value.equals("heading 1")) {
code
}
The code will not execute. Why is this, and how can i remedy the
problem?