Good to hear that it worked.
below details might help you. these i got from WTX 8.2 REDBOOK.
Also more detailed explanation present in REDBOOK below. refer to page numbers 384 to 391 and 76.
Original Message:
Sent: Wed May 08, 2024 06:44 AM
From: Jan Thomas Flaate
Subject: Reading XML file with special characters, XSD vs Typetree
Hi Bheeshma!
I tried your solution, and it seems to work! Thanks!
I'm not so familiar with XML-parsing, so if you, or anyone, could explain to me what is the difference between Classic and Xerces parsing I would be happy.
As you commented Bheeshma, the Xercses parser seem to treat tags in a different way, but I also notice that my new Xerces Typetree has a slightly different structure than the Classic one. Probably there are more differences, but that's what I have detected so far.
Until now we have always used Classic when importing XSD's to TypeTrees in my company. Not sure why we have done so, maybe default behavior in ITX!?
Would it be better to use Xerces in the future?
------------------------------
Jan Thomas Flaate
Original Message:
Sent: Mon May 06, 2024 05:33 AM
From: Bheeshma P
Subject: Reading XML file with special characters, XSD vs Typetree
Hi,
may be you can try this.
While importing the XSD to create typetree try importing via xerces parser instead of classic parser and keep xsd in the workspace.
when xsd is imported via classic parser i see that the item properties are defined with initiators and terminators with > tagname and </tagname
when xsd is imported via xerces parser i see its not the case.
------------------------------
Bheeshma P
Original Message:
Sent: Fri May 03, 2024 07:55 AM
From: Jan Thomas Flaate
Subject: Reading XML file with special characters, XSD vs Typetree
Hi!
I am trying to read a XML file with special characters. I have an XSD, and from that XSD i created a Typetree.
My problem is that when I read the file using the TypeTree definition, the file will not validate. I get an "One or more inputs are invalid" error.
When I read the file using only the XSD in my Input Card, the file validates and processes.
Is it anyone who knows if there are any issues / differences when using Typetree instead of XSD?
I'll be happy for any input that can point me in the right directon! For as you might have understood I would really like to use Typetree, rather than the XSD.
If more info is needed, just ask! I'll be happy to provide!
Possibly useful information:
- The XML tag that's causing the trouble contains something like this: <Nm>Branåsøra AS -> MRK:130 + firma</Nm>
So as you can see both Norwegian special characters and an ">" inside the Nm-tag
- I use ISO-8859-1 (Latin1) as charset in my Typetree and "Schema Validation" in DocVerification->XML/JSON in Input Card properties
- ITX version 10.1.0.
------------------------------
Jan Thomas Flaate
------------------------------