Kbase P175305: Error 9102 with XML files with a blank line.
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/15/2010 |
|
Status: Unverified
SYMPTOM(s):
Error 9102 with XML files with a blank line.
X-NODEREF must be associated with a valid X-DOCUMENT in order to use it in method <method>. (9102)
X-NODEREF must be associated with a valid X-DOCUMENT in order to use it in method NAME. (9102)
X-NODEREF must be associated with a valid X-DOCUMENT in order to use it in method NODE-VALUE. (9102)
FACT(s) (Environment):
The XML being parsed contains a blank line between 2 elements:
<magazine style="financial" frequency="monthly">
<title>Forbes</title>
<editor>
<first-name>Nancy</first-name>
<last-name>Brown</last-name>
</editor>
<price>4.50</price>
<subscription price="45" per="year"/>
</magazine>
<magazine style="news" frequency="weekly">
<title>Newsweek</title>
<editor>
<first-name>Michael</first-name>
<last-name>Wilkins</last-name>
</editor>
<price>2</price>
<subscription price="80" per="year"/>
</magazine>
All Supported Operating Systems
OpenEdge 10.2B
CHANGE:
Upgrade to OpenEdge 10.2B02
CAUSE:
Bug# OE00201109
FIX:
None at this time
To work around the problem, before referencing the XML node methods, test to see if the node is a valid element. For example:
DEFINE VARIABLE cType AS CHARACTER NO-UNDO.
cType = hNode:SUBTYPE NO-ERROR.
IF VALID-HANDLE(hNode) AND cType = 'ELEMENT' THEN DO:
.
.
.