|
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.
|
|
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.
|
|
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.
|
|
guest |