xml format error tag are numbered

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

Post Reply
richard

xml format error tag are numbered

Post by richard » Sun Sep 12, 2004 3:43 am

am i missing something or is the xml output wrong!!

The xml output by textpipe pro 7.0.7 is like this

Code: Select all


<?xml version="1.0" standalone="yes" ?>
<!-- generator="TextPipe Pro 7.0.7" -->
<!-- companyURL="www.crystalsoftware.com.au" -->

<!-- event="DTD start" -->
<!DOCTYPE lines [
  <!ELEMENT lines (line*)>
  <!ELEMENT line (field1, field2, field3)>
  <!ELEMENT field1 (#PCDATA)>
  <!ELEMENT field2 (#PCDATA)>
  <!ELEMENT field3 (#PCDATA)>
]>
<!-- event="DTD end" -->

<lines>

<line number="1">
  <field1>row1</field1>
  <field2>data1</field2>
  <field3>data3</field3>
</line>
<line number="2">
  <field1>row2</field1>
  <field2>data2</field2>
  <field3>data4</field3>
</line>
<line number="3">
  <field1>row3</field1>
  <field2>data3</field2>
  <field3>data5</field3>
</line>

</lines>
when it should be

Code: Select all

<?xml version="1.0" standalone="yes" ?>
<!-- generator="TextPipe Pro 7.0.7" -->
<!-- companyURL="www.crystalsoftware.com.au" -->

<!-- event="DTD start" -->
<!DOCTYPE lines [
  <!ELEMENT lines (line*)>
  <!ELEMENT line (field1, field2, field3)>
  <!ELEMENT field1 (#PCDATA)>
  <!ELEMENT field2 (#PCDATA)>
  <!ELEMENT field3 (#PCDATA)>
]>
<!-- event="DTD end" -->

<lines>

<line>
  <field1>row1</field1>
  <field2>data1</field2>
  <field3>data3</field3>
</line>
<line>
  <field1>row2</field1>
  <field2>data2</field2>
  <field3>data4</field3>
</line>
<line>
  <field1>row3</field1>
  <field2>data3</field2>
  <field3>data5</field3>
</line>

</lines>
Am I missing something?

The help file shows the xml correctly

User avatar
DataMystic Support
Site Admin
Posts: 2234
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Post by DataMystic Support » Tue Sep 14, 2004 10:15 am

There is nothing wrong with this XML.

We added the line attribute to help identify individual records. It should cause no problems at all to any correct XML processor.
Regards,

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments

Post Reply

Who is online

Users browsing this forum: Baidu [Spider] and 5 guests