IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

XML spy, schema and whitespace Options · View
Dinglewood
Posted: Wednesday, May 31, 2017 6:50:03 AM
Rank: Newbie

Joined: 5/31/2017
Posts: 2
Location: Switzerland
Hello,

I have following problem with XMLspy and scema :

When I load my XML file, it looks like following, which is OK

<p align="left" level="1" slxclass="index"><b>Anthranilsäure</b> Art. 3 N 5</p>[EOL]
<p align="left" level="1" slxclass="index"><b>Anwenden von Betm</b> <i>s. Verwenden von Betm</i></p>[EOL]
<p align="left" level="1" slxclass="index"><b>Anzeigepflicht</b></p>[EOL]

When I assign my schema in XMLspy, it is transformed as following

<p align="left" level="1" slxclass="index">[EOL]
<b>Anthranilsäure</b> Art. 3 N 5</p>[EOL]
<p align="left" level="1" slxclass="index">[EOL]
<b>Anwenden von Betm</b>[EOL]
<i>
s. Verwenden von Betm</i>[EOL]
</p>[EOL]
<p align="left" level="1" slxclass="index">[EOL]
<b>Anzeigepflicht</b>[EOL]
</p>[EOL]

If I linearize this, with XMLspy or Notepad++, I will loose spaces cause [EOL] are not converted as whitespaces.

<p align="left" level="1" slxclass="index"><b>Anwenden von Betm</b><i>s. Verwenden von Betm</i></p>

What could I about this problem ?

Thanks for answers.






vlad
Posted: Wednesday, May 31, 2017 8:14:58 AM
Rank: Advanced Member

Joined: 12/13/2005
Posts: 2,856
Location: Mauritius
When assigning schema, XMLSpy warns you about a possibility of reformatting.

You can manually assign schema instead simply by adding two attributes which XMLSpy adds to the root element for you.
Dinglewood
Posted: Wednesday, May 31, 2017 9:17:22 AM
Rank: Newbie

Joined: 5/31/2017
Posts: 2
Location: Switzerland
vlad wrote:
You can manually assign schema instead simply by adding two attributes which XMLSpy adds to the root element for you.

Thanks for this working answer.
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.