Problems with importing from XML Schema(xsd)

Formally known as "Mercator Inside Integrator 6.7", DataStage TX enables high-volume, complex transactions without the need for additional coding.

Moderators: chulett, rschirm

himerius
Participant
Posts: 39
Joined: Fri Sep 07, 2007 5:10 am
Location: Sandefjord

Post by himerius »

But since the xsd says its a closed start tag, the output xml should also produce a closed start tag, and not this </resolution> end tag?
janhess
Participant
Posts: 201
Joined: Thu Sep 18, 2003 2:18 am
Location: UK

Post by janhess »

I don't understand what wou mean by a 'closed start tag'. </Resolution> is the closing tag for <Resolution>. It will only produce a /> close if the tag is empty and required.
himerius
Participant
Posts: 39
Joined: Fri Sep 07, 2007 5:10 am
Location: Sandefjord

Post by himerius »

The tags are empty, the value is in the v attribute, as dictaded by the xsd?
not a xsd wiz though..
janhess
Participant
Posts: 201
Joined: Thu Sep 18, 2003 2:18 am
Location: UK

Post by janhess »

I think it produce the closed start tag if you import the xsd using the classic importer. Xerces seems to do slightly different things.

In classic import you get a terminator such as <OWSP></DecimalFormatString<OWSP>>
and an Empty Value <OWSP><DecimalFormatString<OWSP>/>
himerius
Participant
Posts: 39
Joined: Fri Sep 07, 2007 5:10 am
Location: Sandefjord

Post by himerius »

Lol, just discovered, its not dtx that makes the long version of the tag, its the browsers that ends it.

inet explorer and dtx preview:
- <Interval>
<Position v="1" />
<Quantity v="3.5" />
</Interval>

Actual file:
<Interval>
<Position v="1"></Position>
<Quantity v="3.5"></Quantity>
</Interval>
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Clearly Microsoft knows better than you do exactly what you need!
:roll:
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
janhess
Participant
Posts: 201
Joined: Thu Sep 18, 2003 2:18 am
Location: UK

Post by janhess »

I've never seen that behaviour in IE before.
Post Reply