I am trying for the first time to import an xml file into a domino database using the NotesDOMParser class. When I import the following code I get a type mismatch error when instantiating the first NotesDOMElementNode variable.
<?xml version="1.0" encoding="UTF-8" ?>585738
460-120-0034
<Header_headerNum>R5531415</Header_headerNum>
120 mm
Even more strangely, when importing the code below it works fine.
<?xml version="1.0" encoding="UTF-8" ?>585738460-120-0034<Header_headerNum>R5531415</Header_header
Num>120 mm
The only difference between the two snippets of XML code is that I have inserted line breaks into the first snippet (i.e. the failing one) to make it more readable. As you can see, the second snippet looks messy and if anything, this is what you would expect to fail!
Can anyone see the problem with the first snippet of xml? I would really appreciate some help here as this problem is holding up the roll-out of a project.
Thanks in advance,
Eoin.